qcacmn: Fix wrong sta puncture bitmap issue

When wlan_reg_extract_puncture_by_bw return fail, new_punc isn't
filled, it is not initialized too, will be random value, it will
make F/W assert if the wrong puncture passed to F/W.

To fix it, initialize local var new_punc to 0.

Change-Id: I1554e1f55a2f5b319abc94b8409a5c4aed78e223
CRs-Fixed: 3506816
此提交包含在:
Jianmin Zhu
2023-05-23 16:47:03 +08:00
提交者 Rahul Choudhary
父節點 0df4b5eaea
當前提交 487b3410f1

查看文件

@@ -414,7 +414,7 @@ QDF_STATUS wlan_cm_sta_set_chan_param(struct wlan_objmgr_vdev *vdev,
qdf_freq_t center_freq_320 = 0;
qdf_freq_t center_freq_40 = 0;
uint8_t band_mask;
uint16_t new_punc;
uint16_t new_punc = 0;
if (!vdev || !chan_param) {
mlme_err("invalid input parameters");