mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-25 14:44:09 +00:00
Fix channel switch in the monitor mode if both CONFIG_WIRELESS_EXT and CONFIG_CFG80211_WEXT are enabled
This commit is contained in:
parent
bfa0370b3a
commit
042007b4c4
@ -1993,7 +1993,7 @@ static int rtw_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
|
||||
int ret = 0;
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
||||
if(_FAIL == rtw_pwr_wakeup(padapter)) {
|
||||
ret= -EPERM;
|
||||
goto exit;
|
||||
@ -13572,7 +13572,7 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_WIRELESS_EXT
|
||||
#if defined(CONFIG_WIRELESS_EXT) && !defined(CONFIG_CFG80211_WEXT)
|
||||
struct iw_handler_def rtw_handlers_def =
|
||||
{
|
||||
.standard = rtw_handlers,
|
||||
|
@ -1015,7 +1015,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
||||
//pnetdev->tx_timeout = NULL;
|
||||
pnetdev->watchdog_timeo = HZ*3; /* 3 second timeout */
|
||||
|
||||
#ifdef CONFIG_WIRELESS_EXT
|
||||
#if defined(CONFIG_WIRELESS_EXT) && !defined(CONFIG_CFG80211_WEXT)
|
||||
pnetdev->wireless_handlers = (struct iw_handler_def *)&rtw_handlers_def;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user