diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2012-11-24 14:53:07 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 16:24:16 -0800 |
commit | 0fdb56dabddd3706ab343aa1278019bd5c8aef21 (patch) | |
tree | 1ec88de90b6e30d34caf8d7b4459305863f5dd72 /drivers/staging/vt6656 | |
parent | dfc935acc97965729d1ef2b7e52925d3f20ca09b (diff) | |
download | op-kernel-dev-0fdb56dabddd3706ab343aa1278019bd5c8aef21.zip op-kernel-dev-0fdb56dabddd3706ab343aa1278019bd5c8aef21.tar.gz |
staging: vt6656: send SIOCGIWSCAN at end of all scanning events.
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>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/wcmd.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c index 99bced7..22f6b41 100644 --- a/drivers/staging/vt6656/wcmd.c +++ b/drivers/staging/vt6656/wcmd.c @@ -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; |