From ebb1a3faeaff097fb147431be9eb8cd24f4b4a97 Mon Sep 17 00:00:00 2001 From: Divya R Date: Fri, 9 Jun 2023 03:46:48 +0530 Subject: [PATCH] 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 --- umac/regulatory/core/src/reg_services_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umac/regulatory/core/src/reg_services_common.c b/umac/regulatory/core/src/reg_services_common.c index 7e6dec8b7e..16d04c7a5d 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -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;