80 s_MgrMakeProbeRequest(
97 static BOOL s_bClearBSSID_SCAN(
void *hDeviceContext);
176 vAdHocBeaconRestart(
PSDevice pDevice)
226 pbyRate = &abyCurrSuppRatesA[0];
228 pbyRate = &abyCurrSuppRatesB[0];
230 pbyRate = &abyCurrSuppRatesG[0];
233 pTxPacket = s_MgrMakeProbeRequest
243 if (pTxPacket !=
NULL ){
244 for (ii = 0; ii < 1 ; ii++) {
272 s_MgrMakeProbeRequest(
340 BYTE byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80};
350 spin_lock_irq(&pDevice->
lock);
358 s_bCommandComplete(pDevice);
359 spin_unlock_irq(&pDevice->
lock);
364 s_bCommandComplete(pDevice);
365 spin_unlock_irq(&pDevice->
lock);
388 vAdHocBeaconRestart(pDevice);
398 s_bCommandComplete(pDevice);
399 spin_unlock_irq(&pDevice->
lock);
405 s_bCommandComplete(pDevice);
406 spin_unlock_irq(&pDevice->
lock);
430 vAdHocBeaconStop(pDevice);
463 s_vProbeChannel(pDevice);
464 spin_unlock_irq(&pDevice->
lock);
468 spin_unlock_irq(&pDevice->
lock);
492 vAdHocBeaconRestart(pDevice);
504 #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
509 PRINT_K(
"wireless_send_event--->SIOCGIWSCAN(scan done)\n");
510 memset(&wrqu, 0,
sizeof(wrqu));
514 s_bCommandComplete(pDevice);
521 s_bCommandComplete(pDevice);
522 spin_unlock_irq(&pDevice->
lock);
526 #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
552 netif_stop_queue(pDevice->
dev);
555 s_bCommandComplete(pDevice);
563 s_bCommandComplete(pDevice);
564 spin_unlock_irq(&pDevice->
lock);
587 if (pItemSSID->len == pItemSSIDCurr->len) {
588 if (
memcmp(pItemSSID->abySSID, pItemSSIDCurr->abySSID, pItemSSID->len) == 0) {
589 s_bCommandComplete(pDevice);
590 spin_unlock_irq(&pDevice->
lock);
594 netif_stop_queue(pDevice->
dev);
621 spin_unlock_irq(&pDevice->
lock);
629 if (netif_queue_stopped(pDevice->
dev)){
630 netif_wake_queue(pDevice->
dev);
640 KERN_INFO "CreateOwn IBSS by CurrMode = IBSS_STA\n");
644 KERN_INFO "WLAN_CMD_IBSS_CREATE fail!\n");
648 s_bClearBSSID_SCAN(pDevice);
656 KERN_INFO "CreateOwn IBSS by CurrMode = STANDBY\n");
660 KERN_INFO "WLAN_CMD_IBSS_CREATE fail!\n");
663 s_bClearBSSID_SCAN(pDevice);
675 #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
679 memset(&wrqu, 0,
sizeof (wrqu));
681 PRINT_K(
"wireless_send_event--->SIOCGIWAP(disassociated:vMgrJoinBSSBegin Fail !!)\n");
687 s_bCommandComplete(pDevice);
702 spin_unlock_irq(&pDevice->
lock);
707 printk(
"WLAN_AUTHENTICATE_WAIT:Authen Fail???\n");
712 spin_unlock_irq(&pDevice->
lock);
718 s_bCommandComplete(pDevice);
737 s_bClearBSSID_SCAN(pDevice);
739 if (netif_queue_stopped(pDevice->
dev)){
740 netif_wake_queue(pDevice->
dev);
761 printk(
"WLAN_ASSOCIATE_WAIT:Association Fail???\n");
766 spin_unlock_irq(&pDevice->
lock);
772 s_bCommandComplete(pDevice);
784 if (pDevice->bEnableHostWEP ==
TRUE)
802 if (netif_queue_stopped(pDevice->
dev)){
803 netif_wake_queue(pDevice->
dev);
809 s_bCommandComplete(pDevice);
869 s_bCommandComplete(pDevice);
892 s_bCommandComplete(pDevice);
893 spin_unlock_irq(&pDevice->
lock);
910 spin_unlock_irq(&pDevice->
lock);
912 spin_lock_irq(&pDevice->
lock);
927 #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
931 memset(&wrqu, 0,
sizeof (wrqu));
933 PRINT_K(
"wireless_send_event--->SIOCGIWAP(disassociated)\n");
938 #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
954 netif_stop_queue(pDevice->
dev);
968 s_bCommandComplete(pDevice);
979 s_bCommandComplete(pDevice);
984 s_bCommandComplete(pDevice);
989 s_bCommandComplete(pDevice);
996 s_bCommandComplete(pDevice);
1014 s_bCommandComplete(pDevice);
1019 s_bCommandComplete(pDevice);
1035 s_bCommandComplete(pDevice);
1043 s_bCommandComplete(pDevice);
1047 s_bCommandComplete(pDevice);
1051 spin_unlock_irq(&pDevice->
lock);
1058 s_bCommandComplete (
1088 if (pSSID->len != 0) {
1106 if (pSSID->len != 0)
1178 if (pbyItem0 !=
NULL) {
1213 s_bCommandComplete(pDevice);
1235 static BOOL s_bClearBSSID_SCAN(
void *hDeviceContext)
1289 spin_lock_irq(&pDevice->
lock);
1299 spin_unlock_irq(&pDevice->
lock);