mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacld-3.0: Fix inconsistent usage of channel len in populate_oem_data_cap
qcacld-2.0 to qcacld-3.0 propagation. Fix inconsistent usage of channel length in populate_oem_data_cap. Change-Id: I33c53503279d7ebb66f348af719b68b6f90ef6c4 CRs-Fixed: 996199
This commit is contained in:
parent
62f7ca0750
commit
c4f8a93d3e
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ static struct hdd_context_s *p_hdd_ctx;
|
|||
static int populate_oem_data_cap(hdd_adapter_t *adapter,
|
||||
t_iw_oem_data_cap *data_cap)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_E_FAILURE;
|
||||
QDF_STATUS status;
|
||||
struct hdd_config *config;
|
||||
uint32_t num_chan;
|
||||
uint8_t *chan_list;
|
||||
|
|
@ -94,7 +94,7 @@ static int populate_oem_data_cap(hdd_adapter_t *adapter,
|
|||
data_cap->supported_bands = config->nBandCapability;
|
||||
|
||||
/* request for max num of channels */
|
||||
num_chan = WNI_CFG_VALID_CHANNEL_LIST_LEN;
|
||||
num_chan = OEM_CAP_MAX_NUM_CHANNELS;
|
||||
status = sme_get_cfg_valid_channels(hdd_ctx->hHal,
|
||||
&chan_list[0], &num_chan);
|
||||
if (QDF_STATUS_SUCCESS != status) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue