mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-25 01:21:34 +00:00
Support NETNS
This commit is contained in:
parent
2ed61f841b
commit
d05aa56463
@ -9870,6 +9870,10 @@ static void rtw_cfg80211_preinit_wiphy(_adapter *adapter, struct wiphy *wiphy)
|
||||
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 3, 0)) */
|
||||
#endif /* CONFIG_RTW_MESH */
|
||||
|
||||
#ifdef CONFIG_NET_NS
|
||||
wiphy->flags |= WIPHY_FLAG_NETNS_OK;
|
||||
#endif // NETNS
|
||||
|
||||
#if (KERNEL_VERSION(3, 8, 0) <= LINUX_VERSION_CODE)
|
||||
wiphy->features |= NL80211_FEATURE_SAE;
|
||||
#endif
|
||||
|
@ -1917,6 +1917,10 @@ int rtw_os_ndev_register(_adapter *adapter, const char *name)
|
||||
|
||||
_rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
||||
|
||||
#ifdef CONFIG_NET_NS
|
||||
dev_net_set(ndev, wiphy_net(adapter_to_wiphy(adapter)));
|
||||
#endif //CONFIG_NET_NS
|
||||
|
||||
/* Tell the network stack we exist */
|
||||
|
||||
if (rtnl_lock_needed)
|
||||
|
Loading…
Reference in New Issue
Block a user