Changeset 31467bf


Ignore:
Timestamp:
03/14/14 17:40:04 (6 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.2, releng/10.0.3
Children:
73ada33
Parents:
53ff927
Message:

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

Location:
src-qt4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/libpcbsd/utils/netif.cpp

    r68ecb7a r31467bf  
    537537          //Set WEP Defaults 
    538538          int WEPIndex = 0; 
    539           bool WEPHex = true; //Use Hex WEP key 
     539          // Default to plain-text WEP keys.. 
     540          // This needs to be fixed to figure it out automatically 
     541          bool WEPHex = false; 
    540542           
    541543          streamout << " key_mgmt=NONE\n"; 
  • src-qt4/pc-netmanager/src/wificonfig/wificonfigwidgetbase.cpp

    r15783fa r31467bf  
    165165           // Check if we are using a plaintext WEP or not 
    166166           if ( WEPHex[curItem] ) 
     167             streamout << " wep_key" + tmp.setNum(WEPIndex[curItem]) + "=" + WEPKey[curItem] + "\n"; 
     168           else 
    167169             streamout << " wep_key" + tmp.setNum(WEPIndex[curItem]) + "=\"" + WEPKey[curItem] + "\"\n"; 
    168            else 
    169              streamout << " wep_key" + tmp.setNum(WEPIndex[curItem]) + "=" + WEPKey[curItem] + "\n"; 
    170170 
    171171         } else if (SSIDEncType[curItem] == WPA_ENCRYPTION ) { 
Note: See TracChangeset for help on using the changeset viewer.