fix(cfg80211): the wiphy may be moved into another network namespace

Without WIPHY_FLAG_NETNS_OK, 'iw phy <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.
This commit is contained in:
nomdetom committed 2026-10-22 16:18:35 +01:00
1 parent 5327c777d0
commit 2e305e8b1f
1 file changed
+2 -1
+2 -1
View File
@@ -9281,7 +9281,8 @@ if((g_rwnx_plat->usbdev->chipid == PRODUCT_ID_AIC8801) ||
WIPHY_FLAG_HAS_CHANNEL_SWITCH | WIPHY_FLAG_HAS_CHANNEL_SWITCH |
#endif #endif
WIPHY_FLAG_4ADDR_STATION | 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) #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
wiphy->max_num_csa_counters = BCN_MAX_CSA_CPT; wiphy->max_num_csa_counters = BCN_MAX_CSA_CPT;