[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#659521: [3.1 -> 3.2.4 regression] ath9k: no packets are transmitted or received with WEP



Hello, Jonathan,
sending again with 659521@bugs.debian.org copied in Cc.

in the command log below you see i used 'ifconfig' to assign a static IP and setup a network route,
i also tried to do the same thing with only 'ip' commands, but things worked with kernel 3.1.0-1 
and again did not work (as i expected) with kernel 3.2.0-1:

  ip link set wlan0 up
  ip addr flush dev wlan0
  ip addr add 192.168.0.79/32 dev wlan0
  ip route add 192.168.0.0/24 dev wlan0



Thank you

Stefan.


I have done the tests as you suggested, the log of all commands for
newer and older kernel is attached hereafter.
Some comments :

- i have no network manager installed (this is one of the first things i get
  rid of after installing debian)
- the wifi router has DHCP disabled, and is configured with IP=192.168.0.1 and WEP encryption
- laptop configured with static IP=192.168.0.78
- router responds to ICMP (ping)

Even with the commands you suggested wifi connection does not work (can not ping the router)
with newer kernel and works with older kernel.
I have posted also the wlan0-related lines of dmesg in both cases.

I also have cross-checked the new 3.2.0-1 kernel on another laptop with broadcom BCM4313
wireless chip (brcmsmac module), same debian testing installation and here wifi works perfectly,
so the problem ''seems'' to be related to the ath9k module.


Thank you for your attention
STefan

==============================================================================
command log follows
==============================================================================


==============================================================================
3.2.0-1 kernel
==============================================================================

schippes@miniguru:~$ sudo su
root@miniguru:/home/schippes# uname -a
Linux miniguru 3.2.0-1-686-pae #1 SMP Sun Feb 5 23:52:49 UTC 2012 i686 GNU/Linux
root@miniguru:/home/schippes# ip link set wlan0 up
root@miniguru:/home/schippes# iw dev wlan0 connect -w ANUBIS  key d:0:********************
wlan0 (phy #0): connected to 00:1f:1f:72:4f:50
root@miniguru:/home/schippes# ifconfig wlan0 192.168.0.78 up
root@miniguru:/home/schippes# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
>From 192.168.0.78 icmp_seq=1 Destination Host Unreachable
>From 192.168.0.78 icmp_seq=2 Destination Host Unreachable
>From 192.168.0.78 icmp_seq=3 Destination Host Unreachable
>From 192.168.0.78 icmp_seq=4 Destination Host Unreachable
>From 192.168.0.78 icmp_seq=5 Destination Host Unreachable
>From 192.168.0.78 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.0.1 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6031ms
pipe 3
root@miniguru:/home/schippes# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
root@miniguru:/home/schippes# ifconfig
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:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1504 (1.4 KiB)  TX bytes:1504 (1.4 KiB)

wlan0     Link encap:Ethernet  HWaddr c4:17:fe:5c:f2:80
          inet addr:192.168.0.78  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::c617:feff:fe5c:f280/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1212 (1.1 KiB)  TX bytes:5040 (4.9 KiB)

root@miniguru:/home/schippes# iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"ANUBIS"
          Mode:Managed  Frequency:2.427 GHz  Access Point: 00:1F:1F:72:4F:50
          Bit Rate=54 Mb/s   Tx-Power=15 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=64/70  Signal level=-46 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:51   Missed beacon:0

eth0      no wireless extensions.


dmesg log
==========
[ 1794.813674] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1799.979704] wlan0: authenticate with 00:1f:1f:72:4f:50 (try 1)
[ 1799.981734] wlan0: authenticated
[ 1800.014538] wlan0: associate with 00:1f:1f:72:4f:50 (try 1)
[ 1800.017193] wlan0: RX AssocResp from 00:1f:1f:72:4f:50 (capab=0x411 status=0 aid=1)
[ 1800.017200] wlan0: associated
[ 1800.017688] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1810.640146] wlan0: no IPv6 routers present



==============================================================================
3.1.0-1 kernel
==============================================================================

schippes@miniguru:~$ sudo su
root@miniguru:/home/schippes# uname -a
Linux miniguru 3.1.0-1-686-pae #1 SMP Tue Jan 10 05:42:54 UTC 2012 i686 GNU/Linux
root@miniguru:/home/schippes# ip link set wlan0 up
root@miniguru:/home/schippes# iw dev wlan0 connect -w ANUBIS  key d:0:****************
wlan0 (phy #0): connected to 00:1f:1f:72:4f:50
root@miniguru:/home/schippes# ifconfig wlan0 192.168.0.78 up
root@miniguru:/home/schippes# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_req=1 ttl=64 time=6.11 ms
64 bytes from 192.168.0.1: icmp_req=2 ttl=64 time=1.86 ms
64 bytes from 192.168.0.1: icmp_req=3 ttl=64 time=1.63 ms
64 bytes from 192.168.0.1: icmp_req=4 ttl=64 time=1.89 ms
64 bytes from 192.168.0.1: icmp_req=5 ttl=64 time=1.89 ms
^C
--- 192.168.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 1.633/2.679/6.113/1.720 ms
root@miniguru:/home/schippes# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
root@miniguru:/home/schippes# ifconfig
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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:240 (240.0 B)  TX bytes:240 (240.0 B)

wlan0     Link encap:Ethernet  HWaddr c4:17:fe:5c:f2:80
          inet addr:192.168.0.78  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::c617:feff:fe5c:f280/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4661 (4.5 KiB)  TX bytes:5412 (5.2 KiB)

root@miniguru:/home/schippes# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"ANUBIS"
          Mode:Managed  Frequency:2.427 GHz  Access Point: 00:1F:1F:72:4F:50
          Bit Rate=54 Mb/s   Tx-Power=14 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=59/70  Signal level=-51 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:30   Missed beacon:0


dmesg log
==========
[  142.709996] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  159.231354] wlan0: authenticate with 00:1f:1f:72:4f:50 (try 1)
[  159.233401] wlan0: authenticated
[  159.233460] wlan0: associate with 00:1f:1f:72:4f:50 (try 1)
[  159.236090] wlan0: RX AssocResp from 00:1f:1f:72:4f:50 (capab=0x411 status=0 aid=1)
[  159.236099] wlan0: associated
[  159.236720] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  169.256150] wlan0: no IPv6 routers present




==============================================================================
<<EOF>>
==============================================================================




On 02/13/2012 04:01 PM, Jonathan Nieder wrote:
> Hi,
>
> stef schip wrote:
>
>> I confirm the bug on my laptop, equipped with AR9285 (module ath9k)
>> wireless chip.
>>
>> the laptop (samsung N220 netbook) has a fairly clean debian testing
>> installation,
>> after kernel upgrade from 3.1.0-1-686-pae to 3.2.0-1-686-pae connection to
>> a wifi router with WEP encryption (*) does not work anymore.
>> i can setup the interface with manual ifconfig / iwconfig commands, no
>> errors are reported,
> [...]
>>     no packets are transmitted nor received over the wireless link.
> Thanks.  Sounds like a completely different bug.
>
> Does the following work?
>
> 	apt-get install iproute iw
> 	/etc/init.d/NetworkManager stop
> 	ifdown wlan0
>
> 	ip link set wlan0 up
> 	iw dev wlan0 connect -w <SSID> key d:0:<WEP key>
> 	dhclient wlan0
>
> 	ping google.com
>
> 	ip link set wlan0 down




Reply to: