aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-12 08:21:00 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-15 03:41:41 -0500
commitaf0ed69badc67a0b6e976543f52029fce9ac8f69 (patch)
tree95f35f3f70f3fd949beda47ad3cee838b0c343c1 /include/net/mac80211.h
parent9fb04b501a57ad29fa989ab3cd2123482e7eac5f (diff)
mac80211: stop modifying HT SMPS capability
Instead of modifying the HT SMPS capability field for stations, track the SMPS mode explicitly in a new field in the station struct and use it in the drivers that care about it. This simplifies the code using it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 54e2add8429f..f7eba1300d82 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1245,6 +1245,7 @@ enum ieee80211_sta_rx_bandwidth {
1245 * station can receive at the moment, changed by operating mode 1245 * station can receive at the moment, changed by operating mode
1246 * notifications and capabilities. The value is only valid after 1246 * notifications and capabilities. The value is only valid after
1247 * the station moves to associated state. 1247 * the station moves to associated state.
1248 * @smps_mode: current SMPS mode (off, static or dynamic)
1248 */ 1249 */
1249struct ieee80211_sta { 1250struct ieee80211_sta {
1250 u32 supp_rates[IEEE80211_NUM_BANDS]; 1251 u32 supp_rates[IEEE80211_NUM_BANDS];
@@ -1257,6 +1258,7 @@ struct ieee80211_sta {
1257 u8 max_sp; 1258 u8 max_sp;
1258 u8 rx_nss; 1259 u8 rx_nss;
1259 enum ieee80211_sta_rx_bandwidth bandwidth; 1260 enum ieee80211_sta_rx_bandwidth bandwidth;
1261 enum ieee80211_smps_mode smps_mode;
1260 1262
1261 /* must be last */ 1263 /* must be last */
1262 u8 drv_priv[0] __aligned(sizeof(void *)); 1264 u8 drv_priv[0] __aligned(sizeof(void *));