diff options
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.patch | 39 |
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 @@ | |||
| 1 | From 73737cbdf6fd3a74b8798c4b46e436cddf258bdb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Rodrigo M. Duarte" <rodrigo.duarte@ossystems.com.br> | ||
| 3 | Date: Thu, 29 Oct 2026 14:41:05 -0300 | ||
| 4 | Subject: [PATCH] mlinux: moal_sta_cfg80211: fix probe_client build on 7.2 | ||
| 5 | kernels | ||
| 6 | |||
| 7 | The driver assumes the probe_client cfg80211 op was renamed to | ||
| 8 | probe_peer in Linux 7.2, but the rename landed in v7.3-rc1; v7.2 | ||
| 9 | still has probe_client. Building against a mainline-based 7.2 kernel | ||
| 10 | fails with: | ||
| 11 | |||
| 12 | moal_sta_cfg80211.c: error: 'struct cfg80211_ops' has no member | ||
| 13 | named 'probe_peer' | ||
| 14 | |||
| 15 | Move the version check to 7.3.0, so 7.2 kernels use probe_client. | ||
| 16 | Older kernels are not affected. | ||
| 17 | |||
| 18 | Upstream-Status: Pending | ||
| 19 | Signed-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 | |||
| 24 | diff --git a/mlinux/moal_sta_cfg80211.c b/mlinux/moal_sta_cfg80211.c | ||
| 25 | index 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 | -- | ||
| 38 | 2.54.0 | ||
| 39 | |||
