aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-03-15 14:45:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-09 16:05:55 -0400
commit074d46d1d23f27488a3f314e29cae2453541f17d (patch)
treec6abb99637c808f6eb9da722c3197cc980ce1a98 /net/mac80211/mesh.c
parentf69b9c79c99b607a8d6b1d9e1913861154af8c63 (diff)
wireless: rename ht_info to ht_operation
Since some of the HT code pre-dates 802.11n-2009 some names are wrong. The one that bothers me most is that "HT operation" is called "HT information" in our code and that causes confusion. Rename "HT information" to "HT operation" and also the control_chan field to primary_chan to match the name used in the spec. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r--net/mac80211/mesh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index e5fbb7cf3562..b05fa9ef866c 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -98,9 +98,9 @@ bool mesh_matches_local(struct ieee802_11_elems *ie, struct ieee80211_sub_if_dat
98 goto mismatch; 98 goto mismatch;
99 99
100 /* disallow peering with mismatched channel types for now */ 100 /* disallow peering with mismatched channel types for now */
101 if (ie->ht_info_elem && 101 if (ie->ht_operation &&
102 (local->_oper_channel_type != 102 (local->_oper_channel_type !=
103 ieee80211_ht_info_to_channel_type(ie->ht_info_elem))) 103 ieee80211_ht_oper_to_channel_type(ie->ht_operation)))
104 goto mismatch; 104 goto mismatch;
105 105
106 return true; 106 return true;
@@ -371,7 +371,7 @@ int mesh_add_ht_cap_ie(struct sk_buff *skb,
371 return 0; 371 return 0;
372} 372}
373 373
374int mesh_add_ht_info_ie(struct sk_buff *skb, 374int mesh_add_ht_oper_ie(struct sk_buff *skb,
375 struct ieee80211_sub_if_data *sdata) 375 struct ieee80211_sub_if_data *sdata)
376{ 376{
377 struct ieee80211_local *local = sdata->local; 377 struct ieee80211_local *local = sdata->local;
@@ -385,11 +385,11 @@ int mesh_add_ht_info_ie(struct sk_buff *skb,
385 if (!ht_cap->ht_supported || channel_type == NL80211_CHAN_NO_HT) 385 if (!ht_cap->ht_supported || channel_type == NL80211_CHAN_NO_HT)
386 return 0; 386 return 0;
387 387
388 if (skb_tailroom(skb) < 2 + sizeof(struct ieee80211_ht_info)) 388 if (skb_tailroom(skb) < 2 + sizeof(struct ieee80211_ht_operation))
389 return -ENOMEM; 389 return -ENOMEM;
390 390
391 pos = skb_put(skb, 2 + sizeof(struct ieee80211_ht_info)); 391 pos = skb_put(skb, 2 + sizeof(struct ieee80211_ht_operation));
392 ieee80211_ie_build_ht_info(pos, ht_cap, channel, channel_type); 392 ieee80211_ie_build_ht_oper(pos, ht_cap, channel, channel_type);
393 393
394 return 0; 394 return 0;
395} 395}