mac80211: allow drivers to request SM PS mode change
Sometimes drivers have more information than the stack about how their antennas/chains are used, and may require that the SM PS mode be changed. This could happen, for example, when detecting that the user disconnected an antenna. Thus this patch introduces API to allow drivers to request SM PS mode changes. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
7da7cc1d42
commit
d1f5b7a34a
@@ -2548,6 +2548,18 @@ void ieee80211_cqm_rssi_notify(struct ieee80211_vif *vif,
|
||||
*/
|
||||
void ieee80211_chswitch_done(struct ieee80211_vif *vif, bool success);
|
||||
|
||||
/**
|
||||
* ieee80211_request_smps - request SM PS transition
|
||||
* @vif: &struct ieee80211_vif pointer from the add_interface callback.
|
||||
* @mode: new SM PS mode
|
||||
*
|
||||
* This allows the driver to request an SM PS transition in managed
|
||||
* mode. This is useful when the driver has more information than
|
||||
* the stack about possible interference, for example by bluetooth.
|
||||
*/
|
||||
void ieee80211_request_smps(struct ieee80211_vif *vif,
|
||||
enum ieee80211_smps_mode smps_mode);
|
||||
|
||||
/* Rate control API */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user