qcacld-3.0: Fix static code analysis warning

Initialize chan_id with 0 in struct wifi_pos_ch_info since it
is obsoleted by channel frequency.

Change-Id: I8228ffc0cce33dcaaa73c29cca5760ff2dbfd8fd
CRs-Fixed: 2749395
This commit is contained in:
Min Liu 2020-08-06 11:14:42 +08:00 • committed by snandini
commit 7fa0f52e75

View file

@ -3716,6 +3716,8 @@ static inline void hdd_send_peer_status_ind_to_app(
return;
}
/* chan_id is obsoleted by mhz */
ch_info.chan_id = 0;
ch_info.mhz = chan_info->mhz;
ch_info.band_center_freq1 = chan_info->band_center_freq1;
ch_info.band_center_freq2 = chan_info->band_center_freq2;