[PATCH 2/4] hostap: Tell user why a channel cannot be used.

greearb at candelatech.com greearb
Mon Oct 24 12:09:37 PDT 2011


From: Ben Greear <greearb at candelatech.com>

Signed-off-by: Ben Greear <greearb at candelatech.com>
---
:100644 100644 e723543... 05a8b51... M	src/ap/hw_features.c
 src/ap/hw_features.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index e723543..05a8b51 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -629,8 +629,13 @@ 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"
+					   " (NO-IBSS: %i  PASSIVE-SCAN: %i"
+					   "  RADAR: %i)",
+					   j, chan->chan, chan->flag,
+					   !!(chan->flag & HOSTAPD_CHAN_NO_IBSS),
+					   !!(chan->flag & HOSTAPD_CHAN_PASSIVE_SCAN),
+					   !!(chan->flag & HOSTAPD_CHAN_RADAR));
 			} else {
 				ok = 1;
 				break;
-- 
1.7.3.4




More information about the Hostap mailing list