diff options
author | Luciano Coelho <coelho@ti.com> | 2011-05-11 10:09:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-11 15:12:27 -0400 |
commit | 79f460ca49d8d5700756ab7071c951311c7f29cc (patch) | |
tree | b11b62473697c6c1858b83b3abe5181990f85c19 /net/mac80211/ieee80211_i.h | |
parent | 807f8a8c300435d5483e8d78df9dcdbc27333166 (diff) |
mac80211: add support for HW scheduled scan
Implement support for HW scheduled scan. The mac80211 code doesn't perform
scheduled scans itself, but calls the driver to start and stop scheduled
scans.
This patch also creates a trace event class to be used by drv_hw_scan
and the new drv_sched_scan_start and drv_sched_stop functions, in
order to avoid duplicate code.
Signed-off-by: Luciano Coelho <coelho@ti.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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 7f4d0dc1d534..6f55a789c099 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -847,6 +847,9 @@ struct ieee80211_local { | |||
847 | int scan_channel_idx; | 847 | int scan_channel_idx; |
848 | int scan_ies_len; | 848 | int scan_ies_len; |
849 | 849 | ||
850 | bool sched_scanning; | ||
851 | struct ieee80211_sched_scan_ies sched_scan_ies; | ||
852 | |||
850 | unsigned long leave_oper_channel_time; | 853 | unsigned long leave_oper_channel_time; |
851 | enum mac80211_scan_state next_scan_state; | 854 | enum mac80211_scan_state next_scan_state; |
852 | struct delayed_work scan_work; | 855 | struct delayed_work scan_work; |
@@ -1154,6 +1157,12 @@ ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq, | |||
1154 | void ieee80211_rx_bss_put(struct ieee80211_local *local, | 1157 | void ieee80211_rx_bss_put(struct ieee80211_local *local, |
1155 | struct ieee80211_bss *bss); | 1158 | struct ieee80211_bss *bss); |
1156 | 1159 | ||
1160 | /* scheduled scan handling */ | ||
1161 | int ieee80211_request_sched_scan_start(struct ieee80211_sub_if_data *sdata, | ||
1162 | struct cfg80211_sched_scan_request *req); | ||
1163 | int ieee80211_request_sched_scan_stop(struct ieee80211_sub_if_data *sdata, | ||
1164 | bool driver_initiated); | ||
1165 | |||
1157 | /* off-channel helpers */ | 1166 | /* off-channel helpers */ |
1158 | bool ieee80211_cfg_on_oper_channel(struct ieee80211_local *local); | 1167 | bool ieee80211_cfg_on_oper_channel(struct ieee80211_local *local); |
1159 | void ieee80211_offchannel_enable_all_ps(struct ieee80211_local *local, | 1168 | void ieee80211_offchannel_enable_all_ps(struct ieee80211_local *local, |