summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_plink.c
diff options
context:
space:
mode:
authorAlexis Green <agreen@cococorp.com>2015-06-09 13:00:43 -0700
committerJohannes Berg <johannes.berg@intel.com>2015-06-09 22:05:06 +0200
commite060e7adc296c0b3eab1d7b96f36b496733109e4 (patch)
treec97610d4f6bf6ddbe39429d84ee7236b1353e75d /net/mac80211/mesh_plink.c
parent8df734e865b74d9f273216482a45a38269dc767a (diff)
downloadtalos-obmc-linux-e060e7adc296c0b3eab1d7b96f36b496733109e4.tar.gz
talos-obmc-linux-e060e7adc296c0b3eab1d7b96f36b496733109e4.zip
mac80211: Always check rates and capabilities in mesh mode
In mesh mode there is a race between establishing links and processing rates and capabilities in beacons. This is very noticeable with slow beacons (e.g. beacon intervals of 1s) and manifested for us as stations using minstrel when minstrel_ht should be used. Fixed by changing mesh_sta_info_init so that it always checks rates and such if it has not already done so. Signed-off-by: Alexis Green <agreen@cococorp.com> CC: Jesse Jones <jjones@cococorp.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r--net/mac80211/mesh_plink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index 72a127e8a1b6..5438d13e2f00 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -392,8 +392,9 @@ static void mesh_sta_info_init(struct ieee80211_sub_if_data *sdata,
sta->last_rx = jiffies;
/* rates and capabilities don't change during peering */
- if (sta->plink_state == NL80211_PLINK_ESTAB)
+ if (sta->plink_state == NL80211_PLINK_ESTAB && sta->processed_beacon)
goto out;
+ sta->processed_beacon = true;
if (sta->sta.supp_rates[band] != rates)
changed |= IEEE80211_RC_SUPP_RATES_CHANGED;
OpenPOWER on IntegriCloud