mirror of
https://github.com/chinawrj/rtl8812au
synced 2025-01-09 10:01:37 +00:00
Add support for network namespaces
This commit is contained in:
parent
8c1b6f68f0
commit
a5043d715b
1
Makefile
1
Makefile
@ -56,6 +56,7 @@ CONFIG_BR_EXT = y
|
|||||||
CONFIG_TDLS = n
|
CONFIG_TDLS = n
|
||||||
CONFIG_AP_MODE = n
|
CONFIG_AP_MODE = n
|
||||||
CONFIG_WIFI_MONITOR = y
|
CONFIG_WIFI_MONITOR = y
|
||||||
|
CONFIG_NET_NS = y
|
||||||
# If you are setting up AP (e.g. by hostapd) in 802.11ac mode, you may have to choose 'y' below.
|
# If you are setting up AP (e.g. by hostapd) in 802.11ac mode, you may have to choose 'y' below.
|
||||||
# Otherwise some channels may be flagged 'NO-IR' (i.e. Passive scanning) by the driver.
|
# Otherwise some channels may be flagged 'NO-IR' (i.e. Passive scanning) by the driver.
|
||||||
CONFIG_DISABLE_REGD_C=y
|
CONFIG_DISABLE_REGD_C=y
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
PACKAGE_NAME="realtek-rtl88xxau"
|
PACKAGE_NAME="realtek-rtl88xxau"
|
||||||
PACKAGE_VERSION="5.6.4.1~20190908"
|
PACKAGE_VERSION="5.6.4.1~20190919"
|
||||||
CLEAN="'make' clean"
|
CLEAN="'make' clean"
|
||||||
BUILT_MODULE_NAME[0]=88XXau
|
BUILT_MODULE_NAME[0]=88XXau
|
||||||
PROCS_NUM=`nproc`
|
PROCS_NUM=`nproc`
|
||||||
|
@ -9759,6 +9759,9 @@ struct ieee80211_supported_band *band;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) && LINUX_VERSION_CODE < KERNEL_VERSION(3, 0, 0))
|
||||||
|
#if defined(CONFIG_NET_NS)
|
||||||
|
wiphy->flags |= WIPHY_FLAG_NETNS_OK;
|
||||||
|
#endif //CONFIG_NET_NS
|
||||||
wiphy->flags |= WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS;
|
wiphy->flags |= WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1708,6 +1708,9 @@ int rtw_os_ndev_register(_adapter *adapter, const char *name)
|
|||||||
rtw_init_netdev_name(ndev, name);
|
rtw_init_netdev_name(ndev, name);
|
||||||
|
|
||||||
_rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
_rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
||||||
|
#if defined(CONFIG_NET_NS)
|
||||||
|
dev_net_set(ndev, wiphy_net(adapter_to_wiphy(adapter)));
|
||||||
|
#endif //defined(CONFIG_NET_NS)
|
||||||
|
|
||||||
/* Tell the network stack we exist */
|
/* Tell the network stack we exist */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user