Here are some outputs and file settings:
#modprobe ath_pci
[root@localhost root]# modprobe ath0
Warning: loading /lib/modules/2.4.22-1.2115.nptl/net/ath_hal.o will taint the kernel: non-GPL license - Proprietary
See
http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module ath_hal loaded, with warnings
Module wlan loaded, with warnings
Module ath_pci loaded, with warnings
#tail -f /var/log/messages
Feb 14 00:51:47 localhost kernel: ath_hal: 0.9.6.11
Feb 14 00:51:48 localhost kernel: wlan: 0.7.3.1 BETA
Feb 14 00:51:48 localhost kernel: ath_pci: 0.8.5.2 BETA
Feb 14 00:51:48 localhost kernel: PCI: Found IRQ 11 for device 00:10.0
Feb 14 00:51:48 localhost kernel: ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3 Feb 14 00:51:48 localhost kernel: ath0 : 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Feb 14 00:51:48 localhost kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Feb 14 00:51:48 localhost kernel: ath0: 802.11 address: 00:09:XX:XX:XX:XX
Feb 14 00:51:48 localhost kernel: ath0: Atheros 5212: mem=0xfece0000, irq=11
Feb 14 00:51:49 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team
Feb 14 00:51:50 localhost dhclient: DHCPREQUEST on ath0 to 255.255.255.255 port 67 Feb 14 00:51:58 localhost last message repeated 2 times
Feb 14 00:52:06 localhost dhclient: DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8 Feb 14 00:52:14 localhost dhclient: DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 19 Feb 14 00:52:33 localhost dhclient: DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 18
[root@localhost root]# iwconfig ath0
ath0 IEEE 802.11 ESSID:"MYLAN" Nickname:"localhost.localdomain"
Mode: Managed Frequency: 2.457GHz Access Point: FF:FF:FF:FF:FF:FF
Bit Rate: 1Mb/s Tx-Power: off Sensitivity=0/3
Retry:off RTS thr: off Fragment thr: off
Encryption key: off
Power Management: off
Link Quality:0/94 Signal level:-95 dBm Noise level:-95 dBm
Rx invalid nwid: 0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries: 0 Invalid misc: 0 Missed beacon:0
Dont know what 'Missed beacon' is.
[root@localhost root]# iwconfig ath0 key 9e08b517889e34098c248887ac
[root@localhost root]# iwconfig ath0
ath0 IEEE 802.11 ESSID:"MYLAN" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.462GHz Access Point: 00:09:XX:XX:XX:XX
Bit Rate:1Mb/s Tx-Power:off Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:9E08-B517-889E-3409-8C24-8887-AC Security mode:open
Power Management:off
Link Quality:60/94 Signal level:-35 dBm Noise level:-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
The AP Mac address is set and Link Quality goes from 0 -> 60. Encryption key is set, but Security Mode is open.
On my AP is Netgear WG614, Authentication type is set to Shared Key, Encryption strength is 128bit and the Key is 9E08B517889E34098C248887AC
#ifconfig -a
ath0 Link encap:Ethernet HWaddr 00:XX:XX:XX:XX:XX
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
collisions:0 txqueuelen:199
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Memory:c692e000-c693e000
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:6562 errors:0 dropped:0 overruns:0 frame:0
TX packets:6562 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5844188 (5.5 Mb) TX bytes:5844188 (5.5 Mb)
[root@localhost root]# ifup ath0
Cannot get driver information: Operation not supported
Determining IP information for ath0...PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.341/3.341/3.341/0.000 ms, pipe 2
SIOCADDRT: File exists
done.
[root@localhost root]# ifconfig ath0 up
[root@localhost root]#
There is no error message when I run ifconfig, but nasty errors when ifup is run.
Hope this gives you a clue, I certainly need a second set of eyes to look at this.
Thanks.