From 2f35aba51cdc1559965b42aa20b022736c935002 Mon Sep 17 00:00:00 2001
From: Maxime Bizon <mbizon@freebox.fr>
Date: Tue, 5 Nov 2013 14:33:23 +0100
Subject: [PATCH 03/18] hostapd: use BSS ifname as debug prefix instead of
 first BSS name.

---
 hostapd/main.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hostapd/main.c b/hostapd/main.c
index a9d7da5..4f8c718 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -456,9 +456,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;
 }
 
-- 
1.7.9.5

