sta_set_security: Add support for SAE-PK configuration

Add parsing of sae_pk argument to sta_set_security and map this to
wpa_supplicant's sae_pk configuration.

wpa_supplicant's default sae_pk configuration enables SAE-PK based
on password thus explicit handling of SAE-PK enabling is not
required.

Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
diff --git a/sta.c b/sta.c
index 84cc006..a21555f 100644
--- a/sta.c
+++ b/sta.c
@@ -2301,6 +2301,11 @@
 	if (sae_pwe >= 0 && wpa_command(ifname, buf) != 0)
 		return ERROR_SEND_STATUS;
 
+	val = get_param(cmd, "sae_pk");
+	if (val && strcmp(val, "0") == 0 &&
+	    set_network(ifname, id, "sae_pk", "2") < 0)
+		return ERROR_SEND_STATUS;
+
 	if (dut->program == PROGRAM_60GHZ && network_mode &&
 	    strcasecmp(network_mode, "PBSS") == 0 &&
 	    set_network(ifname, id, "pbss", "1") < 0)