summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-05-19 13:22:38 +0200
committerJohannes Berg <johannes.berg@intel.com>2017-05-19 13:25:57 +0200
commit61b81b4010496e8e989307cf7ee196f83dd09681 (patch)
treefebb68ca088f3c6de18631a552bfd9eab6fefb9a /net/mac80211/mesh.c
parent5d55371b2193774979b90a3d09e8a2e0572a8162 (diff)
downloadlinux-stable-61b81b4010496e8e989307cf7ee196f83dd09681.tar.gz
linux-stable-61b81b4010496e8e989307cf7ee196f83dd09681.tar.bz2
linux-stable-61b81b4010496e8e989307cf7ee196f83dd09681.zip
mac80211: move clearing result into ieee80211_parse_ch_switch_ie()
Clear the csa_ie in ieee80211_parse_ch_switch_ie() where the data is filled in, rather than in each caller. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r--net/mac80211/mesh.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index 3702e3d9141d..f7dffdf5fc74 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -960,7 +960,6 @@ ieee80211_mesh_process_chnswitch(struct ieee80211_sub_if_data *sdata,
}
memset(&params, 0, sizeof(params));
- memset(&csa_ie, 0, sizeof(csa_ie));
err = ieee80211_parse_ch_switch_ie(sdata, elems, sband->band,
sta_flags, sdata->vif.addr,
&csa_ie);