OSDN Git Service

mac80211: clear ifmgd->bssid only after building DELBA
authorEliad Peller <eliad@wizery.com>
Fri, 1 Jun 2012 08:14:03 +0000 (11:14 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Jun 2012 19:44:25 +0000 (21:44 +0200)
commit88a9e31c506c00c8b7a2f1611406d0e38dcb33b3
tree5b7f85c7649180ea83b9c5ce696c34982fa3ab59
parent79543d8eecc0957ac6fe3ec1e2486ad31d4b67a3
mac80211: clear ifmgd->bssid only after building DELBA

ieee80211_set_disassoc() clears ifmgd->bssid before
building DELBA frames, resulting in frames with invalid
bssid ("00:00:00:00:00:00").

Fix it by clearing ifmgd->bssid only after building
all the needed frames.

After this change, we no longer need to save the
bssid (before clearing it), so remove the local array.

Reported-by: Ido Yariv <ido@wizery.com>
Cc: stable@vger.kernel.org
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c