From 74a1319e5037ad04c6a4e09bfd514087849b28b9 Mon Sep 17 00:00:00 2001 From: Pawel Kulakowski Date: Wed, 26 Mar 2014 13:18:29 +0100 Subject: [PATCH] Fix issue with incorrect secondary_channel in HT40/HT80 When primary and secondary channel were switched and config was reloaded, secondary channel was incorrectly overwritten. Proceed as for other settings that should not be changed and don't allow to overwrite. Signed-off-by: Pawel Kulakowski --- src/ap/hostapd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index ed2226cab..614a5bf40 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -172,6 +172,7 @@ int hostapd_reload_config(struct hostapd_iface *iface) hapd = iface->bss[j]; hapd->iconf = newconf; hapd->iconf->channel = oldconf->channel; + hapd->iconf->secondary_channel = oldconf->secondary_channel; hapd->iconf->ieee80211n = oldconf->ieee80211n; hapd->iconf->ieee80211ac = oldconf->ieee80211ac; hapd->iconf->ht_capab = oldconf->ht_capab;