Re: [PATCH 1/2] hostapd: update to v2.10

2022-02-07 Thread Stijn Tintel
Hi David,

On 17/01/2022 21:57, David Bauer wrote:
> Upstreamed patches:
> 020-mesh-make-forwarding-configurable.patch
> e6db1bc5da3fd7d5f4dba24aa102543b4749912f
> 550-WNM-allow-specifying-dialog-token.patch
> 979f19716539362f8ce60a77bf1b88fdcf5ba8e5
> 720-ACS-fix-channel-100-frequency.patch
> 2341585c349231af00cdef8d51458df01bc6965f
> 741-proxyarp-fix-compilation-with-Hotspot-2.0-disabled.patch
> 08bdf4f90de61a84ed8f4dd918272dd9d36e2e1f
>
> Compile-tested: wpad-wolfssl hostapd-openssl
> Run-tested: ath79-generic
>
> Signed-off-by: David Bauer 
Tested-by: Stijn Tintel 


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH 1/2] hostapd: update to v2.10

2022-01-17 Thread David Bauer
Upstreamed patches:
020-mesh-make-forwarding-configurable.patch
e6db1bc5da3fd7d5f4dba24aa102543b4749912f
550-WNM-allow-specifying-dialog-token.patch
979f19716539362f8ce60a77bf1b88fdcf5ba8e5
720-ACS-fix-channel-100-frequency.patch
2341585c349231af00cdef8d51458df01bc6965f
741-proxyarp-fix-compilation-with-Hotspot-2.0-disabled.patch
08bdf4f90de61a84ed8f4dd918272dd9d36e2e1f

Compile-tested: wpad-wolfssl hostapd-openssl
Run-tested: ath79-generic

Signed-off-by: David Bauer 
---
 package/network/services/hostapd/Makefile |   6 +-
 ...hannels-to-be-selected-if-dfs-is-ena.patch |  60 +++--
 ...20-mesh-make-forwarding-configurable.patch | 219 --
 .../hostapd/patches/301-mesh-noscan.patch |  15 +-
 .../patches/470-survey_data_fallback.patch|  22 +-
 ...50-WNM-allow-specifying-dialog-token.patch |  99 
 .../720-ACS-fix-channel-100-frequency.patch   |  30 ---
 ...ompilation-with-Hotspot-2.0-disabled.patch |  51 
 .../services/hostapd/src/src/ap/ubus.c|   2 +-
 9 files changed, 57 insertions(+), 447 deletions(-)
 delete mode 100644 
package/network/services/hostapd/patches/020-mesh-make-forwarding-configurable.patch
 delete mode 100644 
package/network/services/hostapd/patches/550-WNM-allow-specifying-dialog-token.patch
 delete mode 100644 
package/network/services/hostapd/patches/720-ACS-fix-channel-100-frequency.patch
 delete mode 100644 
package/network/services/hostapd/patches/741-proxyarp-fix-compilation-with-Hotspot-2.0-disabled.patch

diff --git a/package/network/services/hostapd/Makefile 
b/package/network/services/hostapd/Makefile
index 7e4056bb18..584695786f 100644
--- a/package/network/services/hostapd/Makefile
+++ b/package/network/services/hostapd/Makefile
@@ -9,9 +9,9 @@ PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE_URL:=http://w1.fi/hostap.git
 PKG_SOURCE_PROTO:=git
-PKG_SOURCE_DATE:=2021-05-22
-PKG_SOURCE_VERSION:=b102f19bcc53c7f7db3951424d4d46709b4f1986
-PKG_MIRROR_HASH:=cb3cb968883042fc582752be1607586696c18e6ecf9808c9a8ac50e204584367
+PKG_SOURCE_DATE:=2022-01-16
+PKG_SOURCE_VERSION:=cff80b4f7d3c0a47c052e8187d671710f48939e4
+PKG_MIRROR_HASH:=712965bfa11a2e601d3e1c9a51a2cf3cffc6db89abafb3df3eb0cfd83c64705b
 
 PKG_MAINTAINER:=Felix Fietkau 
 PKG_LICENSE:=BSD-3-Clause
diff --git 
a/package/network/services/hostapd/patches/010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch
 
b/package/network/services/hostapd/patches/010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch
index d948c41b30..16d24d1000 100644
--- 
a/package/network/services/hostapd/patches/010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch
+++ 
b/package/network/services/hostapd/patches/010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch
@@ -14,16 +14,37 @@ Signed-off-by: Peter Oh 
 
 --- a/wpa_supplicant/wpa_supplicant.c
 +++ b/wpa_supplicant/wpa_supplicant.c
-@@ -2395,6 +2395,8 @@ void ibss_mesh_setup_freq(struct wpa_sup
+@@ -2409,7 +2409,7 @@ static int drv_supports_vht(struct wpa_s
+ }
+ 
+ 
+-static bool ibss_mesh_is_80mhz_avail(int channel, struct hostapd_hw_modes 
*mode)
++static bool ibss_mesh_is_80mhz_avail(int channel, struct hostapd_hw_modes 
*mode, bool dfs_enabled)
+ {
+   int i;
+ 
+@@ -2418,7 +2418,10 @@ static bool ibss_mesh_is_80mhz_avail(int
+ 
+   chan = hw_get_channel_chan(mode, i, NULL);
+   if (!chan ||
+-  chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR))
++  chan->flag & HOSTAPD_CHAN_DISABLED)
++  return false;
++  
++  if (!dfs_enabled && chan->flag & (HOSTAPD_CHAN_RADAR | 
HOSTAPD_CHAN_NO_IR))
+   return false;
+   }
+ 
+@@ -2447,6 +2450,8 @@ void ibss_mesh_setup_freq(struct wpa_sup
int chwidth, seg0, seg1;
u32 vht_caps = 0;
-   int is_24ghz;
-+  int dfs_enabled = wpa_s->conf->country[0] &&
-+   (wpa_s->drv_flags & WPA_DRIVER_FLAGS_RADAR);
+   bool is_24ghz, is_6ghz;
++  bool dfs_enabled = wpa_s->conf->country[0] &&
++ (wpa_s->drv_flags & WPA_DRIVER_FLAGS_RADAR);
  
freq->freq = ssid->frequency;
  
-@@ -2484,8 +2486,11 @@ void ibss_mesh_setup_freq(struct wpa_sup
+@@ -2543,8 +2548,11 @@ void ibss_mesh_setup_freq(struct wpa_sup
return;
  
/* Check primary channel flags */
@@ -36,7 +57,7 @@ Signed-off-by: Peter Oh 
  
freq->channel = pri_chan->chan;
  
-@@ -2518,8 +2523,11 @@ void ibss_mesh_setup_freq(struct wpa_sup
+@@ -2577,8 +2585,11 @@ void ibss_mesh_setup_freq(struct wpa_sup
return;
  
/* Check secondary channel flags */
@@ -49,20 +70,25 @@ Signed-off-by: Peter Oh 
  
if (ht40 == -1) {
if (!(pri_chan->flag & HOSTAPD_CHAN_HT40MINUS))
-@@ -2612,8 +2620,11 @@ skip_ht40:
-   return;
+@@ -2667,7 +2678,7 @@ skip_to_6ghz:
+   return;
  
-   /* Back to HT configuration if channel not usable */
--