aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2009-07-23 06:14:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-27 15:24:16 -0400
commitfbe9c429f195111bbf7f1630efa19aee295fd8e7 (patch)
tree80556ac48bfa0e7d60db63e6c71b0bbf58143263 /net/mac80211/ieee80211_i.h
parent2fb3f028a9a46bd344329766257699b4acb36525 (diff)
mac80211: Replace {sw, hw}_scanning variables with a bitfield
Use a bitfield to store the current scan mode instead of two boolean variables {sw,hw}_scanning. This patch does not introduce functional changes but allows us to enhance the scan flags later (for example for background scanning). Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 4166418b4aa7..783a125402b0 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -570,6 +570,11 @@ enum queue_stop_reason {
570 IEEE80211_QUEUE_STOP_REASON_SKB_ADD, 570 IEEE80211_QUEUE_STOP_REASON_SKB_ADD,
571}; 571};
572 572
573enum {
574 SCAN_SW_SCANNING,
575 SCAN_HW_SCANNING
576};
577
573struct ieee80211_local { 578struct ieee80211_local {
574 /* embed the driver visible part. 579 /* embed the driver visible part.
575 * don't cast (use the static inlines below), but we keep 580 * don't cast (use the static inlines below), but we keep
@@ -668,7 +673,7 @@ struct ieee80211_local {
668 673
669 /* Scanning and BSS list */ 674 /* Scanning and BSS list */
670 struct mutex scan_mtx; 675 struct mutex scan_mtx;
671 bool sw_scanning, hw_scanning; 676 unsigned long scanning;
672 struct cfg80211_ssid scan_ssid; 677 struct cfg80211_ssid scan_ssid;
673 struct cfg80211_scan_request int_scan_req; 678 struct cfg80211_scan_request int_scan_req;
674 struct cfg80211_scan_request *scan_req; 679 struct cfg80211_scan_request *scan_req;