Add pcsc="" to configuration for EAP-SIM and EAP-AKA
This allows real SIM/USIM cards to be used by enabling PC/SC.
This commit is contained in:
parent
85141289d5
commit
78ea9702c0
1 changed files with 7 additions and 4 deletions
|
@ -230,10 +230,13 @@ void NetworkConfig::addNetwork()
|
||||||
setNetworkParam(id, "psk",
|
setNetworkParam(id, "psk",
|
||||||
pskEdit->text().toAscii().constData(),
|
pskEdit->text().toAscii().constData(),
|
||||||
psklen != 64);
|
psklen != 64);
|
||||||
if (eapSelect->isEnabled())
|
if (eapSelect->isEnabled()) {
|
||||||
setNetworkParam(id, "eap",
|
const char *eap =
|
||||||
eapSelect->currentText().toAscii().constData(),
|
eapSelect->currentText().toAscii().constData();
|
||||||
false);
|
setNetworkParam(id, "eap", eap, false);
|
||||||
|
if (strcmp(eap, "SIM") == 0 || strcmp(eap, "AKA") == 0)
|
||||||
|
setNetworkParam(id, "pcsc", "", true);
|
||||||
|
}
|
||||||
if (identityEdit->isEnabled())
|
if (identityEdit->isEnabled())
|
||||||
setNetworkParam(id, "identity",
|
setNetworkParam(id, "identity",
|
||||||
identityEdit->text().toAscii().constData(),
|
identityEdit->text().toAscii().constData(),
|
||||||
|
|
Loading…
Reference in a new issue