summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEliad Peller2011-08-08 15:50:22 +0200
committerJohn W. Linville2011-08-10 20:07:42 +0200
commitf785d83a19bca326f79d127a413e35769afc0105 (patch)
treef4975be92313700adefb6cb6cff216a164965f0c
parentcfg80211/nl80211: Send AssocReq IEs to user space in AP mode (diff)
downloadkernel-qcow2-linux-f785d83a19bca326f79d127a413e35769afc0105.tar.gz
kernel-qcow2-linux-f785d83a19bca326f79d127a413e35769afc0105.tar.xz
kernel-qcow2-linux-f785d83a19bca326f79d127a413e35769afc0105.zip
mac80211: clear sta.drv_priv on reconfiguration
drivers might assume sta.drv_priv is clear while the sta is added, so clear it on reconfinguration. Signed-off-by: Eliad Peller <eliad@wizery.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--net/mac80211/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index ddeb1b998383..7a0e351a510e 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1205,6 +1205,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
struct ieee80211_sub_if_data,
u.ap);
+ memset(&sta->sta.drv_priv, 0, hw->sta_data_size);
WARN_ON(drv_sta_add(local, sdata, &sta->sta));
}
}