diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-12-23 07:15:40 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:55:01 -0500 |
commit | b203ffc3a447eb8d9e6120b783ddee081b143061 (patch) | |
tree | 520473f30067c9ebf003c95d8053fe4cbe39e11e /net/mac80211/ieee80211_i.h | |
parent | 0c1ad2cac1cb54db38fd4cc1822965071ee83f6e (diff) |
mac80211: Generalize off-channel operation helpers from scan code
The off-channel operations for going into power save mode (station
mode) or stop beaconing (AP/IBSS) are not limited to scanning. Move
these into a separate file and allow them to be used for other
purposes, too.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
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 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index de068ad6223b..fd912eb5309e 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -786,7 +786,7 @@ struct ieee80211_local { | |||
786 | unsigned int wmm_acm; /* bit field of ACM bits (BIT(802.1D tag)) */ | 786 | unsigned int wmm_acm; /* bit field of ACM bits (BIT(802.1D tag)) */ |
787 | 787 | ||
788 | bool pspolling; | 788 | bool pspolling; |
789 | bool scan_ps_enabled; | 789 | bool offchannel_ps_enabled; |
790 | /* | 790 | /* |
791 | * PS can only be enabled when we have exactly one managed | 791 | * PS can only be enabled when we have exactly one managed |
792 | * interface (and monitors) in PS, this then points there. | 792 | * interface (and monitors) in PS, this then points there. |
@@ -981,6 +981,12 @@ ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq, | |||
981 | void ieee80211_rx_bss_put(struct ieee80211_local *local, | 981 | void ieee80211_rx_bss_put(struct ieee80211_local *local, |
982 | struct ieee80211_bss *bss); | 982 | struct ieee80211_bss *bss); |
983 | 983 | ||
984 | /* off-channel helpers */ | ||
985 | void ieee80211_offchannel_stop_beaconing(struct ieee80211_local *local); | ||
986 | void ieee80211_offchannel_stop_station(struct ieee80211_local *local); | ||
987 | void ieee80211_offchannel_return(struct ieee80211_local *local, | ||
988 | bool enable_beaconing); | ||
989 | |||
984 | /* interface handling */ | 990 | /* interface handling */ |
985 | int ieee80211_iface_init(void); | 991 | int ieee80211_iface_init(void); |
986 | void ieee80211_iface_exit(void); | 992 | void ieee80211_iface_exit(void); |