]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Report disassociated STA / lost peer for the correct BSS
authorRafał Miłecki <zajec5@gmail.com>
Mon, 11 Jan 2016 18:31:50 +0000 (19:31 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 12 Jan 2016 22:17:27 +0000 (00:17 +0200)
commit4653ceb750d5e47fcff771cec934f211a4acb8d6
treeec75fe2d5a64ca973eade5fa8254f78584632026
parent38af0423cbbc4c9acee71a197eec7089d1d1b9d3
nl80211: Report disassociated STA / lost peer for the correct BSS

We shouldn't use drv->ctx as it always points to the first BSS. When
using FullMAC driver with multi-BSS support it resulted in incorrect
treating nl80211 events. I noticed with with brcmfmac and BCM43602.

Before my change I was getting "disassociated" on a wrong interface:
wlan0-1: STA 78:d6:f0:00:11:22 IEEE 802.11: associated
wlan0-1: STA 78:d6:f0:00:11:22 WPA: pairwise key handshake completed (RSN)
wlan0: STA 78:d6:f0:00:11:22 IEEE 802.11: disassociated

With this patch it works as expected:
wlan0-1: STA 78:d6:f0:00:11:22 IEEE 802.11: associated
wlan0-1: STA 78:d6:f0:00:11:22 WPA: pairwise key handshake completed (RSN)
wlan0-1: STA 78:d6:f0:00:11:22 IEEE 802.11: disassociated

This doesn't apply to hostapd dealing with SoftMAC drivers when handling
AP SME & MLME is done it hostapd not the firmware.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
src/drivers/driver_nl80211_event.c