qcacld-3.0: Replace QDF_MAX_NUM_CHAN/POLICY_MGR_MAX_CHANNEL_LIST with NUM_CHANNELS

Currently QDF_MAX_NUM_CHAN/POLICY_MGR_MAX_CHANNEL_LIST aren't aligned with
NUM_CHANNELS, these unalignment may cause some potential OOB access.
So replace QDF_MAX_NUM_CHAN/POLICY_MGR_MAX_CHANNEL_LIST with NUM_CHANNELS
to keep unified.

Change-Id: Ib6c81a3979f2fd29ba1ec678f018a6704b599385
CRs-Fixed: 2644066
Bu işleme şunda yer alıyor:
Qun Zhang
2020-03-20 12:05:25 +08:00
işlemeyi yapan: nshrivas
ebeveyn 12d5bdc2e2
işleme b4e2c33bab
18 değiştirilmiş dosya ile 85 ekleme ve 87 silme

Dosyayı Görüntüle

@@ -444,8 +444,8 @@ struct sap_acs_cfg {
#endif
uint16_t ch_width;
uint32_t pcl_chan_freq[QDF_MAX_NUM_CHAN];
uint8_t pcl_channels_weight_list[QDF_MAX_NUM_CHAN];
uint32_t pcl_chan_freq[NUM_CHANNELS];
uint8_t pcl_channels_weight_list[NUM_CHANNELS];
uint32_t pcl_ch_count;
uint8_t is_ht_enabled;
uint8_t is_vht_enabled;