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 | fdd820a54af9158b95ecfbb2209d6f3a934cf265 (patch) | |
tree | 5568b338e7278a0ea0e0f3203820ee97d9c3e766 /package/network/services/hostapd/patches/340-reload_freq_change.patch | |
parent | 96f0d4bb4f657e69d2cecbdcd13451cad5b10511 (diff) | |
download | master-187ad058-fdd820a54af9158b95ecfbb2209d6f3a934cf265.tar.gz master-187ad058-fdd820a54af9158b95ecfbb2209d6f3a934cf265.tar.bz2 master-187ad058-fdd820a54af9158b95ecfbb2209d6f3a934cf265.zip |
hostapd: fix frequency selection for ap+sta
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39426 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 d36b0460fa..9316794817 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; |