From 1a60dedc1dbc9fb2fd7dd0ea6ac2903de125c183 Mon Sep 17 00:00:00 2001 From: Tomaz Zaman Date: Sun, 16 Aug 2026 19:07:22 +0200 Subject: [PATCH 65/72] nxp-mwifiex: select DRIVER_11AC/AX_SUPPORT for VHT/HE hostapd's VHT(11ac)/HE(11ax) config handling is gated on the DRIVER_11AC_SUPPORT / DRIVER_11AX_SUPPORT symbols, normally selected by mac80211 driver packages. This fullmac driver builds no kmod-mac80211 (cfg80211 only), so wpad was HT-only and add_iface failed on any vht_*/he_* item -- the AP could not come up on the board's HE htmodes. Select both in the kmod DEPENDS. 11AX also pulls in WPA_MBO_SUPPORT, which aids band steering. Co-Authored-By: Claude Opus 4.8 --- configs/mono_gateway-dk.seed | 6 ++++-- package/kernel/nxp-mwifiex/Makefile | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configs/mono_gateway-dk.seed b/configs/mono_gateway-dk.seed index 978635fe83..6524558d1b 100644 --- a/configs/mono_gateway-dk.seed +++ b/configs/mono_gateway-dk.seed @@ -82,8 +82,10 @@ CONFIG_PACKAGE_adguardhome=y # Wi-Fi: u-blox JODY-W3 = NXP 88W9098 (Wi-Fi 6), PCIe, dual-MAC. Out-of-tree NXP # moal/mlan driver (kmod-nxp-mwifiex — a cfg80211 FULLMAC driver; needs the # backports-version patch carried in package/kernel/nxp-mwifiex) + its firmware pkg. -# Full wpad-openssl, NOT wpad-basic: basic hostapd can't parse VHT(ac)/HE(ax) -# config items and fails add_iface on anything above 802.11n. iw for debugging. +# wpad-openssl (full) is necessary but NOT sufficient for VHT(ac)/HE(ax): hostapd's +# 11ac/11ax code is gated on DRIVER_11AC/AX_SUPPORT, which the nxp-mwifiex kmod now +# select-s in its DEPENDS (we build no kmod-mac80211 to do it). Without both, wpad is +# HT-only (Wi-Fi 4) and add_iface fails on any vht_*/he_* item. iw for debugging. # defconfig pulls the rest (kmod-cfg80211, wifi-scripts, wireless-regdb, # hostapd-common, ucode-mod-nl80211). LuCI manages the radios natively via # mac80211.sh (no custom handler); harmless no-op on a board with no M.2 card. diff --git a/package/kernel/nxp-mwifiex/Makefile b/package/kernel/nxp-mwifiex/Makefile index 0cbb634783..5b1f1127c4 100644 --- a/package/kernel/nxp-mwifiex/Makefile +++ b/package/kernel/nxp-mwifiex/Makefile @@ -28,7 +28,12 @@ define KernelPackage/nxp-mwifiex SUBMENU:=Wireless Drivers TITLE:=NXP 88W9098 (moal/mlan) PCIe Wi-Fi driver URL:=https://github.com/nxp-imx/mwifiex - DEPENDS:=@PCI_SUPPORT +kmod-cfg80211 +nxp-wifi-firmware-9098-pcie + # +@DRIVER_11AC/AX_SUPPORT: hostapd's VHT(11ac)/HE(11ax) code is gated on these + # symbols, normally select-ed by mac80211 driver pkgs. We build no kmod-mac80211 + # (fullmac needs only cfg80211), so this driver must select them itself — else + # wpad is HT-only (Wi-Fi 4) and add_iface fails on any vht_*/he_* config item. + # (11AX also auto-selects WPA_MBO_SUPPORT, which aids band steering.) + DEPENDS:=@PCI_SUPPORT +kmod-cfg80211 +nxp-wifi-firmware-9098-pcie +@DRIVER_11AC_SUPPORT +@DRIVER_11AX_SUPPORT FILES:= \ $(PKG_BUILD_DIR)/mlan.ko \ $(PKG_BUILD_DIR)/moal.ko -- 2.47.3