mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-11-10 16:49:17 +00:00
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:
1 parent
5327c777d0
commit
2e305e8b1f
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user