qcacmn: Initialized pdev id with default value 0xFF
pdev_id is being initialized with 0. Since 0 is valid pdev_id, though pdev is not present for that id, it is being accessed. Initialized pdev_id to 0xFF by default. Added checks on API to detect valid pdev_id value corresponding to lmac_id Change-Id: I2b2a38783615494ccc08e265702815f7e562214b
Este commit está contenido en:

cometido por
nshrivas

padre
2eb8560c88
commit
9b0c1271ed
@@ -725,9 +725,9 @@ int wlan_cfg_get_target_pdev_id(struct wlan_cfg_dp_soc_ctxt *cfg,
|
||||
void wlan_cfg_set_pdev_idx(struct wlan_cfg_dp_soc_ctxt *cfg, int pdev_idx,
|
||||
int hw_macid)
|
||||
{
|
||||
qdf_assert_always(pdev_idx < MAX_PDEV_CNT);
|
||||
qdf_assert_always((pdev_idx < MAX_PDEV_CNT) ||
|
||||
(pdev_idx == INVALID_PDEV_ID));
|
||||
qdf_assert_always(hw_macid < MAX_NUM_LMAC_HW);
|
||||
|
||||
cfg->hw_macid_pdev_id_map[hw_macid] = pdev_idx;
|
||||
}
|
||||
|
||||
|
Referencia en una nueva incidencia
Block a user