LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-23-2006, 09:30 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
WPA-PSK with the WLAN card WG311T von Netgear


hi

I have Debian Sarge Stable,
but WPA-PSK with the WLAN card WG311T from Netgear won't work:
Code:
# lsmod | grep ath
ath_pci                81596  0
ath_rate_sample        16584  1 ath_pci
wlan                  146140  4 wlan_wep,ath_pci,ath_rate_sample
ath_hal               148592  3 ath_pci,ath_rate_sample


# vi /etc/default/wpasupplicant

# WARNING! Make sure you have a configuration file!

ENABLED=1

# Useful flags:
#  -D <driver>          Wireless Driver
#  -i <ifname>          Interface (required, unless specified in config)
#  -c <config file>     Configuration file
#  -d                   Debugging (-dd for more)
#  -w                   Wait for interface to come up

OPTIONS="-i ath0 -D madwifi -c /etc/wpa_supplicant.conf -w"


# vi /etc/wpa_supplicant.conf

# WPA-PSK
network={
        ssid="myessid"
        proto=WPA
        scan_ssid=1
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        psk="mykey"
}


# vi /etc/network/interfaces

# wg311t wireless card 
auto ath0
iface ath0 inet static
address 192.168.200.20
netmask 255.255.255.0
network 192.168.200.0
broadcast 192.168.200.255
gateway 192.168.200.1
dns-nameservers 192.168.200.1
dns-search dom
#wireless-essid myessid
#wireless-channel auto
#wireless-key mykey
#up /sbin/iwpriv ath0 authmode 2
name wlan WG311T


# wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf -D madwifi -w
Trying to associate with 00:0f:b5:3b:d8:e6 (SSID='myessid' freq=2457 MHz)
ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long
Association request to the driver failed
Authentication with 00:00:00:00:00:00 timed out.
knows someone what's wrong ?
for example WEP worked with the same hardware without any problems.
 
Old 02-25-2006, 06:20 PM   #2
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
doesn't work either if I try to add manually:
Code:
debian:~# ifconfig ath0 up
debian:~# iwconfig ath0 mode "managed"
debian:~# iwpriv ath0 set AuthMode="WPAPSK"
Invalid command : set
debian:~# iwpriv ath0 set EncrypType="AES"
Invalid command : set
debian:~# iwpriv ath0 set WPAPSK="mykey"
Invalid command : set
 
Old 02-27-2006, 10:21 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
It works now !

I've done following:
first download & install the newest madwifi:
Code:
z
# cd /usr/src
# svn checkout http://svn.madwifi.org/trunk madwifi-ng
# cd madwifi-ng
# make clean 
# make
# make install
now install the newest wpa_supplicant from http://hostap.epitest.fi/wpa_supplicant/:
Code:
# cd wpa_supplicant-0.4.8
# cat .config
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I/usr/src/madwifi-ng
CONFIG_CTRL_IFACE=y
# make clean
# make 
# make install
I have only one problem
I didn't get any errors during the installation, but my wlan card is double identificated now as ath0 and wifi0:
Code:
# ifconfig -a
ath0      Protokoll:Ethernet  Hardware Adresse 00:0F:B5:26:C2:D8
          inet6 Adresse: fe80::20f:b5ff:fe26:d1c9/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Protokoll:Ethernet  Hardware Adresse 00:0E:0C:73:C2:17
          inet Adresse:192.168.200.2  Bcast:192.168.200.255  Maske:255.255.255.0          inet6 Adresse: fe80::20e:cff:fe73:d108/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13893 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9930 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:17559755 (16.7 MiB)  TX bytes:1163213 (1.1 MiB)
          Basisadresse:0xec00 Speicher:dffc0000-dffe0000

eth1      Protokoll:Ethernet  Hardware Adresse 00:30:1B:1D:BC:B4
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Basisadresse:0xd800

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:478 errors:0 dropped:0 overruns:0 frame:0
          TX packets:478 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:38838 (37.9 KiB)  TX bytes:38838 (37.9 KiB)

sit0      Protokoll:IPv6-nach-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wifi0     Protokoll:Ethernet  Hardware Adresse 00:0F:B5:26:C2:D8
          inet Adresse:192.168.200.20  Bcast:192.168.200.255  Maske:255.255.255.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:4500 errors:0 dropped:0 overruns:0 frame:2069
          TX packets:4274 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:199
          RX bytes:708329 (691.7 KiB)  TX bytes:221384 (216.1 KiB)
          Interrupt:11 Speicher:f8a92000-f8aa2000
knows someone howto solve this problem ?

Last edited by cccc; 03-04-2006 at 08:42 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA-PSK, how do I set this up? maddoggames Linux - Wireless Networking 5 06-10-2006 07:26 PM
WPA-PSK how? dimgr Linux - Wireless Networking 0 05-11-2005 11:28 AM
Netgear WG311T (108mbps wireless PCI card) f0rmula Linux - Wireless Networking 1 05-01-2005 04:21 AM
how do I get my AP to use WPA-PSK ? lemon_hou Linux - Wireless Networking 1 12-28-2004 02:22 AM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration