Permalink
Browse files

Fixed reversed WEP keys hexmode

We need to fix wifiQuickConnect!! Can't assume it is plaintext or hex,
need to determine it automatically, or ask the user
  • Loading branch information...
kmoore134 committed Mar 15, 2014
1 parent 53ff927 commit 31467bfe7ee26ec0cd199c552f4538faf8447f0b
@@ -536,7 +536,9 @@ void NetworkInterface::wifiQuickConnect(QString SSID, QString netKey, QString De
} else if ( SecType.contains("WEP") ) {
//Set WEP Defaults
int WEPIndex = 0;
- bool WEPHex = true; //Use Hex WEP key
+ // Default to plain-text WEP keys..
+ // This needs to be fixed to figure it out automatically
+ bool WEPHex = false;
streamout << " key_mgmt=NONE\n";
streamout << " wep_tx_keyidx=" + tmp.setNum(WEPIndex) + "\n";
@@ -164,9 +164,9 @@ void wificonfigwidgetbase::updateWPASupp()
streamout << " wep_tx_keyidx=" + tmp.setNum(WEPIndex[curItem]) + "\n";
// Check if we are using a plaintext WEP or not
if ( WEPHex[curItem] )
- streamout << " wep_key" + tmp.setNum(WEPIndex[curItem]) + "=\"" + WEPKey[curItem] + "\"\n";
- else
streamout << " wep_key" + tmp.setNum(WEPIndex[curItem]) + "=" + WEPKey[curItem] + "\n";
+ else
+ streamout << " wep_key" + tmp.setNum(WEPIndex[curItem]) + "=\"" + WEPKey[curItem] + "\"\n";
} else if (SSIDEncType[curItem] == WPA_ENCRYPTION ) {

0 comments on commit 31467bf

Please sign in to comment.