hostap/src/drivers
Rafał Miłecki 4653ceb750 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>
2016-01-13 00:17:27 +02:00
..
.gitignore Force rebuilding of src/drivers between hostapd and wpa_supplicant 2009-08-14 20:40:37 +03:00
android_drv.h Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
driver.h nl80211: Add support for multiple scan plans for scheduled scan 2015-11-30 14:03:28 +02:00
driver_atheros.c atheros: Unify memory processing functions 2015-12-17 23:29:25 +02:00
driver_bsd.c drivers: Use unsigned arguments for sta_set_flags() 2015-07-07 16:25:06 +03:00
driver_common.c nl80211: Allocate QCA vendor subcmds for DFS radar detected and CAC events 2015-02-11 16:51:33 +02:00
driver_hostap.c hostap: Avoid undefined behavior in pointer arithmetic 2015-10-25 15:35:00 +02:00
driver_hostap.h Use SSID_MAX_LEN define instead of value 32 when comparing SSID length 2015-04-22 11:44:18 +03:00
driver_macsec_qca.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_ndis.c ndis: Avoid undefined behavior in pointer arithmetic 2015-10-25 15:35:00 +02:00
driver_ndis.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
driver_ndis_.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
driver_nl80211.c nl80211: Don't call linux_iface_up() for a dedicated P2P Device 2015-12-28 17:21:08 +02:00
driver_nl80211.h rfkill: Match only the correct expected wiphy rfkill 2015-12-18 22:26:18 +02:00
driver_nl80211_android.c Android: Rename ANDROID_P2P_STUB to ANDROID_LIB_STUB 2015-06-26 22:46:16 +03:00
driver_nl80211_capa.c rfkill: Match only the correct expected wiphy rfkill 2015-12-18 22:26:18 +02:00
driver_nl80211_event.c nl80211: Report disassociated STA / lost peer for the correct BSS 2016-01-13 00:17:27 +02:00
driver_nl80211_monitor.c nl80211: Move AP monitor interface handling to a separate file 2014-10-26 17:54:56 +02:00
driver_nl80211_scan.c nl80211: Add support for multiple scan plans for scheduled scan 2015-11-30 14:03:28 +02:00
driver_none.c Remove unused send_eapol() driver op 2014-12-11 15:40:07 +02:00
driver_openbsd.c Add driver for OpenBSD net80211 layer 2013-02-03 21:16:29 +02:00
driver_privsep.c privsep: Avoid undefined behavior in pointer arithmetic 2015-10-25 19:37:16 +02:00
driver_roboswitch.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
driver_wext.c wext: Avoid undefined behavior in pointer arithmetic 2015-10-25 19:37:16 +02:00
driver_wext.h Android: Remove old WEXT extensions 2013-12-24 22:52:18 +02:00
driver_wired.c Clean up debug prints to use wpa_printf() 2014-12-26 13:20:57 +02:00
drivers.c Declare all read only data structures as const 2015-04-25 17:33:06 +03:00
drivers.mak nl80211: Add build option for QCA vendor extensions 2015-10-01 12:45:27 +03:00
drivers.mk nl80211: Add build option for QCA vendor extensions 2015-10-01 12:45:27 +03:00
linux_defines.h nl80211: Move definitions into separate header files 2014-10-26 17:03:24 +02:00
linux_ioctl.c nl80211: Generic Linux master interface support for hostapd 2015-07-16 12:33:29 +03:00
linux_ioctl.h nl80211: Generic Linux master interface support for hostapd 2015-07-16 12:33:29 +03:00
linux_wext.h wext: Fix musl build error 2014-12-14 18:05:32 +02:00
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
ndis_events.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
netlink.c netlink: Fix RTM_SETLINK padding at the end of the message 2014-10-12 19:27:16 +03:00
netlink.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
nl80211_copy.h Sync with mac80211-next.git include/uapi/linux/nl80211.h 2015-11-26 19:42:56 +02:00
priv_netlink.h netlink: Fix RTM_SETLINK padding at the end of the message 2014-10-12 19:27:16 +03:00
rfkill.c rfkill: Match only the correct expected wiphy rfkill 2015-12-18 22:26:18 +02:00
rfkill.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00