cfg80211: fix nl80211 disconnected events
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 6 Aug 2009 18:41:33 +0000 (20:41 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:12:46 +0000 (09:12 -0400)
commite458b8a22d33eef62765c9f89889efeb4041f073
treee738ffebfecb0e461ca033528dd39a8b86839770
parente21546a2a3953a7d4b9d5c9b1cf12184ffceab96
cfg80211: fix nl80211 disconnected events

When reporting a disconnection to userspace, we try
to report whether it was from the AP or by our own
choice. However, we misreported a broadcast deauth
or disassoc as being by own choice, which is wrong.
Fix this by checking the sender address instead of
the destination address.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/mlme.c