mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-29 08:27:41 +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
@ -13572,7 +13572,7 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_WIRELESS_EXT
|
#if defined(CONFIG_WIRELESS_EXT) && !defined(CONFIG_CFG80211_WEXT)
|
||||||
struct iw_handler_def rtw_handlers_def =
|
struct iw_handler_def rtw_handlers_def =
|
||||||
{
|
{
|
||||||
.standard = rtw_handlers,
|
.standard = rtw_handlers,
|
||||||
|
@ -1015,7 +1015,7 @@ struct net_device *rtw_init_netdev(_adapter *old_padapter)
|
|||||||
//pnetdev->tx_timeout = NULL;
|
//pnetdev->tx_timeout = NULL;
|
||||||
pnetdev->watchdog_timeo = HZ*3; /* 3 second timeout */
|
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;
|
pnetdev->wireless_handlers = (struct iw_handler_def *)&rtw_handlers_def;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user