Author Topic: Setting Up Wifi With Wpa  (Read 3873 times)

Shoryu

  • Newbie
  • *
  • Posts: 11
    • View Profile
Setting Up Wifi With Wpa
« on: May 11, 2008, 06:45:57 pm »
Hi everyone,
i'm running zdevil rootfs and younggun latest kernel on my slc1000, so far everything works great.
The only thing that bugs me is that i don't know how can i enable WPA wifi with this distro.
I've done some research and tried a lot of stuff in /etc/network/interfaces
like using iwpriv wireless-tools commands :
Code: [Select]
pre-up iwpriv eth3 set AuthMode=WPAPSK
pre-up iwpriv eth3 set EncrypType=TKIP
pre-up iwpriv eth3 set WPAPSK="mykey"

but set command isn't available.

also using this syntax:
Code: [Select]
wireless-key-mgmt WPA-PSK
wireless-key "mykey"
when i try : /etc/init.d/networking restart
i get the error "Set mode" and also "Set Encode" saying that mykey is an invalid argument

i can see my wifi card with iwconfig it's just that it doesn't associate.

my wifi CF card is a Linksys WCF12 which should have WPA support according to some researches on google.
I saw that another tool can do the same as wireless-tools, wpa_supplicant. do i need to install this one or am i missing something here?
I've never had any problems with Wifi using WEP , but never done it with WPA.

thanks for your help

mikeones

  • Newbie
  • *
  • Posts: 20
    • View Profile
Setting Up Wifi With Wpa
« Reply #1 on: May 12, 2008, 10:55:29 am »
Quote from: Shoryu
Hi everyone,
i'm running zdevil rootfs and younggun latest kernel on my slc1000, so far everything works great.
The only thing that bugs me is that i don't know how can i enable WPA wifi with this distro.
I've done some research and tried a lot of stuff in /etc/network/interfaces
like using iwpriv wireless-tools commands :
Code: [Select]
pre-up iwpriv eth3 set AuthMode=WPAPSK
pre-up iwpriv eth3 set EncrypType=TKIP
pre-up iwpriv eth3 set WPAPSK="mykey"

but set command isn't available.

also using this syntax:
Code: [Select]
wireless-key-mgmt WPA-PSK
wireless-key "mykey"
when i try : /etc/init.d/networking restart
i get the error "Set mode" and also "Set Encode" saying that mykey is an invalid argument

i can see my wifi card with iwconfig it's just that it doesn't associate.

my wifi CF card is a Linksys WCF12 which should have WPA support according to some researches on google.
I saw that another tool can do the same as wireless-tools, wpa_supplicant. do i need to install this one or am i missing something here?
I've never had any problems with Wifi using WEP , but never done it with WPA.

thanks for your help
AFAICT, wpa supplicant is not installed.  It is required for wireless with wpa.

Code: [Select]
apt-get install wpasupplicant
sl-3100

Shoryu

  • Newbie
  • *
  • Posts: 11
    • View Profile
Setting Up Wifi With Wpa
« Reply #2 on: May 12, 2008, 05:45:16 pm »
thanks
too bad i can't use apt-get install on the Z since i don't have network working   .
but i tried to download the different packages manually:
wpasupplicant_0.6.3-1_armel.deb  

it has dependencies like:
libpcsclite1_1.4.101-2_armel.deb

and using dpkg -i with this package gave me the errors : unexpected end of file in version number, or  : is not a debian format archive

don't know if the dpkg is broken or libpcsclite1_1.4.101-2_armel.deb is corrupted on every mirror i tried   or there is a problem with my SD card especially with this file  

 i also need the prism1 driver for this rootfs ...

but i've lost too much time on this (searching info and appropriate packages....) as am i not an expert, so
good luck to everyone who is still trying to make wpa work with zdevil rootfs + younggun kernel.  
bye

JohnX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • http://
Setting Up Wifi With Wpa
« Reply #3 on: May 13, 2008, 04:52:29 am »
If you dual boot, just chroot into your debian install from pdaxrom or angstrom, and apt-get install whatever you need.
For wpa I use the following setup in /etc/network/interfaces:

auto wlan0
iface wlan0 inet dhcp
        wpa-ssid My-network
        wpa-psk my-long-psk-for-my-network
Zaurus SL-C1000 - Linux 2.6.22 - Angstrom/Debian dual boot - Ambicom 802.11b - 1GB Corsair SD
Nokia N800 - 2GB PQI SD card
Zaurus SL-5500 - OZ 3.5.3/Hentges T2/Opie - 64MB Lexar SD card

mikeones

  • Newbie
  • *
  • Posts: 20
    • View Profile
Setting Up Wifi With Wpa
« Reply #4 on: May 13, 2008, 01:29:44 pm »
Here is the list of required packages for etch.

http://packages.debian.org/etch/wpasupplicant
sl-3100