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
Dieser Commit ist enthalten in:
Hariharan Basuthkar
2021-09-08 11:15:22 +05:30
committet von Madan Koyyalamudi
Ursprung 800b5ae375
Commit 9a9f5974af

Datei anzeigen

@@ -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;
}
}
}
}