qcacmn: Expand sub-channel array storage for 11be chipsets
The sub-channel array size was maximum of 8 sub-channels corresponding to a maximum channel width of 160MHz. But with the introduction of 11be higher channel width of 320MHz is possible. Expand the size of sub-channel array to 16 to accommodate the sub-channels of 320MHz in case of 11be chipsets. Change-Id: I7ffd1a7c0f05085edff74b92e47ab5a0dab42ef0 CRs-Fixed: 3068405
这个提交包含在:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
@@ -648,15 +649,17 @@ static void utils_dfs_get_max_sup_width(struct wlan_objmgr_pdev *pdev,
|
||||
void utils_dfs_get_chan_list(struct wlan_objmgr_pdev *pdev,
|
||||
void *clist, uint32_t *num_chan)
|
||||
{
|
||||
int i = 0, j = 0;
|
||||
uint32_t i = 0, j = 0;
|
||||
enum channel_state state;
|
||||
struct regulatory_channel *cur_chan_list;
|
||||
struct wlan_dfs *dfs;
|
||||
struct dfs_channel *chan_list = (struct dfs_channel *)clist;
|
||||
|
||||
dfs = wlan_pdev_get_dfs_obj(pdev);
|
||||
if (!dfs)
|
||||
if (!dfs) {
|
||||
*num_chan = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
cur_chan_list = qdf_mem_malloc(NUM_CHANNELS *
|
||||
sizeof(struct regulatory_channel));
|
||||
@@ -723,7 +726,7 @@ static void utils_dfs_get_channel_list(struct wlan_objmgr_pdev *pdev,
|
||||
uint8_t chan_num;
|
||||
uint16_t center_freq;
|
||||
uint16_t flagext;
|
||||
int i, j = 0;
|
||||
uint32_t i, j = 0;
|
||||
|
||||
dfs = wlan_pdev_get_dfs_obj(pdev);
|
||||
if (!dfs) {
|
||||
@@ -800,7 +803,7 @@ static void utils_dfs_get_channel_list(struct wlan_objmgr_pdev *pdev,
|
||||
uint8_t weight_list[NUM_CHANNELS] = {0};
|
||||
uint32_t len;
|
||||
uint32_t weight_len;
|
||||
int i;
|
||||
uint32_t i;
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
uint32_t conn_count = 0;
|
||||
enum policy_mgr_con_mode mode;
|
||||
|
在新工单中引用
屏蔽一个用户