mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
driver_test: Initialize bss_ctx based on drv->ctx for new BSS interfaces
This is needed with wpa_supplicant to get the correct context pointer for a virtual BSS interface.
This commit is contained in:
parent
37b776eac1
commit
c35faef51a
@ -1557,6 +1557,7 @@ static int wpa_driver_test_associate(
|
||||
bss = drv->bss = os_zalloc(sizeof(*drv->bss));
|
||||
if (bss == NULL)
|
||||
return -1;
|
||||
bss->bss_ctx = drv->ctx;
|
||||
os_strlcpy(bss->ifname, drv->ifname, IFNAMSIZ);
|
||||
os_memcpy(bss->bssid, drv->own_addr, ETH_ALEN);
|
||||
os_memcpy(bss->ssid, params->ssid, params->ssid_len);
|
||||
|
Loading…
Reference in New Issue
Block a user