Merge pull request #114 from NomDeTom/irate/netns

Enable network namespace migration for the default build. Keep it disabled when bridge support or band steering is enabled because those paths still use init_net.

Validation: all three modules built against Linux 6.17 headers; the preprocessed capability assignment was checked for all four bridge/steering configuration combinations.
This commit is contained in:
MinQ authored and GitHub committed 2026-10-23 17:09:52 +08:00
commit 4278638164
1 file changed
+5
+5
View File
@@ -9285,6 +9285,11 @@ if((g_rwnx_plat->usbdev->chipid == PRODUCT_ID_AIC8801) ||
WIPHY_FLAG_4ADDR_STATION | WIPHY_FLAG_4ADDR_STATION |
WIPHY_FLAG_4ADDR_AP; WIPHY_FLAG_4ADDR_AP;
#if !defined(CONFIG_BR_SUPPORT) && !defined(CONFIG_BAND_STEERING)
/* The optional bridge and steering paths still use init_net. */
wiphy->flags |= WIPHY_FLAG_NETNS_OK;
#endif
#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;
#endif #endif