mac80211: destroy assoc_data correctly if assoc fails
authorEliad Peller <eliad@wizery.com>
Mon, 2 Jul 2012 11:42:03 +0000 (14:42 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 19:01:00 +0000 (15:01 -0400)
If association failed due to internal error (e.g. no
supported rates IE), we call ieee80211_destroy_assoc_data()
with assoc=true, while we actually reject the association.

This results in the BSSID not being zeroed out.

After passing assoc=false, we no longer have to call
sta_info_destroy_addr() explicitly. While on it, move
the "associated" message after the assoc_success check.

Cc: stable@vger.kernel.org [3.4+]
Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found