Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163319 - net-wireless/wpa_supplicant-0.5.7 enters infinite loop
Summary: net-wireless/wpa_supplicant-0.5.7 enters infinite loop
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-22 20:29 UTC by Vladimir Pouzanov
Modified: 2007-04-10 20:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,8.21 KB, text/plain)
2007-01-24 11:46 UTC, Vladimir Pouzanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Pouzanov 2007-01-22 20:29:39 UTC
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:
Comment 1 Vladimir Pouzanov 2007-01-22 20:31:18 UTC
$ 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
}
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-24 08:01:04 UTC
wpa_supplicant version? emerge --info?
Comment 3 Vladimir Pouzanov 2007-01-24 11:46:57 UTC
Created attachment 108013 [details]
emerge --info
Comment 4 Vladimir Pouzanov 2007-01-24 11:48:24 UTC
net-wireless/wpa_supplicant-0.5.7, emerge --info attache
Comment 5 Vladimir Pouzanov 2007-01-24 11:49:10 UTC
net-wireless/wpa_supplicant-0.5.7, emerge --info attached
Comment 6 Roy Marples (RETIRED) gentoo-dev 2007-01-24 12:20:29 UTC
wpa_supplicant is doing it's job as the ath0 interface is reporting a disconnect.
Comment 7 Vladimir Pouzanov 2007-01-24 17:45:13 UTC
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
Comment 8 Vladimir Pouzanov 2007-04-10 20:53:24 UTC
Can't reproduce it anymore.