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:

committed by
Madan Koyyalamudi

父節點
8141e4fa79
當前提交
30ecff7940
@@ -5752,7 +5752,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;
|
||||
@@ -5783,7 +5786,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;
|
||||
|
Reference in New Issue
Block a user