mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
nl80211: Fix sending of WDS STA event to the correct BSS context
The WDS-STA-INTERFACE-ADDED/WDS-STA-INTERFACE-REMOVED events were always
sent to the first BSS instead of the specific BSS that the STA was
connected to in multi-BSS cases. Fix this by using the BSS specific
context pointer.
Fixes: 1952b626ba
("hostapd: Add ctrl iface indications for WDS STA interface")
Signed-off-by: Bhagavathi Perumal S <bperumal@codeaurora.org>
This commit is contained in:
parent
add3c2a1bf
commit
8bfbb295df
@ -6545,7 +6545,7 @@ static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val,
|
||||
event.wds_sta_interface.sta_addr = addr;
|
||||
event.wds_sta_interface.ifname = name;
|
||||
event.wds_sta_interface.istatus = INTERFACE_ADDED;
|
||||
wpa_supplicant_event(drv->ctx,
|
||||
wpa_supplicant_event(bss->ctx,
|
||||
EVENT_WDS_STA_INTERFACE_STATUS,
|
||||
&event);
|
||||
}
|
||||
@ -6565,7 +6565,7 @@ static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val,
|
||||
event.wds_sta_interface.sta_addr = addr;
|
||||
event.wds_sta_interface.ifname = name;
|
||||
event.wds_sta_interface.istatus = INTERFACE_REMOVED;
|
||||
wpa_supplicant_event(drv->ctx, EVENT_WDS_STA_INTERFACE_STATUS,
|
||||
wpa_supplicant_event(bss->ctx, EVENT_WDS_STA_INTERFACE_STATUS,
|
||||
&event);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user