diff options
author | David S. Miller <davem@davemloft.net> | 2016-04-13 17:58:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-13 17:58:51 -0400 |
commit | 71bbe25d01fa4f35551ff7bffc3e03ddd3e960cd (patch) | |
tree | d32c77e506192ef0ba62a10e92aac410eccaa575 /net/mac80211/mesh_plink.c | |
parent | 7d45a04cbc2683f9552572850f1c711d9b96dd26 (diff) | |
parent | 57fbcce37be7c1d2622b56587c10ade00e96afa3 (diff) |
Merge tag 'mac80211-next-for-davem-2016-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Johannes Berg says:
====================
To synchronize with Kalle, here's just a big change that affects
all drivers - removing the duplicated enum ieee80211_band and
replacing it by enum nl80211_band. On top of that, just a small
documentation update.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r-- | net/mac80211/mesh_plink.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 563bea050383..79f2a0a13db8 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -93,18 +93,18 @@ static inline void mesh_plink_fsm_restart(struct sta_info *sta) | |||
93 | static u32 mesh_set_short_slot_time(struct ieee80211_sub_if_data *sdata) | 93 | static u32 mesh_set_short_slot_time(struct ieee80211_sub_if_data *sdata) |
94 | { | 94 | { |
95 | struct ieee80211_local *local = sdata->local; | 95 | struct ieee80211_local *local = sdata->local; |
96 | enum ieee80211_band band = ieee80211_get_sdata_band(sdata); | 96 | enum nl80211_band band = ieee80211_get_sdata_band(sdata); |
97 | struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; | 97 | struct ieee80211_supported_band *sband = local->hw.wiphy->bands[band]; |
98 | struct sta_info *sta; | 98 | struct sta_info *sta; |
99 | u32 erp_rates = 0, changed = 0; | 99 | u32 erp_rates = 0, changed = 0; |
100 | int i; | 100 | int i; |
101 | bool short_slot = false; | 101 | bool short_slot = false; |
102 | 102 | ||
103 | if (band == IEEE80211_BAND_5GHZ) { | 103 | if (band == NL80211_BAND_5GHZ) { |
104 | /* (IEEE 802.11-2012 19.4.5) */ | 104 | /* (IEEE 802.11-2012 19.4.5) */ |
105 | short_slot = true; | 105 | short_slot = true; |
106 | goto out; | 106 | goto out; |
107 | } else if (band != IEEE80211_BAND_2GHZ) | 107 | } else if (band != NL80211_BAND_2GHZ) |
108 | goto out; | 108 | goto out; |
109 | 109 | ||
110 | for (i = 0; i < sband->n_bitrates; i++) | 110 | for (i = 0; i < sband->n_bitrates; i++) |
@@ -247,7 +247,7 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, | |||
247 | mgmt->u.action.u.self_prot.action_code = action; | 247 | mgmt->u.action.u.self_prot.action_code = action; |
248 | 248 | ||
249 | if (action != WLAN_SP_MESH_PEERING_CLOSE) { | 249 | if (action != WLAN_SP_MESH_PEERING_CLOSE) { |
250 | enum ieee80211_band band = ieee80211_get_sdata_band(sdata); | 250 | enum nl80211_band band = ieee80211_get_sdata_band(sdata); |
251 | 251 | ||
252 | /* capability info */ | 252 | /* capability info */ |
253 | pos = skb_put(skb, 2); | 253 | pos = skb_put(skb, 2); |
@@ -385,7 +385,7 @@ static void mesh_sta_info_init(struct ieee80211_sub_if_data *sdata, | |||
385 | struct ieee802_11_elems *elems, bool insert) | 385 | struct ieee802_11_elems *elems, bool insert) |
386 | { | 386 | { |
387 | struct ieee80211_local *local = sdata->local; | 387 | struct ieee80211_local *local = sdata->local; |
388 | enum ieee80211_band band = ieee80211_get_sdata_band(sdata); | 388 | enum nl80211_band band = ieee80211_get_sdata_band(sdata); |
389 | struct ieee80211_supported_band *sband; | 389 | struct ieee80211_supported_band *sband; |
390 | u32 rates, basic_rates = 0, changed = 0; | 390 | u32 rates, basic_rates = 0, changed = 0; |
391 | enum ieee80211_sta_rx_bandwidth bw = sta->sta.bandwidth; | 391 | enum ieee80211_sta_rx_bandwidth bw = sta->sta.bandwidth; |