qsap: Allow empty wpa_passphrase

With this commit, wpa_passphrase should follow below condition:
1. empty string (len = 0)
2. string with length >= 8 && length <= 64

Change-Id: I029ac7cc2b32b564b4e3d6b747cc584ba59e5fde
This commit is contained in:
Abhishek Srivastava
2017-08-03 19:05:17 +05:30
committed by Gerrit - the friendly Code Review server
parent 8c3357cbe4
commit 80064989b2
2 changed files with 2 additions and 2 deletions

2
softap/sdk/qsap_api.c Executable file → Normal file
View File

@@ -2544,7 +2544,7 @@ static void qsap_handle_set_request(s8 *pcmd, s8 *presp, u32 *plen)
pVal = pcmd + strlen(cmd_list[cNum].name);
if( (cNum != eCMD_COMMIT) &&
(cNum != eCMD_RESET_TO_DEFAULT) &&
((*pVal != '=') || (strlen(pVal) < 2)) ) {
((*pVal != '=') || (((eCMD_PASSPHRASE != cNum)) && (strlen(pVal) < 2)))) {
*plen = qsap_scnprintf(presp, *plen, "%s", ERR_INVALID_ARG);
return;
}