瀏覽代碼

qcacmn: Assign appropriate size for hw_macid_pdev_id_map

Use appropriate size value MAX_NUM_LMAC_HW to make sure
that we have right size for hw_macid_pdev_id_map.

Change-Id: I3cbb1f83be54252c995e777392bb1c86a95239c1
Pavankumar Nandeshwar 5 年之前
父節點
當前提交
788e43bfbd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      wlan_cfg/wlan_cfg.h

+ 1 - 1
wlan_cfg/wlan_cfg.h

@@ -222,7 +222,7 @@ struct wlan_cfg_dp_soc_ctxt {
 	int int_rxdma2host_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
 	int int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
 	int hw_macid[MAX_PDEV_CNT];
-	int hw_macid_pdev_id_map[MAX_PDEV_CNT];
+	int hw_macid_pdev_id_map[MAX_NUM_LMAC_HW];
 	int base_hw_macid;
 	bool rx_hash;
 	bool tso_enabled;