hostapd: update to latest Git hostap_2_9-1238-gdd2daf0848ed
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 340-reload_freq_change.patch
index 369586769c5c58be5b5a14758ddb3abb8351a97f..09c6a4648d19eae639b46f77ed5857667b384c49 100644 (file)
@@ -1,12 +1,14 @@
 --- a/src/ap/hostapd.c
 +++ b/src/ap/hostapd.c
-@@ -108,6 +108,26 @@ static void hostapd_reload_bss(struct ho
+@@ -112,6 +112,28 @@ static void hostapd_reload_bss(struct ho
  #endif /* CONFIG_NO_RADIUS */
  
        ssid = &hapd->conf->ssid;
 +
 +      hostapd_set_freq(hapd, hapd->iconf->hw_mode, hapd->iface->freq,
 +                       hapd->iconf->channel,
++                       hapd->iconf->enable_edmg,
++                       hapd->iconf->edmg_channel,
 +                       hapd->iconf->ieee80211n,
 +                       hapd->iconf->ieee80211ac,
 +                       hapd->iconf->ieee80211ax,
@@ -27,7 +29,7 @@
        if (!ssid->wpa_psk_set && ssid->wpa_psk && !ssid->wpa_psk->next &&
            ssid->wpa_passphrase_set && ssid->wpa_passphrase) {
                /*
-@@ -205,6 +225,7 @@ int hostapd_reload_config(struct hostapd
+@@ -213,6 +235,7 @@ int hostapd_reload_config(struct hostapd
        struct hostapd_data *hapd = iface->bss[0];
        struct hostapd_config *newconf, *oldconf;
        size_t j;
@@ -35,7 +37,7 @@
  
        if (iface->config_fname == NULL) {
                /* Only in-memory config in use - assume it has been updated */
-@@ -255,24 +276,20 @@ int hostapd_reload_config(struct hostapd
+@@ -263,24 +286,20 @@ int hostapd_reload_config(struct hostapd
        }
        iface->conf = newconf;