mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
hostapd: Use ifname of the current context in debug messages
In case of multiple BSS configuration, return the current interface name, instead of the first one. Signed-off-by: Eliad Peller <eliad@wizery.com>
This commit is contained in:
parent
6448e06415
commit
2940bf669a
@ -474,9 +474,8 @@ static void usage(void)
|
|||||||
static const char * hostapd_msg_ifname_cb(void *ctx)
|
static const char * hostapd_msg_ifname_cb(void *ctx)
|
||||||
{
|
{
|
||||||
struct hostapd_data *hapd = ctx;
|
struct hostapd_data *hapd = ctx;
|
||||||
if (hapd && hapd->iconf && hapd->iconf->bss &&
|
if (hapd && hapd->conf)
|
||||||
hapd->iconf->num_bss > 0 && hapd->iconf->bss[0])
|
return hapd->conf->iface;
|
||||||
return hapd->iconf->bss[0]->iface;
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user