#961: AR5006EG, madwifi associating only once
--------------------------------------+-------------------------------------
 Reporter:  Gilles                    |            Owner:     
     Type:  defect                    |           Status:  new
 Priority:  major                     |        Milestone:     
Component:  madwifi: driver           |          Version:     
 Keywords:  ar5006eg not associating  |   Patch_attached:  0  
--------------------------------------+-------------------------------------
 Hi Everyone,
 I own a new toshiba laptop with a AR5006EG card.
 {{{
 lspci -d 168c:001c

 0000:02:00.0 Ethernet controller: Atheros Communications, Inc.: Unknown
 device 001c (rev 01)
 }}}
 I m running Kubuntu 6.06, linux 2.6.15-27-386. I downloaded the svn
 snapshot yesterday (svn r1754), unloaded all the ubuntu-provided modules
 (new_ath_pci, new_wlan_xauth, new_wlan_wep, new_wlan_tkip,
 new_ath_rate_sample, new_wlan_scan_ap, new_wlan_ccmp, new_wlan_scan_sta,
 new_wlan, new_wlan_acl, new_ath_hal), make && make install && modprobe
 ath_pci

 So far so good, everything went fine.

 {{{
 [EMAIL PROTECTED]:/# tail /var/log/message
 Oct 18 21:12:40  kernel:  ath_pci: 0.9.4.5 (svn r1754)
 Oct 18 21:12:40  kernel:  ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16
 (level, low) -> IRQ 233
 Oct 18 21:12:40  kernel:  wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
 Oct 18 21:12:40  kernel:  wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
 Oct 18 21:12:40  kernel:  wifi0: H/W encryption support: WEP AES AES_CCM
 TKIP
 Oct 18 21:12:40  kernel:  wifi0: mac 10.0 phy 6.1 radio 10.2
 Oct 18 21:12:40  kernel:  wifi0: Use hw queue 1 for WME_AC_BE traffic
 Oct 18 21:12:40  kernel:  wifi0: Use hw queue 0 for WME_AC_BK traffic
 Oct 18 21:12:40  kernel:  wifi0: Use hw queue 2 for WME_AC_VI traffic
 Oct 18 21:12:40  kernel:  wifi0: Use hw queue 3 for WME_AC_VO traffic
 Oct 18 21:12:40  kernel:  wifi0: Use hw queue 8 for CAB traffic
 Oct 18 21:12:40  kernel:  wifi0: Use hw queue 9 for beacons
 Oct 18 21:12:40  kernel:  wifi0: Atheros 5424/2424: mem=0xd0100000,
 irq=233
 }}}

 After a couple of seconds, ath0 associates with my access-point, which
 happens to be a linux box, with a netgear wifi card running madwifi (svn
 r1754 as well).

 {{{
 [EMAIL PROTECTED]:/# iwconfig
 lo        no wireless extensions.

 sit0      no wireless extensions.

 eth0      no wireless extensions.

 wifi0     no wireless extensions.

 ath0      IEEE 802.11g  ESSID:"Los_Binos"
           Mode:Managed  Frequency:2.412 GHz  Access Point:
 00:14:6C:32:92:2D
           Bit Rate:54 Mb/s   Tx-Power:17 dBm   Sensitivity=0/3
           Retry:off   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality=49/94  Signal level=-45 dBm  Noise level=-94 dBm
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 [EMAIL PROTECTED]:/# ifconfig
 ath0      Link encap:Ethernet  HWaddr 00:16:E3:58:E9:09
           inet6 addr: fe80::216:e3ff:fe58:e909/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:4 errors:0 dropped:0 overruns:0 frame:0
           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:1368 (1.3 KiB)  TX bytes:914 (914.0 b)

 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:79341 errors:0 dropped:0 overruns:0 frame:0
           TX packets:79341 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:5705666 (5.4 MiB)  TX bytes:5705666 (5.4 MiB)

 wifi0     Link encap:UNSPEC  HWaddr 00-16-E3-58-E9-09-00-00-00-00-00-00-
 00-00-00-00
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:8399 errors:0 dropped:0 overruns:0 frame:646
           TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:199
           RX bytes:1067729 (1.0 MiB)  TX bytes:5752 (5.6 KiB)
           Interrupt:233 Memory:eca40000-eca50000
 }}}

 I can now get an IP by running the dhcp client.
 However, things start to go wrong when I bring down the ath0 interface, or
 when the laptop is disassociated from the AP (for example if the AP goes
 down). In these cases, I cannot reassociate with the AP. Here is an
 example:

 {{{
 [EMAIL PROTECTED]:/# iwconfig ath0
 ath0      IEEE 802.11g  ESSID:"Los_Binos"
           Mode:Managed  Frequency:2.412 GHz  Access Point:
 00:14:6C:32:92:2D
           Bit Rate:36 Mb/s   Tx-Power:17 dBm   Sensitivity=0/3
           Retry:off   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality=48/94  Signal level=-47 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

 [EMAIL PROTECTED]:/# dhclient ath0
 Internet Systems Consortium DHCP Client V3.0.3
 Copyright 2004-2005 Internet Systems Consortium.
 All rights reserved.
 wifi0: unknown hardware address type 801
 Listening on LPF/ath0/00:16:e3:58:e9:09
 Sending on   LPF/ath0/00:16:e3:58:e9:09
 Sending on   Socket/fallback
 DHCPREQUEST on ath0 to 255.255.255.255 port 67
 DHCPACK from 192.168.3.1
 bound to 192.168.3.11 -- renewal in 23596 seconds.

 [EMAIL PROTECTED]:/# ifconfig ath0
 ath0      Link encap:Ethernet  HWaddr 00:16:E3:58:E9:09
           inet addr:192.168.3.11  Bcast:192.168.2.255  Mask:255.255.255.0
           inet6 addr: fe80::216:e3ff:fe58:e909/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:8 errors:0 dropped:0 overruns:0 frame:0
           TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:1592 (1.5 KiB)  TX bytes:4029 (3.9 KiB)

 [EMAIL PROTECTED]:/# ifconfig ath0 down
 [EMAIL PROTECTED]:/# iwconfig ath0
 ath0      IEEE 802.11g  ESSID:""
           Mode:Managed  Channel:0  Access Point: Not-Associated
           Bit Rate:0 kb/s   Tx-Power:17 dBm   Sensitivity=0/3
           Retry:off   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality=0/94  Signal level=-93 dBm  Noise level=-93 dBm
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 [EMAIL PROTECTED]:/# iwconfig ath0 ap 00:14:6C:32:92:2D
 [EMAIL PROTECTED]:/# iwconfig ath0 essid Los_Binos
 [EMAIL PROTECTED]:/# iwconfig ath0
 ath0      IEEE 802.11g  ESSID:"Los_Binos"
           Mode:Managed  Frequency:2.412 GHz  Access Point:
 00:14:6C:32:92:2D
           Bit Rate:0 kb/s   Tx-Power:17 dBm   Sensitivity=0/3
           Retry:off   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality=0/94  Signal level=-96 dBm  Noise level=-96 dBm
           Rx invalid nwid:131  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 (  wait a couple of seconds   )

 [EMAIL PROTECTED]:/# iwconfig
 ath0      IEEE 802.11g  ESSID:"Los_Binos"
           Mode:Managed  Frequency:2.412 GHz  Access Point:
 00:14:6C:32:92:2D
           Bit Rate:0 kb/s   Tx-Power:17 dBm   Sensitivity=0/3
           Retry:off   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality=0/94  Signal level=-96 dBm  Noise level=-96 dBm
           Rx invalid nwid:162  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 [EMAIL PROTECTED]:/# iwlist ath0 scan
 ath0      Scan completed :
           Cell 01 - Address: 00:14:6C:32:92:2D
                     ESSID:"Los_Binos"
                     Mode:Master
                     Frequency:2.412 GHz (Channel 1)
                     Quality=49/94  Signal level=-46 dBm  Noise level=-95
 dBm
                     Encryption key:off
                     Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                               9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                               48 Mb/s; 54 Mb/s
                     Extra:bcn_int=100
 }}}
 As you can see, even if I used iwconfig to configure the AP bssid and
 essid, I still cant associate with it(no bit rate and link quality
 values). However, I noticed the Rx invalid nwid counter keeps increasing
 rapidly. The only way to solve this, is to rmmod ath_pci && modprobe
 ath_pci...

 I also noticed that if I run hostapd on my AP, then the laptop fails
 associating with the AP right after modprobing ath_pci, and there is no
 way to associate the two with hostapd running...

 Has someone got any thoughts on this issue ?

 Thanks
 Gilles

-- 
Ticket URL: <http://madwifi.org/ticket/961>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to