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
Cette révision appartient à :
@@ -1275,7 +1275,7 @@ mlme_acs_parse_weight_list(struct wlan_objmgr_psoc *psoc,
|
||||
weight_list[index].normalize_weight =
|
||||
normalize_factor;
|
||||
} else {
|
||||
if (num_acs_weight == QDF_MAX_NUM_CHAN)
|
||||
if (num_acs_weight == NUM_CHANNELS)
|
||||
continue;
|
||||
|
||||
weight_list[num_acs_weight].chan_freq = freq1;
|
||||
|
@@ -1230,7 +1230,7 @@ struct wlan_mlme_acs {
|
||||
bool is_vendor_acs_support;
|
||||
bool is_acs_support_for_dfs_ltecoex;
|
||||
bool is_external_acs_policy;
|
||||
struct acs_weight normalize_weight_chan[QDF_MAX_NUM_CHAN];
|
||||
struct acs_weight normalize_weight_chan[NUM_CHANNELS];
|
||||
uint16_t normalize_weight_num_chan;
|
||||
struct acs_weight_range normalize_weight_range[MAX_ACS_WEIGHT_RANGE];
|
||||
uint16_t num_weight_range;
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur