From af22a9994b4630997517c39d343caa783ab0b3ea Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Sat, 10 Dec 2011 16:18:50 +0200 Subject: [PATCH] Tell user why a channel cannot be used in AP mode Signed-off-by: Ben Greear --- src/ap/hw_features.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index d43085e8d..8c6fef2f8 100644 --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -631,8 +631,15 @@ int hostapd_select_hw_mode(struct hostapd_iface *iface) if (chan->flag & HOSTAPD_CHAN_DISABLED) { wpa_printf(MSG_ERROR, "channel [%i] (%i) is disabled for " - "use in AP mode, flags: 0x%x", - j, chan->chan, chan->flag); + "use in AP mode, flags: 0x%x%s%s%s", + j, chan->chan, chan->flag, + chan->flag & HOSTAPD_CHAN_NO_IBSS ? + " NO-IBSS" : "", + chan->flag & + HOSTAPD_CHAN_PASSIVE_SCAN ? + " PASSIVE-SCAN" : "", + chan->flag & HOSTAPD_CHAN_RADAR ? + " RADAR" : ""); } else { ok = 1; break;