qcacmn: Fill bonded_chan_ptr correctly

Driver does not update bonded_chan_ptr correctly in
reg_get_320_bonded_chan_array api which may lead to undefined
behavior.

To address above issue, fill bonded_chan_ptr correctly.

Change-Id: I13ffe96ad855dbf97b72f32e982c73322a29626f
CRs-Fixed: 2929853
このコミットが含まれているのは:
Ashish Kumar Dhanotiya
2021-04-20 21:11:41 +05:30
committed by Madan Koyyalamudi
コミット 70c3875209

ファイルの表示

@@ -3501,7 +3501,8 @@ reg_get_320_bonded_chan_array(struct wlan_objmgr_pdev *pdev,
if (((bonded_chan_ar[i].start_freq +
bonded_chan_ar[i].end_freq) / 2) ==
band_center_320) {
bonded_chan_ptr[i] = &bonded_chan_ar[i];
bonded_chan_ptr[num_bonded_pairs] =
&bonded_chan_ar[i];
num_bonded_pairs++;
break;
}