mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Fix buffer overflow issue in cds_update_with_safe_channel_list
Fix the size of pcl_channels & pcl_weight array to be QDF_MAX_NUM_CHAN in
cds_get_nondfs_preferred_channel. Also make sure all the callers of
cds_get_channel_list uses QDF_MAX_NUM_CHAN as channel array size.
Change-Id: I256421f54180d1d8f9f6abd549d417e74d62add5
CRs-Fixed: 1082596
This commit is contained in:
parent
9d81e7d7d5
commit
0105770430
2 changed files with 3 additions and 3 deletions
|
|
@ -8353,8 +8353,8 @@ uint8_t
|
|||
cds_get_nondfs_preferred_channel(enum cds_con_mode mode,
|
||||
bool for_existing_conn)
|
||||
{
|
||||
uint8_t pcl_channels[NUM_CHANNELS];
|
||||
uint8_t pcl_weight[NUM_CHANNELS];
|
||||
uint8_t pcl_channels[QDF_MAX_NUM_CHAN];
|
||||
uint8_t pcl_weight[QDF_MAX_NUM_CHAN];
|
||||
|
||||
/*
|
||||
* in worst case if we can't find any channel at all
|
||||
|
|
|
|||
|
|
@ -485,7 +485,7 @@ struct sap_acs_cfg {
|
|||
#endif
|
||||
|
||||
uint16_t ch_width;
|
||||
uint8_t pcl_channels[NUM_CHANNELS];
|
||||
uint8_t pcl_channels[QDF_MAX_NUM_CHAN];
|
||||
uint32_t pcl_ch_count;
|
||||
/* ACS Algo Output */
|
||||
uint8_t pri_ch;
|
||||
|
|
|
|||
Loading…
Reference in a new issue