Debian Jessie - Partager sa connexion filaire en WIFI (hotspot)

Tags: #<Tag:0x00007f50b24e9f80> #<Tag:0x00007f50b24e9c10>

Bonjour à tous,

Mon PC tourne sous Debian 8 Jessie, Gnome 3.14.1.

Je précise tout d’abord que ce problème a déjà été rapporté au moins deux fois sur ce forum, mais aucune solution claire n’a été proposée.

Je rencontre un problème avec l’option “Utiliser comme point d’accès…” dans les paramètres du Network Manager de Debian Jessie - sous Gnome : je ne peux choisir aucune option, et lorsque je l’allume, il s’active avant de se désactiver automatiquement quelques secondes plus tard.

Cela est d’autant plus troublant que cette procédure fonctionnait parfaitement sous Debian Wheezy, avec exactement la même configuration matérielle et réseau - à partir de Network Manager !

_

Voici quelques précisions sur le matériel :

$ lspci -v 04:00.0 Network controller: Intel Corporation WiFi Link 5100 Subsystem: Intel Corporation WiFi Link 5100 AGN Flags: bus master, fast devsel, latency 0, IRQ 46 Memory at f8000000 (64-bit, non-prefetchable) [size=8K] Capabilities: <access denied> Kernel driver in use: iwlwifi 08:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5784M Gigabit Ethernet PCIe (rev 10) Subsystem: Dell Device 02be Flags: bus master, fast devsel, latency 0, IRQ 50 Memory at fc100000 (64-bit, non-prefetchable) [size=64K] Capabilities: <access denied> Kernel driver in use: tg3

$ dmesg | grep iwlwifi [ 5.672325] iwlwifi 0000:04:00.0: can't disable ASPM; OS doesn't have ASPM control [ 5.672445] iwlwifi 0000:04:00.0: irq 46 for MSI/MSI-X [ 5.724000] iwlwifi 0000:04:00.0: firmware: direct-loading firmware iwlwifi-5000-5.ucode [ 5.724163] iwlwifi 0000:04:00.0: loaded firmware version 8.83.5.1 build 33692 op_mode iwldvm [ 5.746862] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUG disabled [ 5.746866] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEBUGFS disabled [ 5.746868] iwlwifi 0000:04:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled [ 5.746871] iwlwifi 0000:04:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54 [ 5.746968] iwlwifi 0000:04:00.0: L1 Enabled - LTR Disabled [ 849.703485] iwlwifi 0000:04:00.0: L1 Enabled - LTR Disabled [ 849.706558] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0 [ 849.807388] iwlwifi 0000:04:00.0: L1 Enabled - LTR Disabled [ 849.810746] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0 [ 5032.016488] iwlwifi 0000:04:00.0: L1 Enabled - LTR Disabled [ 5032.019762] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0 [ 5032.119703] iwlwifi 0000:04:00.0: L1 Enabled - LTR Disabled [ 5032.123096] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0

Et sur ma connexion :

# ifconfig eth0 Link encap:Ethernet HWaddr 00:26:b9:13:20:e9 inet adr:81.66.63.47 Bcast:81.66.63.255 Masque:255.255.254.0 adr inet6: fe80::226:b9ff:fe13:20e9/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:341777 errors:0 dropped:0 overruns:0 frame:0 TX packets:131801 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:292448405 (278.9 MiB) TX bytes:10506695 (10.0 MiB) Interruption:17 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:75 errors:0 dropped:0 overruns:0 frame:0 TX packets:75 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:16303 (15.9 KiB) TX bytes:16303 (15.9 KiB)

_

Je joins également le log du système :

May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) starting connection 'Hotspot' May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0] May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete. May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0] May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0/wireless): access point 'Hotspot' has security, but secrets are required. May 28 20:18:11 HELLCORP NetworkManager[480]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0] May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete. May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0] May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete. May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting... May 28 20:18:11 HELLCORP NetworkManager[480]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0] May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0/wireless): connection 'Hotspot' has security, and secrets exist. No new secrets needed. May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Config: added 'ssid' value 'HELLCORP' May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Config: added 'mode' value '1' May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Config: added 'frequency' value '2412' May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Config: added 'key_mgmt' value 'NONE' May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Config: added 'wep_key0' value '<omitted>' May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Config: added 'wep_tx_keyidx' value '0' May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete. May 28 20:18:11 HELLCORP NetworkManager[480]: <info> Config: set interface ap_scan to 2 May 28 20:18:11 HELLCORP wpa_supplicant[1124]: wlan0: Trying to associate with SSID 'HELLCORP' May 28 20:18:11 HELLCORP wpa_supplicant[1124]: wlan0: Association request to the driver failed May 28 20:18:11 HELLCORP NetworkManager[480]: <info> (wlan0): supplicant interface state: inactive -> disconnected May 28 20:18:11 HELLCORP wpa_supplicant[1124]: wlan0: Trying to associate with SSID 'HELLCORP' May 28 20:18:11 HELLCORP wpa_supplicant[1124]: wlan0: Association request to the driver failed May 28 20:18:11 HELLCORP wpa_supplicant[1124]: wlan0: Trying to associate with SSID 'HELLCORP' May 28 20:18:11 HELLCORP wpa_supplicant[1124]: wlan0: Association request to the driver failed May 28 20:18:12 HELLCORP wpa_supplicant[1124]: wlan0: Trying to associate with SSID 'HELLCORP' May 28 20:18:12 HELLCORP wpa_supplicant[1124]: wlan0: Association request to the driver failed May 28 20:18:12 HELLCORP wpa_supplicant[1124]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="HELLCORP" auth_failures=1 duration=10 reason=CONN_FAILED May 28 20:18:17 HELLCORP wpa_supplicant[1124]: wlan0: Trying to associate with SSID 'HELLCORP' May 28 20:18:17 HELLCORP wpa_supplicant[1124]: wlan0: Association request to the driver failed May 28 20:18:17 HELLCORP wpa_supplicant[1124]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="HELLCORP" auth_failures=2 duration=20 reason=CONN_FAILED May 28 20:18:27 HELLCORP wpa_supplicant[1124]: wlan0: Trying to associate with SSID 'HELLCORP' May 28 20:18:27 HELLCORP wpa_supplicant[1124]: wlan0: Association request to the driver failed May 28 20:18:27 HELLCORP wpa_supplicant[1124]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="HELLCORP" auth_failures=3 duration=30 reason=CONN_FAILED May 28 20:18:35 HELLCORP NetworkManager[480]: <warn> Activation (wlan0/wireless): Ad-Hoc network creation took too long, failing activation. May 28 20:18:35 HELLCORP NetworkManager[480]: <info> (wlan0): device state change: config -> failed (reason 'supplicant-timeout') [50 120 11] May 28 20:18:35 HELLCORP NetworkManager[480]: <warn> Activation (wlan0) failed for connection 'Hotspot' May 28 20:18:35 HELLCORP NetworkManager[480]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0] May 28 20:18:35 HELLCORP NetworkManager[480]: <info> (wlan0): deactivating device (reason 'none') [0] May 28 20:18:35 HELLCORP kernel: [ 7845.011810] iwlwifi 0000:04:00.0: L1 Enabled - LTR Disabled May 28 20:18:35 HELLCORP kernel: [ 7845.015040] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0 May 28 20:18:35 HELLCORP kernel: [ 7845.116458] iwlwifi 0000:04:00.0: L1 Enabled - LTR Disabled May 28 20:18:35 HELLCORP kernel: [ 7845.119586] iwlwifi 0000:04:00.0: Radio type=0x1-0x2-0x0 May 28 20:18:36 HELLCORP kernel: [ 7845.148654] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready May 28 20:18:36 HELLCORP NetworkManager[480]: <info> (wlan0): supplicant interface state: disconnected -> disabled May 28 20:18:36 HELLCORP NetworkManager[480]: <info> (wlan0): supplicant interface state: disabled -> inactive May 28 20:18:38 HELLCORP wpa_supplicant[1124]: wlan0: Reject scan trigger since one is already pending May 28 20:18:38 HELLCORP NetworkManager[480]: <warn> Could not get scan request result: Scan request rejected May 28 20:18:46 HELLCORP gnome-session[899]: (gnome-control-center:2742): network-cc-panel-WARNING **: Could not stop hotspot connection as no connection attached to the device could be found.

Voilà, n’hésitez pas si vous avez des idées !

Merci par avance.

Lance la commande iw phy phy0 info. Dans les premières lignes, tu dois trouver quelque chose du genre :
Supported interface modes: * IBSS * managed * monitor
Par exemple, cette carte wifi ne peut que faire du ad-hoc (IBSS), se connecter à un point d’accès (managed) et capturer le trafic du réseau (monitor).
Pour faire un point d’accès avec une carte wifi, il faut que la carte wifi et le pilote associé gèrent le mode. Je ne me souvient plus comment s’appelle le mode pour le wifi.