[PATCH] hw_features: increase fallback to HT20 by defering channel pair check

Eduardo Abinader eduardoabinader at gmail.com
Tue Mar 21 04:24:54 PDT 2017


Defer decision, so we could possibly benefit from a fallback.
---
 src/ap/hw_features.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 93d923a..fd93a4c 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -725,11 +725,7 @@ static int hostapd_is_usable_chans(struct hostapd_iface *iface)
 	if (!hostapd_is_usable_chan(iface, iface->conf->channel, 1))
 		return 0;
 
-	if (!iface->conf->secondary_channel)
-		return 1;
-
-	return hostapd_is_usable_chan(iface, iface->conf->channel +
-				      iface->conf->secondary_channel * 4, 0);
+	return 1;
 }
 
 
-- 
2.5.0




More information about the Hostap mailing list