hostapd: Fill in phyname automatically
If per-BSS configuration enabling did not provide a phy name, iface->phy was left empty. It can be helpful to set this up automatically, so fill that when initializing the interface. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5ae6449ca2
commit
2db938e8de
2 changed files with 17 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* hostapd - Driver operations
|
||||
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
|
||||
* Copyright (c) 2009-2013, Jouni Malinen <j@w1.fi>
|
||||
*
|
||||
* This software may be distributed under the terms of the BSD license.
|
||||
* See README for more details.
|
||||
|
@ -249,4 +249,12 @@ static inline int hostapd_get_country(struct hostapd_data *hapd, char *alpha2)
|
|||
return hapd->driver->get_country(hapd->drv_priv, alpha2);
|
||||
}
|
||||
|
||||
static inline const char * hostapd_drv_get_radio_name(struct hostapd_data *hapd)
|
||||
{
|
||||
if (hapd->driver == NULL || hapd->drv_priv == NULL ||
|
||||
hapd->driver->get_radio_name == NULL)
|
||||
return NULL;
|
||||
return hapd->driver->get_radio_name(hapd->drv_priv);
|
||||
}
|
||||
|
||||
#endif /* AP_DRV_OPS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue