diff mbox

Make fallback from HT40 to 20MHz work

Message ID 1453371995-6755-1-git-send-email-eabinader@ocedo.com
State Accepted
Headers show

Commit Message

Eduardo Abinader Jan. 21, 2016, 10:26 a.m. UTC
Ensuring that if it is not possible to configure an
allowed 20MHz channel pair, hostapd falls back to a
single 20MHz channel.

Signed-off-by: Eduardo Abinader <eabinader@ocedo.com>
---
 src/ap/hw_features.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jouni Malinen Feb. 5, 2016, 4:31 p.m. UTC | #1
On Thu, Jan 21, 2016 at 11:26:35AM +0100, Eduardo Abinader wrote:
> Ensuring that if it is not possible to configure an
> allowed 20MHz channel pair, hostapd falls back to a
> single 20MHz channel.

Thanks, applied.
diff mbox

Patch

diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 3607066..16887ac 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -329,6 +329,7 @@  static void ieee80211n_check_scan(struct hostapd_iface *iface)
 	res = ieee80211n_allowed_ht40_channel_pair(iface);
 	if (!res) {
 		iface->conf->secondary_channel = 0;
+		res = 1;
 		wpa_printf(MSG_INFO, "Fallback to 20 MHz");
 	}