commit e1e46b3794858d776ab41096c38a1709ae47d81a
Author: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
Date: Thu Aug 22 00:20:43 2024 +0200
Add patch to make wpa_supplicant 2.11 scans not to fail - RFBZ#7030
Signed-off-by: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
...7_wpa_supplicant-2.11_add_max_scan_ie_len.patch | 35 ++++++++++++++++++++++
wl-kmod.spec | 2 ++
2 files changed, 37 insertions(+)
---
diff --git a/wl-kmod-027_wpa_supplicant-2.11_add_max_scan_ie_len.patch
b/wl-kmod-027_wpa_supplicant-2.11_add_max_scan_ie_len.patch
new file mode 100644
index 0000000..3f0d36b
--- /dev/null
+++ b/wl-kmod-027_wpa_supplicant-2.11_add_max_scan_ie_len.patch
@@ -0,0 +1,35 @@
+From d9d6f584c57f10349876a68f9bf029ef47c9a74b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Nicolas=20Vi=C3=A9ville?= <nicolas.vieville(a)uphf.fr>
+Date: Wed, 21 Aug 2024 23:49:28 +0200
+Subject: [PATCH] wpa_supplicant-2.11: wl_cfg80211_hybrid.c: add
+ max_scan_ie_len in order to make wpa_supplicant scans not to fail
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
+---
+ src/wl/sys/wl_cfg80211_hybrid.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
+index ff5a3fb..5ffa0b3 100644
+--- a/src/wl/sys/wl_cfg80211_hybrid.c
++++ b/src/wl/sys/wl_cfg80211_hybrid.c
+@@ -2011,6 +2011,13 @@ static s32 wl_alloc_wdev(struct device *dev, struct wireless_dev
**rwdev)
+ }
+ set_wiphy_dev(wdev->wiphy, dev);
+ wdev->wiphy->max_scan_ssids = WL_NUM_SCAN_MAX;
++
++ /* Set max_scan_ie_len to a random value in order to make wpa_supplicant
++ * scans not to fail. The driver should ignore the extra passed IEs.
++ * Value taken and fix inspired from:
++ *
https://patchwork.kernel.org/project/linux-wireless/patch/20211212221310....
++ */
++ wdev->wiphy->max_scan_ie_len = 512;
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)
+ wdev->wiphy->max_num_pmkids = WL_NUM_PMKIDS_MAX;
+ #endif
+--
+2.46.0
+
diff --git a/wl-kmod.spec b/wl-kmod.spec
index 1896fae..77ba9a1 100644
--- a/wl-kmod.spec
+++ b/wl-kmod.spec
@@ -44,6 +44,7 @@ Patch22: wl-kmod-023_kernel_6.0_adaptation.patch
Patch23: wl-kmod-024_kernel_6.1_adaptation.patch
Patch24: wl-kmod-025_kernel_6.5_adaptation.patch
Patch25: wl-kmod-026_kernel_6.10_fix_empty_body_in_if_warning.patch
+Patch26: wl-kmod-027_wpa_supplicant-2.11_add_max_scan_ie_len.patch
# needed for plague to make sure it builds for i586 and i686
ExclusiveArch: i686 x86_64
@@ -110,6 +111,7 @@ pushd %{name}-%{version}-src
%patch -P 23 -p1 -b .kernel_6.1_adaptation
%patch -P 24 -p1 -b .kernel_6.5_adaptation
%patch -P 25 -p1 -b .kernel_6.10_adaptation
+%patch -P 26 -p1 -b .wpa_supplicant-2.11_adaptation
# Manual patching to build for RHEL - inspired by CentOS wl-kmod.spec
# Actually works for RHEL 6.x and 7.x