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
This commit is contained in:

gecommit door
nshrivas

bovenliggende
12d5bdc2e2
commit
b4e2c33bab
@@ -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;
|
||||
|
@@ -2790,7 +2790,7 @@ static uint32_t
|
||||
wlansap_get_safe_channel(struct sap_context *sap_ctx)
|
||||
{
|
||||
struct mac_context *mac;
|
||||
uint32_t pcl_freqs[QDF_MAX_NUM_CHAN];
|
||||
uint32_t pcl_freqs[NUM_CHANNELS];
|
||||
QDF_STATUS status;
|
||||
mac_handle_t mac_handle;
|
||||
uint32_t pcl_len = 0;
|
||||
@@ -2863,7 +2863,7 @@ wlansap_get_safe_channel_from_pcl_and_acs_range(struct sap_context *sap_ctx)
|
||||
{
|
||||
struct mac_context *mac;
|
||||
struct sir_pcl_list pcl = {0};
|
||||
uint32_t pcl_freqs[QDF_MAX_NUM_CHAN] = {0};
|
||||
uint32_t pcl_freqs[NUM_CHANNELS] = {0};
|
||||
QDF_STATUS status;
|
||||
mac_handle_t mac_handle;
|
||||
uint32_t pcl_len = 0;
|
||||
|
Verwijs in nieuw issue
Block a user