aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-09-10 21:14:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-15 16:48:24 -0400
commit687c7c0807371aeaa94ff2fff511eeb326b5c5de (patch)
tree5f1a51d7f42dba9718ab7286768a5d3c7a4b4b34 /net/mac80211
parentae17e986091637e7ef5a8224c7b689029b105131 (diff)
mac80211: share sta_info->ht_info
Rate control algorithms may need access to a station's HT capabilities, so share the ht_info struct in the public station API. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/cfg.c2
-rw-r--r--net/mac80211/mlme.c4
-rw-r--r--net/mac80211/sta_info.h2
3 files changed, 3 insertions, 5 deletions
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