diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-01-30 13:21:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-01-30 13:21:30 +0000 |
commit | 2725913d2acca4774c41c7de0d8f4940615a3f1d (patch) | |
tree | 278d39cd419ec5c979de20b65564b8137e698705 /package/network/services/hostapd/patches/340-reload_freq_change.patch | |
parent | 5dcb4cc7d10872bd026e89b920759a016b10614e (diff) | |
download | mtk-20170518-2725913d2acca4774c41c7de0d8f4940615a3f1d.zip mtk-20170518-2725913d2acca4774c41c7de0d8f4940615a3f1d.tar.gz mtk-20170518-2725913d2acca4774c41c7de0d8f4940615a3f1d.tar.bz2 |
hostapd: fix frequency selection for ap+sta
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39426
Diffstat (limited to 'package/network/services/hostapd/patches/340-reload_freq_change.patch')
-rw-r--r-- | package/network/services/hostapd/patches/340-reload_freq_change.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/340-reload_freq_change.patch b/package/network/services/hostapd/patches/340-reload_freq_change.patch index d36b046..9316794 100644 --- a/package/network/services/hostapd/patches/340-reload_freq_change.patch +++ b/package/network/services/hostapd/patches/340-reload_freq_change.patch @@ -17,3 +17,13 @@ if (!ssid->wpa_psk_set && ssid->wpa_psk && !ssid->wpa_psk->next && ssid->wpa_passphrase_set && ssid->wpa_passphrase) { /* +@@ -172,6 +182,9 @@ int hostapd_reload_config(struct hostapd + oldconf = hapd->iconf; + iface->conf = newconf; + ++ if (iface->conf->channel) ++ iface->freq = hostapd_hw_get_freq(hapd, iface->conf->channel); ++ + for (j = 0; j < iface->num_bss; j++) { + hapd = iface->bss[j]; + hapd->iconf = newconf; |