Set own MAC address in AP data structures
This commit is contained in:
parent
2c2010acda
commit
0892aaaf51
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,7 @@ struct ap_driver_data {
|
||||||
static void * ap_driver_init(struct hostapd_data *hapd)
|
static void * ap_driver_init(struct hostapd_data *hapd)
|
||||||
{
|
{
|
||||||
struct ap_driver_data *drv;
|
struct ap_driver_data *drv;
|
||||||
|
struct wpa_supplicant *wpa_s = hapd->iface->owner;
|
||||||
|
|
||||||
drv = os_zalloc(sizeof(struct ap_driver_data));
|
drv = os_zalloc(sizeof(struct ap_driver_data));
|
||||||
if (drv == NULL) {
|
if (drv == NULL) {
|
||||||
|
@ -66,6 +67,7 @@ static void * ap_driver_init(struct hostapd_data *hapd)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
drv->hapd = hapd;
|
drv->hapd = hapd;
|
||||||
|
os_memcpy(hapd->own_addr, wpa_s->own_addr, ETH_ALEN);
|
||||||
|
|
||||||
return drv;
|
return drv;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue