aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-10-01 11:44:24 (GMT)
committerJouni Malinen <j@w1.fi>2008-10-01 11:44:24 (GMT)
commit78ea9702c09b014e30ca139eac503e7a8130c59f (patch)
treeef3023e9457cbcd6c56bca20cc75ce74644b5d02
parent85141289d50d26db7c01e70bd31352869e604e6b (diff)
downloadhostap-78ea9702c09b014e30ca139eac503e7a8130c59f.zip
hostap-78ea9702c09b014e30ca139eac503e7a8130c59f.tar.gz
hostap-78ea9702c09b014e30ca139eac503e7a8130c59f.tar.bz2
Add pcsc="" to configuration for EAP-SIM and EAP-AKA
This allows real SIM/USIM cards to be used by enabling PC/SC.
-rw-r--r--wpa_supplicant/wpa_gui-qt4/networkconfig.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp b/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp
index e4f1096..813c5ed 100644
--- a/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp
@@ -230,10 +230,13 @@ void NetworkConfig::addNetwork()
setNetworkParam(id, "psk",
pskEdit->text().toAscii().constData(),
psklen != 64);
- if (eapSelect->isEnabled())
- setNetworkParam(id, "eap",
- eapSelect->currentText().toAscii().constData(),
- false);
+ if (eapSelect->isEnabled()) {
+ const char *eap =
+ eapSelect->currentText().toAscii().constData();
+ setNetworkParam(id, "eap", eap, false);
+ if (strcmp(eap, "SIM") == 0 || strcmp(eap, "AKA") == 0)
+ setNetworkParam(id, "pcsc", "", true);
+ }
if (identityEdit->isEnabled())
setNetworkParam(id, "identity",
identityEdit->text().toAscii().constData(),