wl1251: fix scan behaviour while not associated
authorDavid Gnedt <david.gnedt@davizone.at>
Sun, 30 Jan 2011 19:10:50 +0000 (20:10 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 5 Mar 2011 21:17:16 +0000 (23:17 +0200)
commit2d533f22bc55285ebf55b0e67fd9eb88ead2014d
tree860f2abd5901b6dd7d09f373d1df3bbb22a0b733
parent8d74908328c4b74a9c7ea157cb46fb15d285d21b
wl1251: fix scan behaviour while not associated

With a dissacociated card I often encoutered very long scan delays.

My guess is that it has something to do with the cards DTIM handling and
another firmware bug mentioned in the TI WLAN driver, which is described as
the card may never end scanning if the channel is overloaded because it
can't send probe requests. I think the firmware somehow also tries to
receive DTIM messages when the BSSID is not set. Therefore most of the time
it waits for DTIM messages and can't do scanning work.

Anyway we can workaround this misbehaviour by setting the HIGH_PRIORITY
bit for scans in disassociated state.

[notasas@gmail.com: add missing include and remove debug
portion that got comments on l-w]
Signed-off-by: David Gnedt <david.gnedt@davizone.at>
drivers/net/wireless/wl12xx/wl1251_cmd.c
drivers/net/wireless/wl12xx/wl1251_cmd.h
drivers/net/wireless/wl12xx/wl1251_main.c