maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   wpa_supplicant for OS2008 (https://talk.maemo.org/showthread.php?t=12738)

danguy 2007-12-04 22:13

wpa_supplicant for OS2008
 
My university uses 802.1X /w WEP and hidden SSIDs. Last night I finally got around to (read: procrastinated while supposedly studying for exams) and compiled wpa_supplicant for OS2008. (wireless-tools also)

Binaries are at http://ified.ca/downloads/maemo/. They were compiled with all options enabled using the WEXT driver. I stuck them in /usr/local/bin and added that to the PATH.

I connected successfully with the following steps:
  1. Connect using the GUI to a random AP (otherwise apps think you are offline)
  2. Fiddle with iwconfig until iwlist shows the AP
  3. wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0 -d
  4. udhcp -i wlan0

With this /etc/wpa_supplicant.conf:
Code:

ap_scan=1

network={
    ssid="the_ssid"
    key_mgmt=IEEE8021X
    identity="my_username"
    password="my_password"
}

This survived being locked and left for half an hour, but did not roam. Walking across campus caused the association to fail, then ICd (or whatever) shut of the WiFi.

My next goal is to integrate this with wlancond, probably by using a magic WEP key that will tell it to launch wpa_supplicant. My knowledge of wpa_supplicant is minimal, but I believe that this will allow the use of "ap_scan=0" in the config, letting us bypass all the issues with hidden SSIDs.

aleksandyr 2007-12-05 22:39

Re: wpa_supplicant for OS2008
 
This is great news for OS2008: previously, we didn't have support in the (closed) wireless kernel module for WEXT and wpa_supplicant.

Time to sort out dummy APs again...

sevo 2007-12-06 00:28

Re: wpa_supplicant for OS2008
 
I never found a way on my laptop to roam within a hidden SSID net - short of attaching to a new AP as the old gets completely inaccessible. It does not seem to be possible while maintaining a connection, as nothing short of promiscuous sniffing or a connection attempt (which both severe the existing connection) would tell you the SSID of a hidden AP. If any, you'd have to assume being entirely within range of your hidden network, and hop channels blindly - but that will cause a lost connection whenever you hit upon a foreign hidden net.

TA-t3 2007-12-06 12:47

Re: wpa_supplicant for OS2008
 
FWIW, I didn't have any trouble roaming with my old T3 w/wi-fi card back when we used hidden SSID at work. Now it's not hidden anymore so I can't test this particular case with my N800.

rik 2007-12-06 13:35

Re: wpa_supplicant for OS2008
 
Ill try it on our university network (eduroam) with PEAP-MSCHAPv2, i had no luck with connecting to that net :/

rik 2007-12-11 22:38

Re: wpa_supplicant for OS2008
 
Thanks a lot danguy, i can finally connect to our university network.

i have to do:
- connect to the DUMMY AP
- ifconfig wlan0 down
- ifconfig wlan0 up
- start wpa_supplicant
- start udhcpd

and hurray, iam online :]

Quote:

Originally Posted by danguy (Post 104457)
My next goal is to integrate this with wlancond, probably by using a magic WEP key that will tell it to launch wpa_supplicant. My knowledge of wpa_supplicant is minimal, but I believe that this will allow the use of "ap_scan=0" in the config, letting us bypass all the issues with hidden SSIDs.

I wish you luck with your next goal, that would be perfect if you manage to get it working like you said .)

spokewrench 2008-01-29 19:35

Re: wpa_supplicant for OS2008
 
This is amazing! Thank you so much for uploading those binaries! I can check my mail at school now.
some noob questions:
I'm a bit confused about the whole "dummy ap" thing. can you explain it further?
right now i'm connecting to an imaginary ad-hoc network, but i lose my connection to it after 20-30 seconds. is this a problem with the ap or with something else?
also, do you know if there is any difference between your wirelesstools and the one in the mulliner.org repo?

--edit:
i just realized you need to do this for the dummy iap to work

absolutgaloot 2008-01-29 20:29

Re: wpa_supplicant for OS2008
 
Danguy,

I downloaded the binaries and put them in /usr/local/bin and tried to run wpa_supplicant.

I get the following errors:
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported

it continues with similar errors with different param values (0-9) until I quit using ctrl-c

it appears to be a driver issue, do I need to download a different driver?

I'm on an n800 with the new os2008 release.

eber42 2008-01-30 06:22

Re: wpa_supplicant for OS2008
 
Quote:

Originally Posted by absolutgaloot (Post 135364)
I get the following errors:
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported

Same thing here on a N810.
I tried it with a basic WPA setup (PSK, no EAP thingy).

Eric

danguy 2008-01-31 05:23

Re: wpa_supplicant for OS2008
 
Quote:

Originally Posted by spokewrench (Post 135340)
I'm a bit confused about the whole "dummy ap" thing. can you explain it further?
right now i'm connecting to an imaginary ad-hoc network, but i lose my connection to it after 20-30 seconds. is this a problem with the ap or with something else?
also, do you know if there is any difference between your wirelesstools and the one in the mulliner.org repo?

The dummy AP is just so that applications think you are online and don't tell ICd to connect. I am not sure what would cause it to disconnect, but the best solution seems is to completely replace ICd. It turns out that I currently do not have time for that project.

I just compiled wireless-tools because at the time, they were not available. I would recommend the mulliner.org package for the sole reason that it is a package.

Quote:

Originally Posted by absolutgaloot (Post 135364)
I get the following errors:
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported

I am getting a similar message now. Perhaps something changed between the first release of OS2008 and the latest one? Actually, I may have been running the N810 version when I made this. I cannot remember for sure now.

I'll look into it more.

spokewrench 2008-02-04 20:14

Re: wpa_supplicant for OS2008
 
weird. i'm now getting the same
"ioctl[SIOCSIWAUTH]: Operation not supported" errors.
i definitely haven't reflashed or changed anything about my system except use gconftool to activate the dummy iap and install a bunch of non-connection-related software (gpe and maemomapper updates, bash, free42). maybe when i have time, i'll reflash and see if that helps.

absolutgaloot 2008-03-01 20:13

Re: wpa_supplicant for OS2008
 
Any new info on this issue? If I can help somehow in making this work, let me know, getting this working is the only way I'll be able to connect to my campus wireless.

Johnx 2008-03-02 13:19

Re: wpa_supplicant for OS2008
 
Could this be due to the wireless driver not supporting Linux Wireless Extensions (WEXT)? I had to patch the driver before I could use wpasupplicant with wpa-psk on Debian on my N800. The patch is here: https://garage.maemo.org/pipermail/c...er/000005.html

aleksandyr 2008-03-03 07:53

Re: wpa_supplicant for OS2008
 
I really need to start monitoring those lists...

Yes. That sounds like it would solve the problem, although I'm not sure what other problems it might create --- later posts on that list talk about issues with the patch.

Johnx 2008-03-03 08:51

Re: wpa_supplicant for OS2008
 
1 Attachment(s)
well, just make sure you don't replace the real module with it. If things end up getting screwed up you're just one reboot away from the fix. Here it is, compiled for the N800 OS2008 50-2 kernel. IIRC 51-3 is the same kernel, so it should work. Good luck. :)

freelikegnu 2008-03-03 19:14

Re: wpa_supplicant for OS2008
 
your driver did the trick for me!
many thanks!

BOFH 2008-03-03 19:43

Re: wpa_supplicant for OS2008
 
On side note has anybody gotten LEAP working?

freelikegnu 2008-03-04 00:04

Re: wpa_supplicant for OS2008
 
btw heres a little brute script to connect via wpa supplicant, assuming the driver is in /root/ and dummy network is already active:
Code:

killall wpa_supplicant
ifconfig down wlan0
rmmod cx3110x
insmod /root/cx3110x.ko
wpa_supplicant -c /etc/wpa_supplicant.conf -Dwext -iwlan0 -Bw
ifconfig wlan0 up
udhcpc -i wlan0 -z


mi_ko 2008-03-10 10:40

Re: wpa_supplicant for OS2008
 
Can somebody tell me, where is problem with 802.1x?
I tried to connect to my university network, it shows that it will connect with PEAP/LEAP and MSCHV2, it asked me user/password. And after a moment it says that wlan network is uncompatible.

mi_ko 2008-03-10 13:48

Re: wpa_supplicant for OS2008
 
I have recived some information from my university. They said that the problem with my device that it cannot understand migration mode. It means, that it cannon work well in networks which have same ssid but different 802.1x: wpa2 and automatic wep. Does anybody know something about it. Where can I read about that?

atarixl 2008-08-12 16:35

Re: wpa_supplicant for OS2008
 
Here at my university they also have TTLS/PAP and I have used the wpa_supplicant and the patched kernel module from this thread with success for a while under Chinook. Unfortunately it stopped working after I updated to Diablo. Wpa_supplicant seems still to work (I needed to create two symlinks for libssl and libcrypto), but the kernel module stopped working. Is there a chance that somebody could update this for the current kernel? TIA!

EDIT:
I should also mention that the old gconftool trick to add a dummy IAP does not work anymore for me under Diablo. It adds a connection that I can also see under "Connectivity Settings->Connections" but not under "Select Connections". Is there any way to see all the connections in the select dialog?

VDVsx 2008-10-30 17:44

Re: wpa_supplicant for OS2008
 
For eduroam networks, try this: http://www.valeriovalerio.org/?p=182

Note: require a updated OS2008

absolutgaloot 2008-12-01 01:27

Re: wpa_supplicant for OS2008
 
anyone manage to get this working on Diablo? I tried the link above, and it didn't work :(

johndoe32102002 2008-12-01 21:56

Re: wpa_supplicant for OS2008
 
I need full WPA support on the N810 OS2008 Diablo. Will Maemo release full WPA support in the future? Any good tutorials on how to get full WPA support? My univ does not have a certificate.

qole 2008-12-01 23:58

Re: wpa_supplicant for OS2008
 
Quote:

Originally Posted by rik (Post 105188)
Ill try it on our university network (eduroam) with PEAP-MSCHAPv2, i had no luck with connecting to that net :/

I found that with only a few changes, this UBC tutorial for the 770 works for PEAP-MSCHAPv2 networks. The key is in steps 13 & 14; going back and editing the connection and selecting "advanced" on the last page, and then adding the bit about using a manual user name...

absolutgaloot 2009-01-10 22:54

Re: wpa_supplicant for OS2008
 
Still haven't managed to get this to work. For some reason, the network is detected as WEP. Has anyone had any success?


All times are GMT. The time now is 14:08.

vBulletin® Version 3.8.8