summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/at76c50x-usb.h
diff options
context:
space:
mode:
authorAndrea Merello <andrea.merello@gmail.com>2014-06-05 16:10:12 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-06-05 14:15:08 -0400
commitc678de55361aa5b72b1aaa495380a395b8cc1bd2 (patch)
tree0acdf58bca369ae1fc1a98389329950676891618 /drivers/net/wireless/at76c50x-usb.h
parent67be1e4f4b0a512f6af3a7db681ae9b62d31de5e (diff)
downloadop-kernel-dev-c678de55361aa5b72b1aaa495380a395b8cc1bd2.zip
op-kernel-dev-c678de55361aa5b72b1aaa495380a395b8cc1bd2.tar.gz
at76c50x: fix scan does not work with latest mac80211
since commit 3afc2167f60a327a2c1e1e2600ef209a3c2b75b7 scan in not working anymore, due to mac80211 requires rx frequency status information. This patch makes the driver report this information. While NOT scanning this is straightforward. While scanning the firmware performs RF sweep and we cannot track the actual tuning frequency, so this is guessed by parsing beacons and probe responses. This should be enough for ensuring functionality. Thanks-to: Johannes Berg <johannes@sipsolutions.net> [ for suggestions and reviewing ] Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/at76c50x-usb.h')
-rw-r--r--drivers/net/wireless/at76c50x-usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.h b/drivers/net/wireless/at76c50x-usb.h
index 4718aa5..55090a3 100644
--- a/drivers/net/wireless/at76c50x-usb.h
+++ b/drivers/net/wireless/at76c50x-usb.h
@@ -418,6 +418,7 @@ struct at76_priv {
int scan_max_time; /* scan max channel time */
int scan_mode; /* SCAN_TYPE_ACTIVE, SCAN_TYPE_PASSIVE */
int scan_need_any; /* if set, need to scan for any ESSID */
+ bool scanning; /* if set, the scan is running */
u16 assoc_id; /* current association ID, if associated */
OpenPOWER on IntegriCloud