Bonjour à tous,
Je viens de m’acheter une carte wifi Alfa AWUS036H et j’essai de la faire fonctionner sous debian jessie.
$ sudo uname -a
Linux PC325 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
L’interface est bien détectée par NetworkManager, le scan fonctionne car je détecte beaucoup plus de réseaux.
Le problème est au niveau de la connection, j’ai toujours un timeout sur l’authentification.
Ca ne viens pas du mot de passe car j’essai d’accéder à une connection ouverte sur mon téléphone portable.
Voici quelques retour de commandes.
$ sudo ifconfig
eth3 Link encap:Ethernet HWaddr 00:21:9b:66:28:5f
inet adr:192.168.128.181 Bcast:192.168.128.255 Masque:255.255.255.0
adr inet6: fe80::221:9bff:fe66:285f/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19225 errors:0 dropped:0 overruns:0 frame:0
TX packets:4010 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:4631500 (4.4 MiB) TX bytes:565713 (552.4 KiB)
Interruption:16
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:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:960 (960.0 B) TX bytes:960 (960.0 B)
wlan1 Link encap:Ethernet HWaddr 00:c0:ca:84:f6:93
UP 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 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
iwconfig
$ sudo iwconfig
lo no wireless extensions.
eth3 no wireless extensions.
wlan1 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
lsusb
$ lsusb
Bus 005 Device 006: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard
Bus 003 Device 002: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
lshw
$ sudo lshw -C network
*-network
description: Ethernet interface
produit: NetLink BCM5784M Gigabit Ethernet PCIe
fabriquant: Broadcom Corporation
identifiant matériel: 0
information bus: pci@0000:02:00.0
nom logique: eth3
version: 10
numéro de série: 00:21:9b:66:28:5f
taille: 1Gbit/s
capacité: 1Gbit/s
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=sb v2.19 ip=192.168.128.181 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
ressources: irq:44 mémoire:dfbf0000-dfbfffff
*-usb
description: Interface réseau sans fil
produit: RTL8187_Wireless
fabriquant: Manufacturer_Realtek_RTL8187_
identifiant matériel: 8
information bus: usb@5:8
nom logique: wlan1
version: 1.00
numéro de série: 00C0CA84F693
fonctionnalités: usb-2.00 ethernet physical wireless
configuration: broadcast=yes driver=rtl8187 driverversion=3.16.0-4-amd64 firmware=N/A link=no maxpower=500mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11bg
Le driver à l’air de fonctionner et d’être bien associé à mon interface wlan1 pourtant dès que je tente de me connecter à un réseau, cela fini par un timeout et pas de connection.
Retour du syslog
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1) starting connection 'AndroidHotspot5787'
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) scheduled...
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) started...
May 5 14:53:55 PC325 NetworkManager[443]: <info> (wlan1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) scheduled...
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) complete.
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) starting...
May 5 14:53:55 PC325 NetworkManager[443]: <info> (wlan1): device state change: prepare -> config (reason 'none') [40 50 0]
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1/wireless): connection 'AndroidHotspot5787' requires no security. No secrets needed.
May 5 14:53:55 PC325 NetworkManager[443]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) complete.
May 5 14:53:55 PC325 NetworkManager[443]: <info> (wlan1): supplicant interface state: inactive -> scanning
May 5 14:54:20 PC325 NetworkManager[443]: <warn> Activation (wlan1/wireless): association took too long, failing activation.
May 5 14:54:20 PC325 NetworkManager[443]: <info> (wlan1): device state change: config -> failed (reason 'ssid-not-found') [50 120 53]
May 5 14:54:20 PC325 NetworkManager[443]: <warn> Activation (wlan1) failed for connection 'AndroidHotspot5787'
May 5 14:54:20 PC325 NetworkManager[443]: <info> (wlan1): device state change: failed -> disconnected (reason 'none') [120 30 0]
May 5 14:54:20 PC325 NetworkManager[443]: <info> (wlan1): deactivating device (reason 'none') [0]
May 5 14:54:20 PC325 NetworkManager[443]: <info> (wlan1): supplicant interface state: scanning -> disconnected
Retour de dmesg
[ 106.500514] wlan1: authenticate with 24:0a:c4:00:6e:bb
[ 106.709570] wlan1: send auth to 24:0a:c4:00:6e:bb (try 1/3)
[ 106.912015] wlan1: send auth to 24:0a:c4:00:6e:bb (try 2/3)
[ 107.116024] wlan1: send auth to 24:0a:c4:00:6e:bb (try 3/3)
[ 107.320012] wlan1: authentication with 24:0a:c4:00:6e:bb timed out
[ 110.068452] wlan1: authenticate with 24:0a:c4:00:6e:bb
[ 110.277569] wlan1: send auth to 24:0a:c4:00:6e:bb (try 1/3)
[ 110.480028] wlan1: send auth to 24:0a:c4:00:6e:bb (try 2/3)
[ 110.684032] wlan1: send auth to 24:0a:c4:00:6e:bb (try 3/3)
[ 110.888019] wlan1: authentication with 24:0a:c4:00:6e:bb timed out
J’ai aussi essayé avec des réseaux chiffrés par wpa mais même résultat.
J’ai beau avoir cherché, je ne voit pas d’où ça pourrait venir et j’ai pas trop envie d’aller bidouiller les configuration des drivers histoire de pas plus foutre de bordel ^^ .
Merci d’avance