I have a problem with restarting wlan interface using wpa_supplicant module. First start seems to pass ok, but as soon as I issue /etc/init.d/net.ath0 restart I can't make it work anymore. First run: Jan 22 22:22:53 unicorn sudo: farcaller : TTY=pts/3 ; PWD=/home/farcaller ; USER=root ; COMMAND=/etc/init.d/net.ath0 start Jan 22 22:22:55 unicorn rc-scripts: WARNING: net.ath0 has started but is inactive Jan 22 22:22:55 unicorn wpa_cli: interface ath0 CONNECTED Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: dhcpcd 3.0.9 starting Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: ethernet address = 0:15:af:9:20:41 Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: broadcasting for a lease Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: offered lease of 192.168.0.7 Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: no renewal time supplied, assuming 302400 seconds Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: no rebind time supplied, assuming 529200 seconds Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: leased 192.168.0.7 for 604800 seconds Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: adding IP address 192.168.0.7 netmask 255.255.255.0 Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: adding route to 192.168.0.0 (255.255.255.0) via 0.0.0.0 metric 2000 Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: removing route to 192.168.0.0 (255.255.255.0) via 0.0.0.0 metric 0 Jan 22 22:22:57 unicorn dhcpcd[26077]: ath0: adding default route via 192.168.0.1 metric 2000 ath0 works, now restarting: Jan 22 22:24:19 unicorn sudo: farcaller : TTY=pts/3 ; PWD=/home/farcaller ; USER=root ; COMMAND=/etc/init.d/net.ath0 restart Jan 22 22:24:23 unicorn rc-scripts: WARNING: net.ath0 has started but is inactive Jan 22 22:24:56 unicorn wpa_cli: interface ath0 CONNECTED Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: dhcpcd 3.0.9 starting Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: ethernet address = 0:15:af:9:20:41 Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: broadcasting for a lease Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: offered lease of 192.168.0.7 Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: no renewal time supplied, assuming 302400 seconds Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: no rebind time supplied, assuming 529200 seconds Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: leased 192.168.0.7 for 604800 seconds Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: adding IP address 192.168.0.7 netmask 255.255.255.0 Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: adding route to 192.168.0.0 (255.255.255.0) via 0.0.0.0 metric 2000 Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: removing route to 192.168.0.0 (255.255.255.0) via 0.0.0.0 metric 0 Jan 22 22:24:57 unicorn dhcpcd[28389]: ath0: adding default route via 192.168.0.1 metric 2000 Jan 22 22:24:58 unicorn wpa_cli: interface ath0 DISCONNECTED Jan 22 22:24:59 unicorn dhcpcd[28390]: ath0: receieved SIGTERM, stopping Jan 22 22:24:59 unicorn dhcpcd[28390]: ath0: removing default route via 192.168.0.1 metric 2000 Jan 22 22:24:59 unicorn dhcpcd[28390]: ath0: deleting IP address 192.168.0.7 Jan 22 22:24:59 unicorn dhcpcd[28390]: ath0: truncated message Jan 22 22:24:59 unicorn dhcpcd[28390]: ath0: exiting .... (same lines looping forever) I can't stop it now using gentoo way: $ sudo /etc/init.d/net.ath0 stop * ERROR: net.ath0 is already stopping. Reproducible: Always Steps to Reproduce:
$ cat /etc/conf.d/wireless modules=( "wpa_supplicant" ) wpa_supplicant_ath0="-Dmadwifi" config_ath0=( "dhcp" ) $ cat /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant update_config=1 network={ ssid="test" psk="very big test key" proto=RSN priority=150 key_mgmt=WPA-PSK pairwise=CCMP }
wpa_supplicant version? emerge --info?
Created attachment 108013 [details] emerge --info
net-wireless/wpa_supplicant-0.5.7, emerge --info attache
net-wireless/wpa_supplicant-0.5.7, emerge --info attached
wpa_supplicant is doing it's job as the ath0 interface is reporting a disconnect.
isn't that strange for PCI card to report disconnection? And there's no such problem after booting, i.e. when net.ath0 starts up for first time, only restart causes this
Can't reproduce it anymore.