From 44856e2b91e157343ae6c723dc66e3ff954138bc Mon Sep 17 00:00:00 2001 From: morrownr Date: Mon, 28 Nov 2022 14:28:59 -0600 Subject: [PATCH] turn monitor mode XMIT on --- include/drv_conf.h | 2 +- os_dep/linux/os_intfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/drv_conf.h b/include/drv_conf.h index eb14e82..90ec2dc 100644 --- a/include/drv_conf.h +++ b/include/drv_conf.h @@ -211,7 +211,7 @@ #endif #ifdef CONFIG_WIFI_MONITOR - /* #define CONFIG_MONITOR_MODE_XMIT */ + #define CONFIG_MONITOR_MODE_XMIT #endif #ifdef CONFIG_CUSTOMER_ALIBABA_GENERAL diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 8c5d72f..a3d50fc 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -3915,7 +3915,7 @@ int _netdev_open(struct net_device *pnetdev) #ifdef CONFIG_IOCTL_CFG80211 rtw_cfg80211_init_wdev_data(padapter); #endif - /* rtw_netif_carrier_on(pnetdev); */ /* call this func when rtw_joinbss_event_callback return success */ + rtw_netif_carrier_on(pnetdev); /* call this func when rtw_joinbss_event_callback return success */ rtw_netif_wake_queue(pnetdev); #ifdef CONFIG_BR_EXT @@ -4036,7 +4036,7 @@ int _netdev_open(struct net_device *pnetdev) rtw_set_pwr_state_check_timer(pwrctrlpriv); #endif - /* rtw_netif_carrier_on(pnetdev); */ /* call this func when rtw_joinbss_event_callback return success */ + rtw_netif_carrier_on(pnetdev); /* call this func when rtw_joinbss_event_callback return success */ rtw_netif_wake_queue(pnetdev); #ifdef CONFIG_BR_EXT