summaryrefslogtreecommitdiff
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-08-08 16:50:22 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-08-10 14:07:42 -0400
commitf785d83a19bca326f79d127a413e35769afc0105 (patch)
treef4975be92313700adefb6cb6cff216a164965f0c /net/mac80211/util.c
parent50d3dfb728e987790cf3d973aaf5fba2433771d8 (diff)
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>
Diffstat (limited to 'net/mac80211/util.c')
-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 ddeb1b99838..7a0e351a510 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));
}
}