diff options
author | Chun-Yeow Yeoh <yeohchunyeow@gmail.com> | 2015-06-09 13:35:33 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-06-09 22:04:25 +0200 |
commit | 8df734e865b74d9f273216482a45a38269dc767a (patch) | |
tree | 3666e36c18c3565b9474ce4f97e11e58176dd920 /net/mac80211/cfg.c | |
parent | afd2efb91990667cd4d9171a743f8a89e19d5ef1 (diff) |
mac80211: fix the beacon csa counter for mesh and ibss
The csa counter has moved from sdata to beacon/presp but
it is not updated accordingly for mesh and ibss. Fix this.
Fixes: af296bdb8da4 ("mac80211: move csa counters from sdata to beacon/presp")
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 1a17d3208d8f..d1c94c6a12e1 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -3437,6 +3437,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, /* Update CSA counters */ if (sdata->vif.csa_active && (sdata->vif.type == NL80211_IFTYPE_AP || + sdata->vif.type == NL80211_IFTYPE_MESH_POINT || sdata->vif.type == NL80211_IFTYPE_ADHOC) && params->n_csa_offsets) { int i; |