DPP: Allow both STA and AP configObject to be set
Extend @CONF-OBJ-SEP@ behavior to allow the second entry to be used for different netRole. In other words, allow both the AP and STA netRole (though, only a single one per netRole) configuration to be set. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
7292e30b7f
commit
6f63aca7b1
1 changed files with 8 additions and 2 deletions
|
@ -1310,7 +1310,13 @@ static int dpp_configuration_parse_helper(struct dpp_authentication *auth,
|
|||
auth->conf_sta = conf_sta;
|
||||
auth->conf_ap = conf_ap;
|
||||
} else if (idx == 1) {
|
||||
if (!auth->conf_sta)
|
||||
auth->conf_sta = conf_sta;
|
||||
else
|
||||
auth->conf2_sta = conf_sta;
|
||||
if (!auth->conf_ap)
|
||||
auth->conf_ap = conf_ap;
|
||||
else
|
||||
auth->conf2_ap = conf_ap;
|
||||
} else {
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in a new issue