sta_set_security: RSNXE_Content argument
Allow RSNXE to be overridden in Association Request and EAPOL-Key msg
2/4 frames.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
diff --git a/sta.c b/sta.c
index ff36150..3597526 100644
--- a/sta.c
+++ b/sta.c
@@ -2186,6 +2186,25 @@
wpa_command(intf, buf);
}
+ val = get_param(cmd, "RSNXE_Content");
+ if (val) {
+ const char *param;
+
+ if (strncasecmp(val, "AssocReq:", 9) == 0) {
+ val += 9;
+ param = "rsnxe_override_assoc";
+ } else if (strncasecmp(val, "EapolM2:", 8) == 0) {
+ val += 8;
+ param = "rsnxe_override_eapol";
+ } else {
+ send_resp(dut, conn, SIGMA_ERROR,
+ "errorCode,Unsupported RSNXE_Content value");
+ return STATUS_SENT_ERROR;
+ }
+ snprintf(buf, sizeof(buf), "SET %s %s", param, val);
+ wpa_command(intf, buf);
+ }
+
val = get_param(cmd, "sae_pwe");
if (val) {
if (strcasecmp(val, "h2e") == 0) {