From f785d83a19bca326f79d127a413e35769afc0105 Mon Sep 17 00:00:00 2001 From: Eliad Peller Date: Mon, 8 Aug 2011 16:50:22 +0300 Subject: [PATCH] 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 Acked-by: Johannes Berg Signed-off-by: John W. Linville --- net/mac80211/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/util.c b/net/mac80211/util.c index ddeb1b9..7a0e351 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)); } } -- 2.7.4