From: Eliad Peller Date: Mon, 2 Jul 2012 11:42:03 +0000 (+0300) Subject: mac80211: destroy assoc_data correctly if assoc fails X-Git-Tag: v3.5~24^2~24^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10a9109f2705fdc3caa94d768b2559587a9a050c;p=pandora-kernel.git mac80211: destroy assoc_data correctly if assoc fails 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 Reviewed-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed