aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c6
-rw-r--r--include/net/mac80211.h2
-rw-r--r--net/mac80211/cfg.c2
-rw-r--r--net/mac80211/mlme.c4
-rw-r--r--net/mac80211/sta_info.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index a8711c314e6a..f45a752e93c6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -1154,10 +1154,10 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv,
1154 s8 is_green = lq_sta->is_green; 1154 s8 is_green = lq_sta->is_green;
1155 1155
1156 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) || 1156 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) ||
1157 !sta->ht_info.ht_supported) 1157 !sta->sta.ht_info.ht_supported)
1158 return -1; 1158 return -1;
1159 1159
1160 if (((sta->ht_info.cap & IEEE80211_HT_CAP_SM_PS) >> 2) 1160 if (((sta->sta.ht_info.cap & IEEE80211_HT_CAP_SM_PS) >> 2)
1161 == WLAN_HT_CAP_SM_PS_STATIC) 1161 == WLAN_HT_CAP_SM_PS_STATIC)
1162 return -1; 1162 return -1;
1163 1163
@@ -1222,7 +1222,7 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
1222 s32 rate; 1222 s32 rate;
1223 1223
1224 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) || 1224 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) ||
1225 !sta->ht_info.ht_supported) 1225 !sta->sta.ht_info.ht_supported)
1226 return -1; 1226 return -1;
1227 1227
1228 IWL_DEBUG_RATE("LQ: try to switch to SISO\n"); 1228 IWL_DEBUG_RATE("LQ: try to switch to SISO\n");
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index ef8e4cc32c2e..d6669fd3ffa8 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -667,6 +667,7 @@ enum set_key_cmd {
667 * @addr: MAC address 667 * @addr: MAC address
668 * @aid: AID we assigned to the station if we're an AP 668 * @aid: AID we assigned to the station if we're an AP
669 * @supp_rates: Bitmap of supported rates (per band) 669 * @supp_rates: Bitmap of supported rates (per band)
670 * @ht_info: HT capabilities of this STA
670 * @drv_priv: data area for driver use, will always be aligned to 671 * @drv_priv: data area for driver use, will always be aligned to
671 * sizeof(void *), size is determined in hw information. 672 * sizeof(void *), size is determined in hw information.
672 */ 673 */
@@ -674,6 +675,7 @@ struct ieee80211_sta {
674 u64 supp_rates[IEEE80211_NUM_BANDS]; 675 u64 supp_rates[IEEE80211_NUM_BANDS];
675 u8 addr[ETH_ALEN]; 676 u8 addr[ETH_ALEN];
676 u16 aid; 677 u16 aid;
678 struct ieee80211_ht_info ht_info;
677 679
678 /* must be last */ 680 /* must be last */
679 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); 681 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 47988d2eb15c..e2574885db4a 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -672,7 +672,7 @@ static void sta_apply_parameters(struct ieee80211_local *local,
672 672
673 if (params->ht_capa) { 673 if (params->ht_capa) {
674 ieee80211_ht_cap_ie_to_ht_info(params->ht_capa, 674 ieee80211_ht_cap_ie_to_ht_info(params->ht_capa,
675 &sta->ht_info); 675 &sta->sta.ht_info);
676 } 676 }
677 677
678 if (ieee80211_vif_is_mesh(&sdata->vif) && params->plink_action) { 678 if (ieee80211_vif_is_mesh(&sdata->vif) && params->plink_action) {
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index c049f336e58a..8611a8318c9c 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1316,11 +1316,11 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata,
1316 struct ieee80211_ht_bss_info bss_info; 1316 struct ieee80211_ht_bss_info bss_info;
1317 ieee80211_ht_cap_ie_to_ht_info( 1317 ieee80211_ht_cap_ie_to_ht_info(
1318 (struct ieee80211_ht_cap *) 1318 (struct ieee80211_ht_cap *)
1319 elems.ht_cap_elem, &sta->ht_info); 1319 elems.ht_cap_elem, &sta->sta.ht_info);
1320 ieee80211_ht_addt_info_ie_to_ht_bss_info( 1320 ieee80211_ht_addt_info_ie_to_ht_bss_info(
1321 (struct ieee80211_ht_addt_info *) 1321 (struct ieee80211_ht_addt_info *)
1322 elems.ht_info_elem, &bss_info); 1322 elems.ht_info_elem, &bss_info);
1323 ieee80211_handle_ht(local, 1, &sta->ht_info, &bss_info); 1323 ieee80211_handle_ht(local, 1, &sta->sta.ht_info, &bss_info);
1324 } 1324 }
1325 1325
1326 rate_control_rate_init(sta, local); 1326 rate_control_rate_init(sta, local);
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index 5d8fabf7a68b..b773c7b8d296 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -167,7 +167,6 @@ struct sta_ampdu_mlme {
167 * @lock: used for locking all fields that require locking, see comments 167 * @lock: used for locking all fields that require locking, see comments
168 * in the header file. 168 * in the header file.
169 * @flaglock: spinlock for flags accesses 169 * @flaglock: spinlock for flags accesses
170 * @ht_info: HT capabilities of this STA
171 * @addr: MAC address of this STA 170 * @addr: MAC address of this STA
172 * @aid: STA's unique AID (1..2007, 0 = not assigned yet), 171 * @aid: STA's unique AID (1..2007, 0 = not assigned yet),
173 * only used in AP (and IBSS?) mode 172 * only used in AP (and IBSS?) mode
@@ -226,7 +225,6 @@ struct sta_info {
226 void *rate_ctrl_priv; 225 void *rate_ctrl_priv;
227 spinlock_t lock; 226 spinlock_t lock;
228 spinlock_t flaglock; 227 spinlock_t flaglock;
229 struct ieee80211_ht_info ht_info;
230 228
231 u16 listen_interval; 229 u16 listen_interval;
232 230