staging: vt6656: send SIOCGIWSCAN at end of all scanning events.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 24 Nov 2012 14:53:07 +0000 (14:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:24:16 +0000 (16:24 -0800)
wpa supplicant can become confused if the scanning has ended on
active scanning.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/wcmd.c

index 99bced7937675d3d621cb9854b05e42ed259f7e1..22f6b41cfd196523ab19202887f2d384619fd58d 100644 (file)
@@ -342,6 +342,7 @@ void vRunCommand(void *hDeviceContext)
     BYTE            byMask[8] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80};
     struct sk_buff  *skb;
     BYTE            byData;
+       union iwreq_data wrqu;
 
 
     if (pDevice->dwDiagRefCount != 0)
@@ -503,14 +504,11 @@ void vRunCommand(void *hDeviceContext)
             pMgmt->eScanState = WMAC_NO_SCANNING;
             pDevice->bStopDataPkt = FALSE;
 
-       if(pMgmt->eScanType == WMAC_SCAN_PASSIVE)
-               {
-                       //send scan event to wpa_Supplicant
-                               union iwreq_data wrqu;
-                               PRINT_K("wireless_send_event--->SIOCGIWSCAN(scan done)\n");
-                               memset(&wrqu, 0, sizeof(wrqu));
-                               wireless_send_event(pDevice->dev, SIOCGIWSCAN, &wrqu, NULL);
-                       }
+               /*send scan event to wpa_Supplicant*/
+               PRINT_K("wireless_send_event--->SIOCGIWSCAN(scan done)\n");
+               memset(&wrqu, 0, sizeof(wrqu));
+               wireless_send_event(pDevice->dev, SIOCGIWSCAN, &wrqu, NULL);
+
             s_bCommandComplete(pDevice);
             break;