Skip to content

Commit

Permalink
mac80211: clear sta.drv_priv on reconfiguration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eliad Peller authored and John W. Linville committed Aug 10, 2011
1 parent 50d3dfb commit f785d83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit f785d83

Please sign in to comment.