projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37b776e
)
driver_test: Initialize bss_ctx based on drv->ctx for new BSS interfaces
author
Jouni Malinen
<jouni.malinen@atheros.com>
Sat, 16 Jan 2010 10:24:31 +0000
(12:24 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 16 Jan 2010 10:24:31 +0000
(12:24 +0200)
This is needed with wpa_supplicant to get the correct context pointer
for a virtual BSS interface.
src/drivers/driver_test.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_test.c
b/src/drivers/driver_test.c
index
8ebc1b2
..
fbf829a
100644
(file)
--- a/
src/drivers/driver_test.c
+++ b/
src/drivers/driver_test.c
@@
-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);