diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index d774b04d9df9..c1c6b7498cd6 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -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;