PDA

View Full Version : Basic WPA implementation idea...


Stealth
August 1st, 2005, 11:27 AM
Just wanted to give some help on this, don't know if anyone's tried it before:

Ok, I have very basic knowledge of programming, learning Python as a matter a fact, but don't know how to go about implementing this myself. Looking at some stuff (http://ubuntuforums.org/showthread.php?t=26623&) it looks like GTK Wifi doesn't completely need to mess with WPAsupplicant to get it working. What I'm thinking is that the main file for wpasup is that .conf file right? Ok, inside it we have:
ctrl_interface=/var/run/wpa_supplicant

network={
ssid="your_network_name"
proto=WPA
scan_ssid=1
key_mgmt=WPA-PSK
psk="your_secret_key"
}

Ok, there's also some little feature that changes the scanning mode from wpasup to the actual drivers (or sumthin of that sort) so it looks like:
ctrl_interface=/var/run/wpa_supplicant
ap_scan=2

network={
ssid="your_network_name"
proto=WPA
scan_ssid=1
key_mgmt=WPA-PSK
psk="your_secret_key"
}

Now, I'm pretty sure its possible to have GTK Wifi have a little check box to enable this option. It should default to having it off, as to not mess with anything. So I'm sure there's a way to edit the text file to comment out that line. Then the other 2 options (and this is why its basic, I'm talking about just editting for WPA-PSK type networks, the fancy stuff can come later ;)) would be to edit the ssid and psk lines to insert the name or password. So in GTK Wifi, let's say there's a little section in the menu to enable *WPA Support*. Then you get a little dialog to enable the scan option, and 2 places to type the ssid and password, and have GTK wifi edit the conf file, apply it by running sudo wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w -dd and it should work right? I don't know seeing as how this could be only for the ipw2200 drivers, I don't know if GTK Wifi can even detect WPA networks but I'm assuming it can seeing as how KWifi will, even though it doesnt really support connecting into one, but after doing that HowTo it says I'm connected to my WPA network so...I'm just throwing out the idea :)

nlogax
March 7th, 2007, 02:35 AM
From scanning this forum I'm unable to ascertain if GTKwifi supports WPA yet, but I'm assuming not.

Re your suggestion, I understand that the file /etc/wpa_supplicant.conf (or is the Ubuntu standard /etc/default/wpa_supplicant ), can contain multiple definitions, so we would be able to leave each network defined in there and just switch the SSID when the user selects a different network.