summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl12xx/scan.h
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-05-27 16:34:46 +0400
committerJohn W. Linville <linville@tuxdriver.com>2011-05-31 22:47:25 +0400
commit2497a246e880d1fb537f754f551177c01fa39242 (patch)
tree530cd6f0533ae65ec3336e3b85e7f94f051d54d7 /drivers/net/wireless/wl12xx/scan.h
parentdd08682150e1815fe5cdd0673a2f2e9cd2d55a7a (diff)
downloadlinux-2497a246e880d1fb537f754f551177c01fa39242.tar.xz
wl12xx: fix DFS channels handling in scheduled scan
DFS channels were never getting included in the scheduled scans, because they always contain the passive flag as well and the call was asking for DFS and active channels. Fix this by ignoring the passive flag when collecting DFS channels. Also, move the DFS channels in the channel list before the 5GHz active channels (this was implemented in the FW differently than specified). Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/scan.h')
-rw-r--r--drivers/net/wireless/wl12xx/scan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/scan.h b/drivers/net/wireless/wl12xx/scan.h
index c83319579ca3..a0b6c5d67b07 100644
--- a/drivers/net/wireless/wl12xx/scan.h
+++ b/drivers/net/wireless/wl12xx/scan.h
@@ -137,6 +137,9 @@ enum {
SCAN_BSS_TYPE_ANY,
};
+#define SCAN_CHANNEL_FLAGS_DFS BIT(0)
+#define SCAN_CHANNEL_FLAGS_DFS_ENABLED BIT(1)
+
struct conn_scan_ch_params {
__le16 min_duration;
__le16 max_duration;