Compare commits

..

No commits in common. "f3df449fbfb5d41974fcb192c9eaf9fa43ffb1b0" and "358f13d1749cac4b314c8fa4187f65dfa7ef1813" have entirely different histories.

2 changed files with 0 additions and 16 deletions

View File

@ -5060,11 +5060,7 @@ static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, struct ne
mon_wdev->iftype = NL80211_IFTYPE_MONITOR;
mon_ndev->ieee80211_ptr = mon_wdev;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
ret = cfg80211_register_netdevice(mon_ndev);
#else
ret = register_netdevice(mon_ndev);
#endif
if (ret)
goto out;
@ -6766,11 +6762,7 @@ static int cfg80211_rtw_del_virtual_intf(struct wiphy *wiphy,
pwdev_priv = adapter_wdev_data(adapter);
if (ndev == pwdev_priv->pmon_ndev) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
cfg80211_unregister_netdevice(ndev);
#else
unregister_netdevice(ndev);
#endif
pwdev_priv->pmon_ndev = NULL;
pwdev_priv->ifname_mon[0] = '\0';
RTW_INFO(FUNC_NDEV_FMT" remove monitor ndev\n", FUNC_NDEV_ARG(ndev));

View File

@ -2192,11 +2192,7 @@ int rtw_os_ndev_register(_adapter *adapter, const char *name)
if (rtnl_lock_needed)
ret = (register_netdev(ndev) == 0) ? _SUCCESS : _FAIL;
else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
ret = (cfg80211_register_netdevice(ndev) == 0) ? _SUCCESS : _FAIL;
#else
ret = (register_netdevice(ndev) == 0) ? _SUCCESS : _FAIL;
#endif
if (ret == _SUCCESS)
adapter->registered = 1;
@ -2245,11 +2241,7 @@ void rtw_os_ndev_unregister(_adapter *adapter)
if (rtnl_lock_needed)
unregister_netdev(netdev);
else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
cfg80211_unregister_netdevice(netdev);
#else
unregister_netdevice(netdev);
#endif
}
#if defined(CONFIG_IOCTL_CFG80211) && !defined(RTW_SINGLE_WIPHY)