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>
This commit is contained in:
committed by
John W. Linville
parent
0c1ad2cac1
commit
b203ffc3a4
@ -786,7 +786,7 @@ struct ieee80211_local {
|
||||
unsigned int wmm_acm; /* bit field of ACM bits (BIT(802.1D tag)) */
|
||||
|
||||
bool pspolling;
|
||||
bool scan_ps_enabled;
|
||||
bool offchannel_ps_enabled;
|
||||
/*
|
||||
* PS can only be enabled when we have exactly one managed
|
||||
* 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,
|
||||
void ieee80211_rx_bss_put(struct ieee80211_local *local,
|
||||
struct ieee80211_bss *bss);
|
||||
|
||||
/* off-channel helpers */
|
||||
void ieee80211_offchannel_stop_beaconing(struct ieee80211_local *local);
|
||||
void ieee80211_offchannel_stop_station(struct ieee80211_local *local);
|
||||
void ieee80211_offchannel_return(struct ieee80211_local *local,
|
||||
bool enable_beaconing);
|
||||
|
||||
/* interface handling */
|
||||
int ieee80211_iface_init(void);
|
||||
void ieee80211_iface_exit(void);
|
||||
|
Reference in New Issue
Block a user