staging: vt6656: Fix stuck in scanning with variable uScanChannel.
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 25 Mar 2013 19:50:44 +0000 (19:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 23:32:46 +0000 (16:32 -0700)
commit257f65801520a5c888930d410f781d408a405990
treee374ce11b879c88e41780c9bfaceb3baf314a8f8
parentc5cf4606b6659e711258b6e567415ab83a3b646c
staging: vt6656: Fix stuck in scanning with variable uScanChannel.

When pMgmt->uScanChannel > pDevice->byMaxChannel scanning ends
but no SIOCGIWSCAN(scan done) message is sent. This section of code is
duplicate of that in WLAN_CMD_SCAN_END which sends scan done.
So remove it and jump eCommandState to WLAN_CMD_SCAN_END.

Increment uScanChannel on !ChannelValid.

At WLAN_CMD_SCAN_END reset uScanChannel to 0 when done.

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