mac80211: clear sta.drv_priv on reconfiguration
authorEliad Peller <eliad@wizery.com>
Mon, 8 Aug 2011 13:50:22 +0000 (16:50 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Aug 2011 18:07:42 +0000 (14:07 -0400)
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>
net/mac80211/util.c

index ddeb1b9983833006e414c3b42b0cf8b986f86fea..7a0e351a510e61c4e37c83759f7f0348484bcd72 100644 (file)
@@ -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));
                }
        }