瀏覽代碼

qcacmn: Break from the loop when EIRP power is filled

In reg_search_afc_power_info_for_freq, break from the loop when EIRP
power is filled.

Change-Id: Id559f4a92fe7945370e6a334b4dc1e7c1d9d7adf
CRs-Fixed: 3031979
Hariharan Basuthkar 3 年之前
父節點
當前提交
9a9f5974af
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      umac/regulatory/core/src/reg_build_chan_list.c

+ 2 - 1
umac/regulatory/core/src/reg_build_chan_list.c

@@ -2698,9 +2698,10 @@ reg_search_afc_power_info_for_freq(
 				if (reg_chan_band_to_freq(pdev,
 							  subchannels[k],
 							  BIT(REG_BAND_6G)) ==
-							  freq)
+							  freq) {
 					*eirp_power = eirp_obj->eirp_power;
 					break;
+				}
 			}
 		}
 	}