projects
/
wpasupplicant
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c2010a
)
Set own MAC address in AP data structures
author
Jouni Malinen
<jouni.malinen@atheros.com>
Fri, 3 Apr 2009 13:53:09 +0000
(16:53 +0300)
committer
Jouni Malinen
<j@w1.fi>
Fri, 3 Apr 2009 13:53:09 +0000
(16:53 +0300)
wpa_supplicant/ap.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/ap.c
b/wpa_supplicant/ap.c
index
837f2be
..
9c8bdad
100644
(file)
--- a/
wpa_supplicant/ap.c
+++ b/
wpa_supplicant/ap.c
@@
-58,6
+58,7
@@
struct ap_driver_data {
static void * ap_driver_init(struct hostapd_data *hapd)
{
struct ap_driver_data *drv;
+ struct wpa_supplicant *wpa_s = hapd->iface->owner;
drv = os_zalloc(sizeof(struct ap_driver_data));
if (drv == NULL) {
@@
-66,6
+67,7
@@
static void * ap_driver_init(struct hostapd_data *hapd)
return NULL;
}
drv->hapd = hapd;
+ os_memcpy(hapd->own_addr, wpa_s->own_addr, ETH_ALEN);
return drv;
}