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>
auth->conf_sta = conf_sta;
auth->conf_ap = conf_ap;
} else if (idx == 1) {
- auth->conf2_sta = conf_sta;
- auth->conf2_ap = conf_ap;
+ 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;
}