mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Don't set SURVEY_INFO_NOISE_DBM when noise floor is zero
Currently host is sending noise floor as 0, even if channel info event is not received from FW. This is stopping user space derive noise floor information from other parameters like bandwidth. To address this, do not set SURVEY_INFO_NOISE_DBM flag if the noise floor is 0. Change-Id: Icffdde6bce762c750200b4f1eefd17818780150e CRs-Fixed: 2949905
This commit is contained in:
parent
d6ba775313
commit
d0922e4b67
1 changed files with 8 additions and 2 deletions
|
|
@ -5739,7 +5739,10 @@ static bool wlan_fill_survey_result(struct survey_info *survey, int opfreq,
|
|||
|
||||
survey->channel = channels;
|
||||
survey->noise = chan_info->noise_floor;
|
||||
survey->filled = SURVEY_INFO_NOISE_DBM;
|
||||
survey->filled = 0;
|
||||
|
||||
if (chan_info->noise_floor)
|
||||
survey->filled |= SURVEY_INFO_NOISE_DBM;
|
||||
|
||||
if (opfreq == chan_info->freq)
|
||||
survey->filled |= SURVEY_INFO_IN_USE;
|
||||
|
|
@ -5770,7 +5773,10 @@ static bool wlan_fill_survey_result(struct survey_info *survey, int opfreq,
|
|||
|
||||
survey->channel = channels;
|
||||
survey->noise = chan_info->noise_floor;
|
||||
survey->filled = SURVEY_INFO_NOISE_DBM;
|
||||
survey->filled = 0;
|
||||
|
||||
if (chan_info->noise_floor)
|
||||
survey->filled |= SURVEY_INFO_NOISE_DBM;
|
||||
|
||||
if (opfreq == chan_info->freq)
|
||||
survey->filled |= SURVEY_INFO_IN_USE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue