qcacmn: change eirp datatype from uint8_t to int8_t

This change is to update eirp datatype from uint8_t to int8_t
to handle negative values of eirp.

Change-Id: I840d7911d0ac85181a09ea98658a661644f43b9c
CRs-Fixed: 3521850
这个提交包含在:
Divya R
2023-06-09 03:46:48 +05:30
提交者 Rahul Choudhary
父节点 b22f325247
当前提交 ebb1a3faea

查看文件

@@ -9855,9 +9855,9 @@ static uint8_t reg_get_sp_eirp(struct wlan_objmgr_pdev *pdev,
* Return: Best power mode
*/
static enum reg_6g_ap_type
reg_get_best_pwr_mode_from_eirp_list(uint8_t *eirp_list, uint8_t size)
reg_get_best_pwr_mode_from_eirp_list(int8_t *eirp_list, uint8_t size)
{
uint8_t max = 0, i;
int8_t max = 0, i;
enum reg_6g_ap_type best_pwr_mode = REG_CURRENT_MAX_AP_TYPE;
for (i = 0; i < size; i++) {
@@ -9901,7 +9901,7 @@ enum reg_6g_ap_type reg_get_best_pwr_mode(struct wlan_objmgr_pdev *pdev,
uint16_t bw,
uint16_t in_punc_pattern)
{
uint8_t eirp_list[REG_MAX_SUPP_AP_TYPE + 1];
int8_t eirp_list[REG_MAX_SUPP_AP_TYPE + 1];
enum reg_6g_ap_type ap_pwr_type;
for (ap_pwr_type = REG_INDOOR_AP; ap_pwr_type <= REG_VERY_LOW_POWER_AP;