aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2016-03-06 09:42:38 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-06 18:01:15 (GMT)
commit2940bf669ab53576bf1028012fcc538989f0df9b (patch)
tree39282c01a2adac5fa912b3db192fedcd8338423e /hostapd
parent6448e06415e314125355a9eed730f3ce11b01d60 (diff)
downloadhostap-2940bf669ab53576bf1028012fcc538989f0df9b.zip
hostap-2940bf669ab53576bf1028012fcc538989f0df9b.tar.gz
hostap-2940bf669ab53576bf1028012fcc538989f0df9b.tar.bz2
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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 06aa4b2..25dc20b 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -474,9 +474,8 @@ static void usage(void)
static const char * hostapd_msg_ifname_cb(void *ctx)
{
struct hostapd_data *hapd = ctx;
- if (hapd && hapd->iconf && hapd->iconf->bss &&
- hapd->iconf->num_bss > 0 && hapd->iconf->bss[0])
- return hapd->iconf->bss[0]->iface;
+ if (hapd && hapd->conf)
+ return hapd->conf->iface;
return NULL;
}