mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-11-10 01:02:50 +00:00
Support NETNS
This commit is contained in:
parent
a253ec4c6c
commit
c418a9ff28
@ -10126,6 +10126,10 @@ static int rtw_cfg80211_init_wiphy(_adapter *adapter, struct wiphy *wiphy)
|
|||||||
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM);
|
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_NET_NS
|
||||||
|
wiphy->flags |= WIPHY_FLAG_NETNS_OK;
|
||||||
|
#endif // NETNS
|
||||||
|
|
||||||
#if (KERNEL_VERSION(3, 8, 0) <= LINUX_VERSION_CODE)
|
#if (KERNEL_VERSION(3, 8, 0) <= LINUX_VERSION_CODE)
|
||||||
wiphy->features |= NL80211_FEATURE_SAE;
|
wiphy->features |= NL80211_FEATURE_SAE;
|
||||||
#endif
|
#endif
|
||||||
|
@ -2159,6 +2159,10 @@ int rtw_os_ndev_register(_adapter *adapter, const char *name)
|
|||||||
|
|
||||||
_rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
_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 */
|
/* Tell the network stack we exist */
|
||||||
|
|
||||||
if (rtnl_lock_needed)
|
if (rtnl_lock_needed)
|
||||||
|
Loading…
Reference in New Issue
Block a user