mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-22 13:24:36 +00:00
Use for RTL8814A chip (AWWD-165)
This commit is contained in:
parent
4a9bfab398
commit
e68310ce0d
1
Makefile
1
Makefile
@ -51,6 +51,7 @@ CONFIG_REDUCE_TX_CPU_LOADING = n
|
|||||||
CONFIG_BR_EXT = y
|
CONFIG_BR_EXT = y
|
||||||
CONFIG_TDLS = n
|
CONFIG_TDLS = n
|
||||||
CONFIG_WIFI_MONITOR = y
|
CONFIG_WIFI_MONITOR = y
|
||||||
|
CONFIG_DISABLE_REGD_C = y
|
||||||
CONFIG_MCC_MODE = n
|
CONFIG_MCC_MODE = n
|
||||||
CONFIG_APPEND_VENDOR_IE_ENABLE = n
|
CONFIG_APPEND_VENDOR_IE_ENABLE = n
|
||||||
CONFIG_RTW_NAPI = y
|
CONFIG_RTW_NAPI = y
|
||||||
|
@ -539,8 +539,10 @@ s16 rtw_noise_measure_curchan(_adapter *padapter)
|
|||||||
u8 is_pause_dig = _TRUE;
|
u8 is_pause_dig = _TRUE;
|
||||||
u8 cur_chan = rtw_get_oper_ch(padapter);
|
u8 cur_chan = rtw_get_oper_ch(padapter);
|
||||||
|
|
||||||
|
#ifndef CONFIG_ALLOW_UNLINKED_NOISE_MONITOR
|
||||||
if (rtw_linked_check(padapter) == _FALSE)
|
if (rtw_linked_check(padapter) == _FALSE)
|
||||||
return noise;
|
return noise;
|
||||||
|
#endif
|
||||||
|
|
||||||
rtw_ps_deny(padapter, PS_DENY_IOCTL);
|
rtw_ps_deny(padapter, PS_DENY_IOCTL);
|
||||||
LeaveAllPowerSaveModeDirect(padapter);
|
LeaveAllPowerSaveModeDirect(padapter);
|
||||||
|
@ -263,12 +263,12 @@ s16 odm_inband_noise_monitor_ac(struct dm_struct *dm, u8 pause_dig, u8 igi,
|
|||||||
s16 rpt = 0;
|
s16 rpt = 0;
|
||||||
u8 val_u8 = 0;
|
u8 val_u8 = 0;
|
||||||
|
|
||||||
if (dm->support_ic_type & (ODM_RTL8822B | ODM_RTL8821C)) {
|
if (dm->support_ic_type & (ODM_RTL8822B | ODM_RTL8821C | ODM_RTL8814A)) {
|
||||||
rpt = phydm_idle_noise_measure_ac(dm, pause_dig, igi, max_time);
|
rpt = phydm_idle_noise_measure_ac(dm, pause_dig, igi, max_time);
|
||||||
return rpt;
|
return rpt;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(dm->support_ic_type & (ODM_RTL8812 | ODM_RTL8821 | ODM_RTL8814A)))
|
if (!(dm->support_ic_type & (ODM_RTL8812 | ODM_RTL8821)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
func_start = odm_get_current_time(dm);
|
func_start = odm_get_current_time(dm);
|
||||||
|
@ -12364,12 +12364,16 @@ static struct iw_statistics *rtw_get_wireless_stats(struct net_device *dev)
|
|||||||
int tmp_qual = 0;
|
int tmp_qual = 0;
|
||||||
int tmp_noise = 0;
|
int tmp_noise = 0;
|
||||||
|
|
||||||
|
#ifndef CONFIG_ALLOW_UNLINKED_NOISE_MONITOR
|
||||||
if (check_fwstate(&padapter->mlmepriv, _FW_LINKED) != _TRUE) {
|
if (check_fwstate(&padapter->mlmepriv, _FW_LINKED) != _TRUE) {
|
||||||
piwstats->qual.qual = 0;
|
piwstats->qual.qual = 0;
|
||||||
piwstats->qual.level = 0;
|
piwstats->qual.level = 0;
|
||||||
piwstats->qual.noise = 0;
|
piwstats->qual.noise = 0;
|
||||||
/* RTW_INFO("No link level:%d, qual:%d, noise:%d\n", tmp_level, tmp_qual, tmp_noise); */
|
/* RTW_INFO("No link level:%d, qual:%d, noise:%d\n", tmp_level, tmp_qual, tmp_noise); */
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
|
#ifdef CONFIG_SIGNAL_DISPLAY_DBM
|
||||||
tmp_level = translate_percentage_to_dbm(padapter->recvpriv.signal_strength);
|
tmp_level = translate_percentage_to_dbm(padapter->recvpriv.signal_strength);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user