From: Pawel Kulakowski Date: Wed, 26 Mar 2014 12:18:29 +0000 (+0100) Subject: Fix issue with incorrect secondary_channel in HT40/HT80 X-Git-Tag: hostap_2_2~447 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74a1319e5037ad04c6a4e09bfd514087849b28b9;p=thirdparty%2Fhostap.git 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 --- 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;