[WCNCR00144638] regd: add ht40_mcs32 tx power element
[Description]
Fix mssing of ht40_mcs32 tx power element in CMD_CHANNEL_POWER_LIMIT_V2
Change-Id: I61cf96d1918a7cd2625aa0699d86ff9f77b49a93
Feature: regd
Signed-off-by: Chiahsuan Chuang <chiahsuan.chuang@mediatek.com>
CR-Id: WCNCR00144638
diff --git a/include/nic_cmd_event.h b/include/nic_cmd_event.h
index 077c143..5584910 100644
--- a/include/nic_cmd_event.h
+++ b/include/nic_cmd_event.h
@@ -1674,6 +1674,7 @@
UINT_8 tx_pwr_ht40_mcs5; /* MCS5*/
UINT_8 tx_pwr_ht40_mcs6; /* MCS6*/
UINT_8 tx_pwr_ht40_mcs7; /* MCS7*/
+ UINT_8 tx_pwr_ht40_mcs32; /* MCS32*/
UINT_8 tx_pwr_vht20_bpsk; /* MCS0*/
UINT_8 tx_pwr_vht20_qpsk; /* MCS1, MCS2*/
diff --git a/mgmt/rlm_domain.c b/mgmt/rlm_domain.c
index 5f917af..aa4003b 100644
--- a/mgmt/rlm_domain.c
+++ b/mgmt/rlm_domain.c
@@ -1448,9 +1448,9 @@
ret = REQUEST_FIRMWARE(&file, TX_PWR_LIMIT_FILE, prGlueInfo->prDev);
if (ret) {
- DBGLOG(RLM, ERROR, "\nERROR + ERROR + ERROR\n%s(); ERROR. Open file [%s] failed.\n",
+ DBGLOG(RLM, WARN, "\n===WARNING===\n%s(); Open file [%s] failed.\n",
__func__, TX_PWR_LIMIT_FILE);
- DBGLOG(RLM, ERROR, "MaxTxPowerLimit is disable.\nERROR + ERROR + ERROR\n");
+ DBGLOG(RLM, WARN, "MaxTxPowerLimit is disable.\n===WARNING===\n");
/*error*/
return TRUE;
@@ -1462,8 +1462,9 @@
/*search country code*/
start_offset = rlmDomainSearchCountrySection(country_code, file);
if (!start_offset) {
- DBGLOG(RLM, ERROR, "%s(); Cannot find match country code: %s\n",
+ DBGLOG(RLM, WARN, "\n===WARNING===\n%s(): Cannot find match country code: %s\n",
__func__, country_code);
+ DBGLOG(RLM, WARN, "MaxTxPowerLimit is disable.\n===WARNING===\n");
error = TRUE;
goto END;