From 78ea9702c09b014e30ca139eac503e7a8130c59f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 1 Oct 2008 14:44:24 +0300 Subject: [PATCH] Add pcsc="" to configuration for EAP-SIM and EAP-AKA This allows real SIM/USIM cards to be used by enabling PC/SC. --- wpa_supplicant/wpa_gui-qt4/networkconfig.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp b/wpa_supplicant/wpa_gui-qt4/networkconfig.cpp index e4f10969b..813c5edf8 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(),