[Résolu] Problème install wifi atheros sur testing

Bonjour,

j’ai reçu y’a pas longtemps un asus m51tr que j’ai mis sous debian testing. Tout est ok (c’est relatif…) sauf entre autre le wifi. J’ai suisvi ces 2 fils ici et ici mais impossible d’arriver à quoique ce soit. Je suis bien arrivé à installer (a prioris) madwifi,en tout cas tout à l’air de bien se passer:

aptitude update
aptitude install module-assistant
m-a prepare
m-a a-i madwifi
modprobe ath_pci

J’ai également testé avec pci=bios au démarrage mais rien n’y fait.

Voilà le résultat des commandes dictées dans les 2 fils:

lspci:

00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (int gfx)
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:04.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 0)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 1)
00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3a)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 11h HyperTransport Configuration (rev 40)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 11h Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 11h DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 11h Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 11h Link Control
01:05.0 VGA compatible controller: ATI Technologies Inc RS780M/RS780MN [Radeon HD 3200 Graphics]
02:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3400 Series
02:00.1 Audio device: ATI Technologies Inc RV620 Audio device [Radeon HD 34xx Series]
03:00.0 Network controller: Atheros Communications Inc. Device 002a (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
08:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
08:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
08:01.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
08:01.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)

lspci -n:

00:00.0 0600: 1022:9600
00:01.0 0604: 1022:9602
00:02.0 0604: 1022:9603
00:04.0 0604: 1022:9604
00:05.0 0604: 1022:9605
00:06.0 0604: 1022:9606
00:11.0 0106: 1002:4391
00:12.0 0c03: 1002:4397
00:12.1 0c03: 1002:4398
00:12.2 0c03: 1002:4396
00:13.0 0c03: 1002:4397
00:13.1 0c03: 1002:4398
00:13.2 0c03: 1002:4396
00:14.0 0c05: 1002:4385 (rev 3a)
00:14.1 0101: 1002:439c
00:14.2 0403: 1002:4383
00:14.3 0601: 1002:439d
00:14.4 0604: 1002:4384
00:14.5 0c03: 1002:4399
00:18.0 0600: 1022:1300 (rev 40)
00:18.1 0600: 1022:1301
00:18.2 0600: 1022:1302
00:18.3 0600: 1022:1303
00:18.4 0600: 1022:1304
01:05.0 0300: 1002:9612
02:00.0 0300: 1002:95c4
02:00.1 0403: 1002:aa28
03:00.0 0280: 168c:002a (rev 01)
04:00.0 0200: 10ec:8168 (rev 02)
08:01.0 0c00: 1180:0832 (rev 05)
08:01.1 0805: 1180:0822 (rev 22)
08:01.2 0880: 1180:0592 (rev 12)
08:01.3 0880: 1180:0852 (rev 12)

ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:23:54:13:a5:2d  
          inet adr:192.168.1.51  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::223:54ff:fe13:a52d/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1426 errors:0 dropped:133690054640 overruns:0 frame:0
          TX packets:1467 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:1143377 (1.0 MiB)  TX bytes:260381 (254.2 KiB)
          Interruption:251 

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          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 lg file transmission:0 
          RX bytes:280 (280.0 B)  TX bytes:280 (280.0 B)

dmesg | grep ath:

[    1.479409] eth0: RTL8168c/8111c at 0xffffc20001010000, 00:23:54:13:a5:2d, XID 3c4000c0 IRQ 1275
[    5.726202] Driver 'sd' needs updating - please use bus_type methods
[    5.726814]  sda:<4>Driver 'sr' needs updating - please use bus_type methods
[   21.960652] r8169: eth0: link up
[   21.963102] r8169: eth0: link up
[   27.535703] r8169: eth0: link up
[   38.008457] eth0: no IPv6 routers present
[  406.636643] r8169: eth0: link up
[  407.789396] r8169: eth0: link up
[  418.366081] eth0: no IPv6 routers present

rmmod wlan_scan_sta ath_pci ath_rate_sample wlan ath_hal wlan_scan_ap:

ERROR: Module wlan_scan_sta does not exist in /proc/modules
ERROR: Module ath_rate_sample does not exist in /proc/modules
ERROR: Module wlan_scan_ap does not exist in /proc/modules

modprobe ath_pci autocreate=none:

$

wlanconfig ath0 create wlandev wifi0 wlanmode managed:

ifconfig ath0 up:

lsmod | grep ath

ath_pci 241600 0 wlan 223904 1 ath_pci ath_hal 334480 1 ath_pci

Je file quand même mon source.list:

#####################
## Depot Officiels ##
#####################

## Depot HTTP Testing ##
#deb http://ftp.fr.debian.org/debian/ testing main non-free contrib
deb http://security.debian.org/ testing/updates main contrib non-free

## Depot FTP testing ##
#deb ftp://ftp.fr.debian.org/debian/ testing main non-free contrib
deb ftp://ftp2.fr.debian.org/debian/ testing main non-free contrib

## Depot HTTP Unstable ##
#deb http://ftp.fr.debian.org/debian/ unstable main non-free contrib

## Depot FTP Unstable ##
#deb ftp://ftp.fr.debian.org/debian/ unstable main non-free contrib
deb ftp://ftp2.fr.debian.org/debian/ unstable main non-free contrib

## Experimental ##
#deb http://ftp.fr.debian.org/debian experimental main contrib non-free
#deb http://ftp2.fr.debian.org/debian experimental main contrib non-free

## Multimedia ##
deb http://www.debian-multimedia.org testing main

#######################
## Logiciels Tierces ##
#######################

## Compiz Fusion ##
#deb http://download.tuxfamily.org/shames/debian-lenny/desktopfx/unstable/ ./

## VLC ##
#deb http://download.videolan.org/pub/videolan/debian sid main

et mon preferences:

Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release a=unstable
Pin-Priority: 800

Package: *
Pin: release a=experimental
Pin-Priority: 500

Package: *
Pin: release a=multimedia
Pin-Priority: 300

ainsi que le noyau utilisé:

Linux asus-laptop 2.6.26-1-amd64 #1 SMP Sat Nov 8 18:25:23 UTC 2008 x86_64 GNU/Linux

La version installé est donc une testing installée à partir d’une netinstall.

Merci d’avance :wink:

Ben il te manque des modules pour le coup…

[quote]ERROR: Module wlan_scan_sta does not exist in /proc/modules
ERROR: Module ath_rate_sample does not exist in /proc/modules
ERROR: Module wlan_scan_ap does not exist in /proc/modules
[/quote]

Comment as tu installé le madwifi?

Bonsoir,

j’ai commencé par installer la version debian à la freestyle, mais au bout du compte, j’ai fini par l’installer avec la méthode kna sur ce post avec les explications données…

Je pense pas en etre loin mais ça me gonfle de pas y arriver…

Bonne nuit :slightly_smiling:

Vérifies la présence de ces modules et regardes dans dmesg si il y a une erreur au chargement…

A priori, maintenant ils sont chargés :question: :

root-# cat /proc/modules | grep wlan
wlan_scan_sta 17280 0 - Live 0xffffffffa066f000
wlan_scan_ap 13696 0 - Live 0xffffffffa066a000
wlan 223904 3 wlan_scan_sta,wlan_scan_ap,ath_pci, Live 0xffffffffa05a3000
root-# cat /proc/modules | grep ath 
ath_pci 241600 0 - Live 0xffffffffa062e000
ath_hal 334480 1 ath_pci, Live 0xffffffffa05db000 (P)
wlan 223904 3 wlan_scan_sta,wlan_scan_ap,ath_pci, Live 0xffffffffa05a3000

un modprobe de chacun ne retourne aucun erreur ce qui confirme qu’ils doivent être chargé.

Pour ce qui est du dmesg, je n’ai vu aucune erreur apparente. Par contre, à la fin j’ai trouvé ça:

[  388.523447] AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417)
[  610.253029] AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417)

qui semble être une liste des cartes prises en charge par madwifi.

Autre chose:

root-# cat /etc/modprobe.d/madwifi  
## ath5k (mac80211)
## Comment out the following line, and uncomment all of the
## madwifi modules below to use the athk module
blacklist ath5k

## madwifi (non-free)
#blacklist ath_hal
#blacklist ath_pci
#blacklist ath_rate_amrr
#blacklist ath_rate_onoe
#blacklist ath_rate_sample
#blacklist wlan
#blacklist wlan_acl
#blacklist wlan_ccmp
#blacklist wlan_scan_ap
#blacklist wlan_scan_sta
#blacklist wlan_tkip
#blacklist wlan_wep
#blacklist wlan_xauth

est-ce bon ? J’ai vu que les ath5k étaient plus anciens…

Merci :wink:

Bon bah j’ai trouvé :mrgreen: :mrgreen: .

Après avoir cherché toute l’après-midi, je suis tombé sur ce post qui est à la base fait pour ubuntu. J’ai donc téléchargé ce fichier, puis executé (sh) et enfin installé (dpkg --install). On rajoute ath9k à la fin du fichier /etc/modules, on reboot, et le tour est joué :laughing: . Me demandez pas pourquoi ni comment mais ça marche.

Bonne fin de w-e @ tous.

Edit: bon je suis pas vraiment sur sur du truc. Avec aircrack-ng je peux voir quel chipset et quel driver j’utilise. Normalement je devrais avoir un truc comme:

Interface       Chipset         Driver

wlan0                   Atheros  madwifi-ng
mon0                    Atheros  madwifi-ng

mais dans mon cas:

Interface       Chipset         Driver

wlan0                   ath9k - [phy0]
mon0                    ath9k - [phy0]
mon1                    ath9k - [phy0]
mon2                    ath9k - [phy0]

est-ce normal ?

Merci.

Bon bah en fait c’était du bluff :cry:

Impossible de se connecter en wifi. Par contre j’arrive bien à voir tous les réseaux disponibles et à faire de l’audit avec airmon mais ensuite…

Si quelqu’un à une idée je suis preneur.
Sinon est-il possible que ma carte wifi ne soit pas prise en charge…?

Merci. :wink:

Qu’as tu fait pour te connecter en WIFI??

J’utilise wicd en me connectant avec ma freebox. Suivant le “Pilote WPA Supplicant” j’arrive à différentes choses: soit il n’arrive tout simplement pas à se connecter, soit c’est interminable soit j’arrive à me connecter (cas "ralink legacy :question: ) mais il me dit que j’ai une puissance nulle et donc n’accède pas au net. Penses-tu que la méthode que j’ai utilisée soit bonne ou peut-être est-ce du à la version 64 que j’utilise ou…?

Edit: je viens de regarder pour charger des modules (modprobe) et dans la liste des choix pour ath je n’ai que:

ath5k              ath_pci            ath_rate_minstrel  ath_rate_sample    
ath_hal            ath_rate_amrr      ath_rate_onoe

mais aucune trace des ath9k (je précise que j’ai désinstallé le paquet fabriqué à l’aide de la méthode précédente et réinstallé madwifi à l’aide de module-assistant).

Edit2: je viens de voir qu’apparement ma carte Atheros AR9280 ne serait compatible qu’à partir du noyau 2.6.28 or j’en suis qu’au 2.6.26. Ca pourrait venir de là ?

[quote=“snacksou”]J’utilise wicd en me connectant avec ma freebox. Suivant le “Pilote WPA Supplicant” j’arrive à différentes choses: soit il n’arrive tout simplement pas à se connecter, soit c’est interminable soit j’arrive à me connecter (cas "ralink legacy :question: ) mais il me dit que j’ai une puissance nulle et donc n’accède pas au net. Penses-tu que la méthode que j’ai utilisée soit bonne ou peut-être est-ce du à la version 64 que j’utilise ou…?

Edit: je viens de regarder pour charger des modules (modprobe) et dans la liste des choix pour ath je n’ai que:

ath5k              ath_pci            ath_rate_minstrel  ath_rate_sample    
ath_hal            ath_rate_amrr      ath_rate_onoe

mais aucune trace des ath9k (je précise que j’ai désinstallé le paquet fabriqué à l’aide de la méthode précédente et réinstallé madwifi à l’aide de module-assistant).

Edit2: je viens de voir qu’apparement ma carte Atheros AR9280 ne serait compatible qu’à partir du noyau 2.6.28 or j’en suis qu’au 2.6.26. Ca pourrait venir de là ?[/quote]
ath5k est le premier module atheros, assez primaire, les autres viennent de madwifi. Pourquoi as tu viré ath9k?

Bah d’une ça ne fonctionnait qu’en partie et puis l’impression d’avoir installé un truc bâtard prévu à l’origine pour ubuntu et installé sur une debian. Et puis le fait que ça m’affiche des trucs bizarre sous airmon. Mais je peux toujours le réinstaller, mon paquet est toujours là au cas ou… Veux-tu que je le réinstalle ?

Re à tous,

bon après avoir bien galérer, j’ai réussi à installer les drivers ath9k sous ma debian. Mais je n’arrive toujours pas (comme la dernière fois) à me connecter. Voilà le résultat des différentes commandes:

iwconfig:

lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"Hysteresis"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lshw -C network:

*-network               
       description: Wireless interface
       product: AR928X Wireless Network Adapter (PCI-Express)
       vendor: Atheros Communications Inc.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wmaster0
       version: 01
       serial: 00:22:43:1c:80:1f
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list logical ethernet physical wireless
       configuration: broadcast=yes driver=ath9k latency=0 module=ath9k multicast=yes wireless=IEEE 802.11bgn
  *-network
       description: Ethernet interface
       product: RTL8111/8168B PCI Express Gigabit Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 02
       serial: 00:23:54:13:a5:2d
       size: 100MB/s
       capacity: 1GB/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.2LK-NAPI duplex=full ip=192.168.69.51 latency=0 link=yes module=r8169 multicast=yes port=twisted pair speed=100MB/s

lsmod | grep ath:

ath9k                 244152  0 
mac80211              167344  1 ath9k
led_class               8968  1 ath9k

et enfin dmesg(après un dmesg -c) toujours avec wicd et le"Pilot WPA supplicant" sur “wext”:

[ 1032.991382] ForceXPAon: 0
[ 1033.181390] ForceXPAon: 0
[ 1033.428531] ForceXPAon: 0
[ 1033.430591] wlan0: privacy configuration mismatch and mixed-cell disabled - disassociate
[ 1069.356396] ForceXPAon: 0
[ 1069.383641] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1069.805613] ForceXPAon: 0
[ 1069.995311] ForceXPAon: 0
[ 1070.241604] ForceXPAon: 0
[ 1070.243655] wlan0: authenticate with AP xxx
[ 1070.250601] ForceXPAon: 0
[ 1070.259782] wlan0: authenticate with AP xxx
[ 1070.462509] wlan0: authenticate with AP xxx
[ 1070.662708] wlan0: authenticate with AP xxx
[ 1070.862511] wlan0: authentication with AP xxx timed out
[ 1080.535770] ForceXPAon: 0
[ 1080.724793] ForceXPAon: 0
[ 1080.971244] ForceXPAon: 0
[ 1080.973311] wlan0: authenticate with AP xxx
[ 1080.979812] ForceXPAon: 0
[ 1080.981686] wlan0: authenticate with AP xxx
[ 1081.182968] wlan0: authenticate with AP xxx
[ 1081.383477] wlan0: authenticate with AP xxx
[ 1081.583077] wlan0: authentication with AP xxx timed out
[ 1091.266886] ForceXPAon: 0
[ 1091.455102] ForceXPAon: 0
[ 1091.703655] ForceXPAon: 0
[ 1091.705710] wlan0: authenticate with AP xxx
[ 1091.905723] wlan0: authenticate with AP xxx
[ 1092.106740] wlan0: authenticate with AP xxx
[ 1092.307615] wlan0: authentication with AP xxx timed out

on dirait visiblement un problème d’authentification. Auriez-vous une piste ?

Thks :wink:

Edit: j’arrive à m’associer à ma box:

#iwconfig wlan0 essid "hysteresis"
#iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"hysteresis"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=27 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

mais pour le dhcp (qui est activé sur ma box):

#dhclient wlan0
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:22:43:1c:80:1f
Sending on   LPF/wlan0/00:22:43:1c:80:1f
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
....

Bon, je suis enfin arrivé à mes fins en compilant le kernel 2.6.27.7 avec les drivers ath9k en modules :mrgreen: :mrgreen: . Voilà, après 2 semaines de galères, je suis enfin libre 8).

Malheureusement pour moi j’ai encore quelques petits soucis de configurations sans rapport avec le wifi donc celles-ci feront l’objet d’un prochain post.

@+

salut,

j’ai le meme probleme que tu as eu mais avec un studio xps.
enfin j’ai exactement la meme carte que toi.

donc tu dis qu’il suffit que je passe a un noyau >= 2.6.27 et que fasse un modprobe ath9k (qui est si j’ai compris, de base dans ce noyau) et ca va marcher.
c’est ca ?