QSAP: Add support to set sae_require_mfp parameter

For SAE transtion mode, set sae_require_mfp to 1 to require MFP
for all associations using SAE.

CRs-Fixed: 2390790
Change-Id: I64bd35cbb77f6c9b64970c9a9db0a1bc3aeb2314
This commit is contained in:
Hu Wang
2019-01-31 10:26:14 +08:00
parent e0c1c7780a
commit 48b8ac4b24
2 changed files with 3 additions and 0 deletions

View File

@@ -187,6 +187,7 @@ static struct Command cmd_list[eCMD_LAST] = {
{ "accept_mac_file", NULL },
{ "deny_mac_file", NULL },
{ "owe_transition_ifname", NULL },
{ "sae_require_mfp", NULL },
};
@@ -1918,6 +1919,7 @@ static esap_cmd_t qsap_get_cmd_num(s8 *cName)
for(i=0; i<eCMD_LAST; i++) {
len = strlen(cmd_list[i].name);
if(!strncmp(cmd_list[i].name, cName, len)) {
if((cName[len] == '=') || (cName[len] == '\0'))
return i;

View File

@@ -359,6 +359,7 @@ typedef enum esap_cmd {
eCMD_ACCEPT_MAC_FILE = 81,
eCMD_DENY_MAC_FILE = 82,
eCMD_OWE_TRANS_IFNAME = 83,
eCMD_SAE_REQUIRE_MPF = 84,
eCMD_LAST /** New command numbers should be added above this */
} esap_cmd_t;