WEP support

I’ve fixed the WEP support in the Wifi driver so that it can authenticate with APs that use Shared Key authentication.

Usage:
iwconfig nds channel <N> essid <ESSID> key <wepkey>

Thanks go to sgstair and the ethereal dev team.

Update: It looks like only 64bit WEP is working.

Update 2: 128bit WEP in the next build.

33 Responses to “WEP support”

  1. RobM Says:

    Very nice, now I can use WEP with the next build! :)

  2. Bucko Says:

    *Waits patiently for WPA support*

  3. Nismo Says:

    yeah me too! i agree with Bucko…i understand it shouldnt be a priority AT ALL, but my (and other people’s) router works with WPA… stupid Linksys wrt54c compact wtv lol…anyways it would be cooool if that works…!

  4. Nismo Says:

    i forgot to add this: You guys really, really, really ROCK….damn! May all of the people that truly understand what challenge you guys are undertaking bow down and respect! we love you!!!

  5. taznjazz Says:

    Whoohooo!!

  6. LoneTech Says:

    WPA support isn’t necessarily a driver level feature. Essentially the wireless extensions layer handles multiple WEP keys, and a daemon like wpasupplicant sets them up and tears them down automatically.

  7. Nismo Says:

    what? ^^
    umm translation lol, i am a noob

  8. Chuck` Says:

    I take it sgstair has WEP working in his lib now as well?

  9. leif902 Says:

    Very nice :D i’ve done some pinging… wonder if it can telnet Dyne:Bolic :D -Leif902

  10. Kenny Says:

    Nismo, a deamon is a small program that runs in the background.
    the wpa support is not always something in the driver, but a deamon that handle it

  11. pepsiman Says:

    Sgstair does not have WEP working in his lib yet, but he’s working on it.

  12. Dualscreenman Says:

    Maybe now a comprehensive guide to setting up wifi in the Wiki is now in order?
    That would really help us less technically impaired.

    Oh, and I’m having trouble entering a multiword essid, any help?

  13. Dualscreenman Says:

    Nevermind. I found it on the Wiki. But maybe it should have a seperate section. Oh. Nevermind about the essid.

  14. AndrewNeo Says:

    I know that wpa_supplicant runs on top of the normal stuff, but will it actually be possible? WPA probably takes more RAM (which we don’t have a lot of) and the wpa_supplicant usually needs a chipset-dependant driver to handle the network card commands (though I’m sure that could be written..)

  15. Teh_Sudds Says:

    I’ve got this in a shell script, and I can’t so much as ping the router, let alone the outside world:

    iwconfig nds channel 6 essid 00:06:25:A2:76:A8
    ifconfig nds 192.168.1.30 up
    route add default gw 192.168.1.1

  16. Nismo Says:

    oh ok thx Kenny. hey i tried dslinux on iDeas, and it works but when it asks for password, no matter where you press it starts a loop. Is it normal or is it just me. i remember alot of 6’s.

  17. pepsiman Says:

    Teh_Sudds: That looks like a MAC address, not an essid.

    Nismo: iDeaS has a bug where the X and Y buttons are reported as being pressed when they’re not. This should be fixed in the next iDeaS release.

  18. chatterbug89 Says:

    Well, I was extremealy excited when it first came out and now WEP is working :) (though, I don’t use wep here…i have my reasons…). Though, unfournately….I have only been able to connect a couple times. I use this to connect.

    iwconfig nds channel 6 essid chris
    ifconfig nds up
    udhcpc -n -q -i nds

    Most of the time, when running udhcpc it will countinously send discover…but, sometimes it will work, and i’m able to ping some site. But, after about a minute…everything just stops working and I can no longer ping anything. Guess it was fun having it work for a minute though :-P I have no problems with other wireless apps for the DS by the way..oh well, i’ll just wait patiently for something that hopefuly works (maybe it’s just my router :S ). Thanks a lot :)

  19. James Says:

    Nismo: Which DSlinux build do you use with IDEAs? The wifime, the movie player one or what? Thanks in advance

  20. Nismo Says:

    James: I use the .nds one. It should say “for iDeaS” in parenthesis. And as for now, i use the iDeaS version 1.0.0.5, because the 1.0.0.7 seems to be unstable on my computer, everytime i run dslinux there is an error :S. Something’s telling me that the problem is my computer though. Anyone with the same problem?

  21. taznjazz Says:

    To all that are having problems, here is the script I use that is working great! I can ping my router, and any given website, as well as telnet into my router. Unfortunately I don’t know how to get my network to let my DS past the router so I can ping/telnet my laptop.

    iwconfig nds channel 6 essid my_essid key 0102031a2b
    ifconfig nds 192.168.1.2 up
    route add default gw 192.168.1.1

    Notes:

    1. essid is just that, not your MAC address (the wiki is wrong), example: essid linksys (but I really hope your router does not still have this essid, if it does google ‘wireless security’)

    2. key is a 64 bit wep, 10 hex digits

    3. Check your router settings for channel (mine defaults to something other than 6)

    4. I use DHCP for the rest of my network, so I also had to set my router up for a static subnet for my ds (I googled for ’static ip address’, and ’static routing subnet’ for tutorials):

    subnet ip: 192.168.1.2
    subnet mask: 255.255.255.0
    gateway IP: 192.168.1.1
    changed DHCP settings to start at 192.168.1.3 instead of 192.168.1.2

  22. FloFri Says:

    128 BIT IS WORKING WITH LATEST BUILD!
    (kineox.free.fr/DS/)

    Pepsiman, you are the greatest, this is the first time, I could connect to my ap.

  23. Nismo Says:

    Pepsiman: I was just wondering, were do you get your knowledge of computer programming from? Is it from a specialized school or from books, trial/error or what? thx.

    Hey, anyone seen the new iDeaS 1.0.0.8?
    I saw it but i can’t download it somehow, the link just directs me to some wierd page :S. So please paste the link if you find it! thx.

    For anyone that knows how: The driver for the wireless card for WifiMe, once it is installed, can you enable/disable it from a single button, or do you have to do the long steps when you install it AND when you uninstall it? Thank you, Anyone-That-Knows-How!

  24. Chuck` Says:

    There’s no better way to learn than to sit down and code.

  25. sam Says:

    pepsiman what is your email i think you might be the only guy who can answer a hard question for me

  26. pepsiman Says:

    Ask the question here.

  27. Teh_Sudds Says:

    Should have said it, but I tested the proper ESSID also. No dice. Itza Linksys 802.11b router. I suppose it just dislikes me =/

  28. Teh_Sudds Says:

    As well, DS IP, and channel were both correct. *shrug*

  29. Ben Says:

    Teh_Sudds: It doesn’t seem to be working properly yet.
    I’ve set mine up with all the correct details (triple checked key, essid is just a simple 4 characters, channel number checked) and can’t ping my router. iwlist scan shows the router and very occasionally it can be briefly seen by it (enough time to add the DS to the access list) but doesn’t associate.
    After assigning the DS with IP 192.168.0.4 manually (as per wiki) and doing ping 192.168.0.4 I get “ping: sendto: Unknown error 22″ so it can’t even ping itself!!!!
    Just to be 100% certain I disabled all security on the router - exactly the same problem, even with security off on the DS *iwconfig nds key off” I have a Netgear DG834G

  30. Ben Says:

    I tried it again today and it works every time - bizarre!

  31. pboy Says:

    does anybody know how to hook up to wi-fi because I have a wireless router right next to me but my ds says there is no access point in range…and im right next to it

  32. bas Says:

    Couldn’t get the nameserver lookup to work (m3 sd, no custom built yet, sram filesystem won’t work either), but I could connect to a irc server via telnet and even chat a little :)

    ^^d

  33. gameboyboy Says:

    WPA supplicant for DSlinux !!!! PLEASE, if someone ones, just write the CODE