|
@@ -5325,7 +5325,9 @@ void lim_calculate_tpc(struct mac_context *mac,
|
|
|
|
|
|
ch_params.ch_width = CH_WIDTH_20MHZ;
|
|
|
|
|
|
- for (i = 0; i < num_pwr_levels; i++) {
|
|
|
+ for (i = 0;
|
|
|
+ i < num_pwr_levels && (ch_params.ch_width != CH_WIDTH_INVALID);
|
|
|
+ i++) {
|
|
|
if (is_tpe_present) {
|
|
|
if (is_6ghz_freq) {
|
|
|
wlan_reg_get_client_power_for_connecting_ap(
|
|
@@ -5343,8 +5345,9 @@ void lim_calculate_tpc(struct mac_context *mac,
|
|
|
mac->pdev, oper_freq, 0, &ch_params);
|
|
|
mlme_obj->reg_tpc_obj.frequency[i] =
|
|
|
ch_params.mhz_freq_seg0;
|
|
|
- ch_params.ch_width =
|
|
|
- get_next_higher_bw[ch_params.ch_width];
|
|
|
+ if (ch_params.ch_width != CH_WIDTH_INVALID)
|
|
|
+ ch_params.ch_width =
|
|
|
+ get_next_higher_bw[ch_params.ch_width];
|
|
|
}
|
|
|
if (is_6ghz_freq) {
|
|
|
if (LIM_IS_STA_ROLE(session)) {
|