Add NDC support for "set Tx Power" command

Added support to change wlan softap Tx power using ndc command.
It will write tx power cap to ini file.

Change-Id: I5c9031ab35d67f4531e6f440b359d51c09a321d3
CRs-fixed: 329941
This commit is contained in:
Deepthi Gowri
2012-01-31 19:39:06 +05:30
parent 6344a80689
commit ae5a4f7fc4
3 changed files with 18 additions and 4 deletions

View File

@@ -173,7 +173,7 @@ char *hw_mode[HW_MODE_UNKNOWN] = {
/** configuration file path */
char *pconffile = CONFIG_FILE;
char *fIni = INI_FILE;
char *fIni = WIFI_DRIVER_CONF_FILE;
s8 ini_file[64] = {0};
/**
@@ -2673,6 +2673,7 @@ static void qsap_handle_set_request(s8 *pcmd, s8 *presp, u32 *plen)
value = atoi(pVal);
if(TRUE != IS_VALID_TX_POWER(value))
goto error;
qsap_set_ini_filename();
snprintf(pVal, sizeof(u32), "%ld", value);
cNum = STR_TX_POWER_IN_INI;
ini = INI_CONF_FILE;