Carte Wi-Fi se coupe fréquemment, le driver ath9k plante

Bonjour,

suite à un changement de machine (et donc, réinstallation de Debian), ma carte Wi-Fi ne fonctionne plus correctement… voici les détails de la machine et plus bas les détails du problème :

AMD Duron 800Mhz, cpuinfo : root@srv1-net1:~# cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 3 model name : AMD Duron(tm) Processor stepping : 1 cpu MHz : 799.949 cache size : 64 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow up bogomips : 1599.89 clflush size : 32 cache_alignment : 32 address sizes : 36 bits physical, 32 bits virtual power management:

384Mb de RAM,

Carte réseau Ethernet NETGEAR Gigabit,
Carte réseau Ethernet TP-Link 10/100 (premier prix),
Carte réseau Wi-Fi Atheros AR922X (carte mini-PCI récupérée d’une Livebox et installée dans un adaptateur mini-PCI -> PCI, fonctionnait parfaitement dans l’ancienne machine)

lspci :

root@srv1-net1:~# lspci 00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 02) 00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] 00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22) 00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10) 00:07.2 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10) 00:07.3 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10) 00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30) 00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 20) 00:0b.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01) 00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 00:12.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10) 01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI 3D Rage IIC AGP (rev 7a)

deux interfaces réseau; eth0 pour Internet connectée à une Freebox en mode Bridge (le PC fera office de routeur), et lan0 pour le réseau local (c’est un bridge regroupant eth1 et wlan0), /etc/network/interfaces :

[code]root@srv1-net1:~# cat /etc/network/interfaces

This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

auto eth0
iface eth0 inet static
address 88.170.193.138
netmask 255.255.255.0
gateway 88.170.193.254
pre-up iptables-restore < /etc/iptables-rules

auto lan0
iface lan0 inet static
bridge_ports eth1 wlan0
address 192.168.1.1
netmask 255.255.255.0
pre-up hostapd -B /etc/hostapd/hostapd.conf
pre-down killall -w -q hostapd[/code]

ifconfig -a (hostapd étant arrêté pour les raisons mentionnées plus bas) :

[code]root@srv1-net1:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr f8:d1:11:04:4f:df
inet addr:88.170.193.138 Bcast:88.170.193.255 Mask:255.255.255.0
inet6 addr: 2a01:e35:8aac:18a0:fad1:11ff:fe04:4fdf/64 Scope:Global
inet6 addr: fe80::fad1:11ff:fe04:4fdf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4067 errors:0 dropped:0 overruns:0 frame:0
TX packets:2883 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3637341 (3.4 MiB) TX bytes:512001 (500.0 KiB)
Interrupt:10 Base address:0xbc00

eth1 Link encap:Ethernet HWaddr e0:46:9a:29:4d:7e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3490 errors:0 dropped:1 overruns:0 frame:0
TX packets:4055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:603440 (589.2 KiB) TX bytes:3506435 (3.3 MiB)
Interrupt:11 Base address:0xa000

lan0 Link encap:Ethernet HWaddr e0:46:9a:29:4d:7e
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:70ff:fe56:1b12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3320 errors:0 dropped:0 overruns:0 frame:0
TX packets:4049 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:505791 (493.9 KiB) TX bytes:3506219 (3.3 MiB)

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:122 errors:0 dropped:0 overruns:0 frame:0
TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10685 (10.4 KiB) TX bytes:10685 (10.4 KiB)

wlan0 Link encap:Ethernet HWaddr 00:19:70:56:1b:12
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:11800 (11.5 KiB[/code])

le problème qui se pose, c’est que dès que Hostapd est démarré (dès le boot donc), le noyau commence à afficher énormément d’erreurs de ce type :

Jul 24 14:41:03 srv1-net1 kernel: [ 70.683886] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jul 24 14:41:04 srv1-net1 kernel: [ 71.101790] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00006040 Jul 24 14:41:04 srv1-net1 kernel: [ 71.170811] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jul 24 14:41:04 srv1-net1 kernel: [ 71.688354] ath: Failed to stop TX DMA, queues=0x001! Jul 24 14:41:05 srv1-net1 kernel: [ 71.764450] ath: Failed to stop TX DMA, queues=0x001! Jul 24 14:41:05 srv1-net1 kernel: [ 71.843612] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00006040 Jul 24 14:41:05 srv1-net1 kernel: [ 71.912269] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jul 24 14:41:05 srv1-net1 kernel: [ 72.005561] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00008040 Jul 24 14:41:05 srv1-net1 kernel: [ 72.075263] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up

et le point d’accès Wi-Fi devient inopérant… d’après Google, le bug est assez ancien (certains messages remontent jusqu’en 2010) : google.fr/search?q=DMA+fail … refox-beta

mais j’ai pas vraiment trouvé de solution, certains disent de compiler manuellement la version de ath9k (le pilote pour la carte), mais je comprends pas vraiment, qu’est ce que je dois compiler ? ath9k ? compat-wireless ? le noyau Linux ? actuellement je suis sous Debian Wheezy, quelqu’un peut m’expliquer comment faire pour installer le dernier ath9k depuis les repo de la Sid ?

Le site de ath9k : linuxwireless.org/en/users/Drivers/ath9k
Le “datasheet” (ce n’est pas vraiment un datasheet mais bon) de la carte : zcom.com.tw/program1/doc/AN- … 110921.pdf

Merci d’avance.