Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cant connect to WPA network, have ath0 and wifi0 interfaces?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xthejuicex
n00b
n00b


Joined: 20 Dec 2007
Posts: 4
Location: US

PostPosted: Tue Dec 25, 2007 10:14 pm    Post subject: Cant connect to WPA network, have ath0 and wifi0 interfaces? Reply with quote

I have been searching around and cannot find the answer to my problem. I am trying to connect to a WPA-TKIP access point. I have installed the latest wpa_supplicant, madwifi-ng, madwifi-ng-tools, and wireless-tools. My card is Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01). When I do ifconfig i get
Code:
# ifconfig
ath0      Link encap:Ethernet  HWaddr 00:05:4E:42:B5:
          inet6 addr: fe80::205:4eff:fe42:b5/64 Scope:Link
          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
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr **********
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::206:1bff:fedd:ed69/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:420 errors:0 dropped:0 overruns:0 frame:0
          TX packets:447 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:378157 (369.2 Kb)  TX bytes:67810 (66.2 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:240 errors:0 dropped:0 overruns:0 frame:0
          TX packets:240 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:19312 (18.8 Kb)  TX bytes:19312 (18.8 Kb)

wifi0     Link encap:UNSPEC  HWaddr 00-05-4E-42-B5-53-38-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:626 (626.0 b)  TX bytes:184 (184.0 b)
          Interrupt:11


When I try to connect to my AP in wifi-radar, i get the errors:
Code:
# wifi-radar
sh: say: command not found
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device ath0 ; Invalid argument.
Line 10: failed to parse ssid 'ZFGP9'.
Line 10: failed to parse ssid 'ZFGP9'.
SIOCSIFNETMASK: Cannot assign requested address
SIOCADDRT: Invalid argument
Line 14: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.


I have tried using the wifi0 device as well as the ath0 device and both give the same errors. I am not sure what to do now and have tried searching all around. Any help would be greatly appreciated.

The output of iwconfig is:
Code:
# iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

sit0      no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:"ZFGP9"  Nickname:"ZFGP9"
          Mode:Managed  Channel:0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:14 dBm   Sensitivity=1/1
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:2403  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


And my wpa_supplicant.conf is :
Code:
ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

update_config=0

ap_scan=1
#
network={
        ssid=ZFGP9
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="--key--"
}


and my net config file is:
Code:

#iwconfig_ath0="mode managed"

modules=( "ifconfig" "wpa_supplicant" )

wpa_supplicant_ath0="-Dmadwifi"


also lsmod is:
Code:

# lsmod
Module                  Size  Used by
wlan_tkip              14080  0
wlan_scan_sta          12800  1
ath_rate_sample        13568  1
ath_pci                76064  0
wlan                  151620  5 wlan_tkip,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal               191696  3 ath_rate_sample,ath_pci


Sorry for the long post but I have been trying to fix this for a while and have had no luck.
Back to top
View user's profile Send private message
sdunne
n00b
n00b


Joined: 02 Sep 2003
Posts: 72
Location: London, UK

PostPosted: Wed Dec 26, 2007 4:05 pm    Post subject: Reply with quote

Quote your ssid in wpa_supplicant.conf ??

I don't use wifiradar myself but it doesn't seem too happy with the wpa_supplicant.conf it found.

What does wpa_cli status say ??

For comparison, here's my own wpa_supplicant.conf and wpa_cli status

Code:
active netblock from wpa_supplicant.conf

network={
        ssid="--my-quoted-random-hex-ssid---"
        psk=---my-unquoted-hex-psk-post-wpa_passphrase---
        key_mgmt=WPA-PSK
        proto=RSN
        priority=2
}


Code:
wpa_cli status

> status
bssid=*** My router's mac ***
ssid=---My-random-hex-ssid-sans-quotes---
id=1
pairwise_cipher=CCMP
group_cipher=TKIP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.0.3


This is all with an Atheros based Netgear WPN511 pccard talking to a Netgear DG834PN, using madwifi-ng 0.9.3.3 & wpa_supplicant 0.5.7 on a 2.6.23-r3 kernel
_________________
Stephen Dunne
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum