softap: support for starting/stopping Wigig soft AP
Support new command: eCMD_ENABLE_WIGIG_SOFTAP. Change-Id: Idf747b74191de4904ca939601a263b9fb8f9e971 CRs-Fixed: 1016741
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
4d6c04aa73
commit
350c353182
@@ -159,6 +159,8 @@ static struct Command cmd_list[eCMD_LAST] = {
|
||||
{ "chanlist", NULL },
|
||||
{ "ht_capab", NULL },
|
||||
{ "ieee80211h", NULL },
|
||||
|
||||
{ "enable_wigig_softap", NULL },
|
||||
};
|
||||
|
||||
struct Command qsap_str[eSTR_LAST] = {
|
||||
@@ -2633,6 +2635,21 @@ static void qsap_handle_set_request(s8 *pcmd, s8 *presp, u32 *plen)
|
||||
}
|
||||
*plen = qsap_scnprintf(presp, *plen, "%s", (status==eSUCCESS) ? SUCCESS : "failure Could not enable softap");
|
||||
return;
|
||||
|
||||
case eCMD_ENABLE_WIGIG_SOFTAP:
|
||||
value = atoi(pVal);
|
||||
|
||||
if (TRUE != IS_VALID_SOFTAP_ENABLE(value))
|
||||
goto error;
|
||||
|
||||
if ( *pVal == '0' ) {
|
||||
status = wifi_qsap_stop_wigig_softap();
|
||||
}
|
||||
else {
|
||||
status = wifi_qsap_start_wigig_softap();
|
||||
}
|
||||
*plen = qsap_scnprintf(presp, *plen, "%s", (status==eSUCCESS) ? SUCCESS : "failure Could not enable Wigig softap");
|
||||
return;
|
||||
case eCMD_SSID:
|
||||
value = strlen(pVal);
|
||||
if(SSD_MAX_LEN < value)
|
||||
|
||||
Reference in New Issue
Block a user