summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/kernel-modules/kernel-module-nxp-wlan
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/kernel-modules/kernel-module-nxp-wlan')
-rw-r--r--recipes-kernel/kernel-modules/kernel-module-nxp-wlan/0002-mlinux-moal_sta_cfg80211-fix-probe_client-build-on-7.2-kernels.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/0002-mlinux-moal_sta_cfg80211-fix-probe_client-build-on-7.2-kernels.patch b/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/0002-mlinux-moal_sta_cfg80211-fix-probe_client-build-on-7.2-kernels.patch
new file mode 100644
index 000000000..21cf649fc
--- /dev/null
+++ b/recipes-kernel/kernel-modules/kernel-module-nxp-wlan/0002-mlinux-moal_sta_cfg80211-fix-probe_client-build-on-7.2-kernels.patch
@@ -0,0 +1,39 @@
1From 73737cbdf6fd3a74b8798c4b46e436cddf258bdb Mon Sep 17 00:00:00 2001
2From: "Rodrigo M. Duarte" <rodrigo.duarte@ossystems.com.br>
3Date: Thu, 29 Oct 2026 14:41:05 -0300
4Subject: [PATCH] mlinux: moal_sta_cfg80211: fix probe_client build on 7.2
5 kernels
6
7The driver assumes the probe_client cfg80211 op was renamed to
8probe_peer in Linux 7.2, but the rename landed in v7.3-rc1; v7.2
9still has probe_client. Building against a mainline-based 7.2 kernel
10fails with:
11
12 moal_sta_cfg80211.c: error: 'struct cfg80211_ops' has no member
13 named 'probe_peer'
14
15Move the version check to 7.3.0, so 7.2 kernels use probe_client.
16Older kernels are not affected.
17
18Upstream-Status: Pending
19Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
20---
21 mlinux/moal_sta_cfg80211.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24diff --git a/mlinux/moal_sta_cfg80211.c b/mlinux/moal_sta_cfg80211.c
25index 2605630..e246aeb 100644
26--- a/mlinux/moal_sta_cfg80211.c
27+++ b/mlinux/moal_sta_cfg80211.c
28@@ -12247,7 +12247,7 @@ mlan_status woal_register_cfg80211(moal_private *priv)
29 woal_cfg80211_ops.disconnect = NULL;
30 woal_cfg80211_ops.connect = NULL;
31 #ifdef UAP_SUPPORT
32-#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 2, 0)
33+#if CFG80211_VERSION_CODE >= KERNEL_VERSION(7, 3, 0)
34 woal_cfg80211_ops.probe_peer = woal_cfg80211_probe_client;
35 #else
36 woal_cfg80211_ops.probe_client = woal_cfg80211_probe_client;
37--
382.54.0
39