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
此提交包含在:
@@ -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");
|
||||
|
新增問題並參考
封鎖使用者