78 s_MgrMakeProbeRequest(
81 unsigned char *pScanBSSID,
171 vAdHocBeaconRestart(
PSDevice pDevice)
212 unsigned char abyCurrSuppRatesG[] = {
WLAN_EID_SUPP_RATES, 8, 0x02, 0x04, 0x0B, 0x16, 0x24, 0x30, 0x48, 0x6C};
215 unsigned char abyCurrSuppRatesA[] = {
WLAN_EID_SUPP_RATES, 8, 0x0C, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6C};
217 unsigned char *pbyRate;
224 pbyRate = &abyCurrSuppRatesA[0];
226 pbyRate = &abyCurrSuppRatesB[0];
228 pbyRate = &abyCurrSuppRatesG[0];
231 pTxPacket = s_MgrMakeProbeRequest
241 if (pTxPacket !=
NULL ){
242 for (ii = 0; ii < 2 ; ii++) {
270 s_MgrMakeProbeRequest(
273 unsigned char *pScanBSSID,
323 void *hDeviceContext,
352 unsigned char byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80};
361 spin_lock_irq(&pDevice->
lock);
369 s_bCommandComplete(pDevice);
370 spin_unlock_irq(&pDevice->
lock);
375 s_bCommandComplete(pDevice);
377 spin_unlock_irq(&pDevice->
lock);
385 spin_unlock_irq(&pDevice->
lock);
407 vAdHocBeaconRestart(pDevice);
408 s_bCommandComplete(pDevice);
414 s_bCommandComplete(pDevice);
433 vAdHocBeaconStop(pDevice);
455 s_vProbeChannel(pDevice);
456 spin_unlock_irq(&pDevice->
lock);
460 spin_unlock_irq(&pDevice->
lock);
482 vAdHocBeaconRestart(pDevice);
484 #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
488 memset(&wrqu, 0,
sizeof(wrqu));
492 s_bCommandComplete(pDevice);
499 s_bCommandComplete(pDevice);
500 spin_unlock_irq(&pDevice->
lock);
515 netif_stop_queue(pDevice->
dev);
520 spin_unlock_irq(&pDevice->
lock);
526 s_bCommandComplete(pDevice);
533 spin_unlock_irq(&pDevice->
lock);
538 s_bCommandComplete(pDevice);
544 s_bCommandComplete(pDevice);
545 spin_unlock_irq(&pDevice->
lock);
568 if (pItemSSID->len == pItemSSIDCurr->len) {
569 if (
memcmp(pItemSSID->abySSID, pItemSSIDCurr->abySSID, pItemSSID->len) == 0) {
570 s_bCommandComplete(pDevice);
571 spin_unlock_irq(&pDevice->
lock);
576 netif_stop_queue(pDevice->
dev);
600 spin_unlock_irq(&pDevice->
lock);
608 if (netif_queue_stopped(pDevice->
dev)){
609 netif_wake_queue(pDevice->
dev);
636 if (netif_queue_stopped(pDevice->
dev)){
637 netif_wake_queue(pDevice->
dev);
643 #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
647 memset(&wrqu, 0,
sizeof (wrqu));
649 printk(
"wireless_send_event--->SIOCGIWAP(disassociated:vMgrJoinBSSBegin Fail !!)\n");
656 s_bCommandComplete(pDevice);
671 spin_unlock_irq(&pDevice->
lock);
677 printk(
"WLAN_AUTHENTICATE_WAIT:Authen Fail???\n");
682 spin_unlock_irq(&pDevice->
lock);
687 s_bCommandComplete(pDevice);
707 if (netif_queue_stopped(pDevice->
dev)){
708 netif_wake_queue(pDevice->
dev);
729 printk(
"WLAN_ASSOCIATE_WAIT:Association Fail???\n");
734 spin_unlock_irq(&pDevice->
lock);
740 s_bCommandComplete(pDevice);
751 if (pDevice->bEnableHostWEP ==
true)
768 if (netif_queue_stopped(pDevice->
dev)){
769 netif_wake_queue(pDevice->
dev);
774 s_bCommandComplete(pDevice);
830 s_bCommandComplete(pDevice);
841 s_bCommandComplete(pDevice);
850 spin_unlock_irq(&pDevice->
lock);
855 spin_unlock_irq(&pDevice->
lock);
861 s_bCommandComplete(pDevice);
865 s_bCommandComplete(pDevice);
869 spin_unlock_irq(&pDevice->
lock);
882 bool bRadioCmd =
false;
884 bool bForceSCAN =
true;
907 if (pSSID->len != 0) {
960 void *hDeviceContext,
962 unsigned char *pbyItem0
975 if (pbyItem0 !=
NULL) {
1018 s_bCommandComplete(pDevice);
1041 void *hDeviceContext
1063 void *hDeviceContext
1087 void *hDeviceContext
1103 spin_lock_irq(&pDevice->
lock);
1116 spin_unlock_irq(&pDevice->
lock);