From 0892aaaf511367b87ce8a70dfd9675013a0f8cd4 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Apr 2009 16:53:09 +0300 Subject: [PATCH] Set own MAC address in AP data structures --- wpa_supplicant/ap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 837f2be51..9c8bdad86 100644 --- 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; }