ath79: add support for gl-e750
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 015-mesh-do-not-use-offchan-mgmt-tx-on-DFS.patch
index 8bac9082d740e2a7bb71a2b02e8f1f7b4536e2f3..7c6f249a0b522a89e40654530481428e672c4dc6 100644 (file)
@@ -17,18 +17,18 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
 
 --- a/src/drivers/driver_nl80211.c
 +++ b/src/drivers/driver_nl80211.c
-@@ -7462,6 +7462,10 @@ static int wpa_driver_nl80211_send_actio
-       int ret = -1;
+@@ -7789,6 +7789,10 @@ static int wpa_driver_nl80211_send_actio
        u8 *buf;
        struct ieee80211_hdr *hdr;
+       int offchanok = 1;
 +      struct hostapd_hw_modes *modes;
-+      int i, offchanok = 1;
++      int i;
 +      u16 num_modes, flags;
 +      u8 dfs_domain;
  
-       wpa_printf(MSG_DEBUG, "nl80211: Send Action frame (ifindex=%d, "
-                  "freq=%u MHz wait=%d ms no_cck=%d)",
-@@ -7486,6 +7490,21 @@ static int wpa_driver_nl80211_send_actio
+       if (is_ap_interface(drv->nlmode) && (int) freq == bss->freq &&
+           bss->beacon_set)
+@@ -7817,6 +7821,21 @@ static int wpa_driver_nl80211_send_actio
                os_memset(bss->rand_addr, 0, ETH_ALEN);
        }
  
@@ -50,12 +50,3 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
        if (is_ap_interface(drv->nlmode) &&
            (!(drv->capa.flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) ||
             (int) freq == bss->freq || drv->device_ap_sme ||
-@@ -7497,7 +7516,7 @@ static int wpa_driver_nl80211_send_actio
-               ret = nl80211_send_frame_cmd(bss, freq, wait_time, buf,
-                                            24 + data_len,
-                                            &drv->send_action_cookie,
--                                           no_cck, 0, 1, NULL, 0);
-+                                           no_cck, 0, offchanok, NULL, 0);
-       os_free(buf);
-       return ret;