[PATCH] libertas: remove adapter->scantype
scantype was initialized with CMD_SCAN_TYPE_ACTIVE, but there is no code that would ever change it, so we can use that variable directly. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
David S. Miller
parent
d65ead886a
commit
4f2fdaaf0e
@ -252,7 +252,7 @@ static void wlan_scan_create_channel_list(wlan_private * priv,
|
||||
* be changed to passive on a per channel basis if restricted by
|
||||
* regulatory requirements (11d or 11h)
|
||||
*/
|
||||
scantype = adapter->scantype;
|
||||
scantype = CMD_SCAN_TYPE_ACTIVE;
|
||||
|
||||
for (rgnidx = 0; rgnidx < ARRAY_SIZE(adapter->region_channel); rgnidx++) {
|
||||
if (priv->adapter->enable11d &&
|
||||
|
Reference in New Issue
Block a user