From 2e305e8b1f4e66a5b85a31827cc92e5d2e5cf291 Mon Sep 17 00:00:00 2001 From: nomdetom Date: Wed, 21 Oct 2026 20:16:51 +0100 Subject: [PATCH] fix(cfg80211): the wiphy may be moved into another network namespace Without WIPHY_FLAG_NETNS_OK, 'iw phy set netns' is refused, so the interface can't be used from a namespace (as test rigs do to pair two radios in one box). The driver keeps nothing per namespace: its only uses of init_net are its own netlink control socket and an optional bridge lookup. --- drivers/aic8800/aic8800_fdrv/rwnx_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/aic8800/aic8800_fdrv/rwnx_main.c b/drivers/aic8800/aic8800_fdrv/rwnx_main.c index fca3237..4812550 100644 --- a/drivers/aic8800/aic8800_fdrv/rwnx_main.c +++ b/drivers/aic8800/aic8800_fdrv/rwnx_main.c @@ -9281,7 +9281,8 @@ if((g_rwnx_plat->usbdev->chipid == PRODUCT_ID_AIC8801) || WIPHY_FLAG_HAS_CHANNEL_SWITCH | #endif WIPHY_FLAG_4ADDR_STATION | - WIPHY_FLAG_4ADDR_AP; + WIPHY_FLAG_4ADDR_AP | + WIPHY_FLAG_NETNS_OK; #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) wiphy->max_num_csa_counters = BCN_MAX_CSA_CPT;