Fixed PSK editing in wpa_gui (copy-paste bug in field names)

This commit is contained in:
Jouni Malinen 2008-12-18 20:03:24 +02:00
parent bae61562a4
commit c3ece50446
3 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,7 @@ ChangeLog for wpa_supplicant
* added support for using driver_test over UDP socket
* fixed PEAPv0 Cryptobinding interoperability issue with Windows Server
2008 NPS; optional cryptobinding is now enabled (again) by default
* fixed PSK editing in wpa_gui
2008-11-23 - v0.6.6
* added Milenage SIM/USIM emulator for EAP-SIM/EAP-AKA

View File

@ -278,7 +278,7 @@ void NetworkConfig::addNetwork()
setNetworkParam(id, "group", "TKIP CCMP WEP104 WEP40", false);
}
if (pskEdit->isEnabled() &&
strcmp(passwordEdit->text().toAscii().constData(),
strcmp(pskEdit->text().toAscii().constData(),
WPA_GUI_KEY_DATA) != 0)
setNetworkParam(id, "psk",
pskEdit->text().toAscii().constData(),

View File

@ -179,7 +179,7 @@ void NetworkConfig::addNetwork()
setNetworkParam(id, "group", "TKIP CCMP WEP104 WEP40", false);
}
if (pskEdit->isEnabled() &&
strcmp(passwordEdit->text().ascii(), WPA_GUI_KEY_DATA) != 0)
strcmp(pskEdit->text().ascii(), WPA_GUI_KEY_DATA) != 0)
setNetworkParam(id, "psk", pskEdit->text().ascii(), psklen != 64);
if (eapSelect->isEnabled())
setNetworkParam(id, "eap", eapSelect->currentText().ascii(), false);