Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
madwifi / wpa_supplicant crashing on shutdown
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ralle
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 144
Location: Aachen, Germany

PostPosted: Sat Jun 18, 2005 3:03 pm    Post subject: madwifi / wpa_supplicant crashing on shutdown Reply with quote

Hello!

Today I switched my WLAN from WEP to WPA. That was the easy part! Now comes the problem: Each time I shut down my computer, the system will freeze as soon as Gentoo tries to stop my ath0.

The same thing happens when I do a
Code:
/etc/init.d/net.ath0 stop


This behaviour is independant from the way how the interface receives its ip, I tried dhcpcd, udhcpc and static adressing, all the same.

To say again: Everything worked fine when I was still using WEP and madwifi, and everything is working fine now I'm using WPA and madwifi, EXCEPT the whole machine crashes if I attempt to shutdown the ath0 interface. And that's getting on my nerves.

My configuration data:

Code:

[ebuild   R   ] net-wireless/wpa_supplicant-0.3.8  -gsm +readline +ssl 0 kB
[ebuild   R   ] sys-apps/baselayout-1.11.12-r4  -bootstrap -build -debug -static +unicode 0 kB
[ebuild   R   ] net-wireless/madwifi-driver-0.1_pre20050420  0 kB
[ebuild   R   ] net-wireless/madwifi-tools-0.1_pre20050420  0 kB



/etc/conf.d/net
Code:

...
iface_ath0="dhcp"
dhcpcd_ath0="-N"
modules=( "wpa_supplicant" "!iwconfig" )
wpa_supplicant_ath0="-Dmadwifi"
wpa_timeout_ath0=60
...


/etc/conf.d/wpa_supplicant
Code:

# List of interfaces
INTERFACES="ath0"
# Common arguments to all wpa_supplicant instances
ARGS="-w"


/etc/wpa_supplicant.conf
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
fast_reauth=1
network={
        ssid="secret"
        proto=WPA
        key_mgmt=WPA-PSK
        psk="reallysecret"
}


So if anyone could help me with this thing, I would be very thankful.
--
So long

EDIT: Oops, I overlooked this thread. Still does not seem to be resolved...
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Sun Jun 19, 2005 7:23 am    Post subject: Re: madwifi / wpa_supplicant crashing on shutdown Reply with quote

ralle wrote:
Hello!

Today I switched my WLAN from WEP to WPA. That was the easy part! Now comes the problem: Each time I shut down my computer, the system will freeze as soon as Gentoo tries to stop my ath0.

The same thing happens when I do a
Code:
/etc/init.d/net.ath0 stop


This behaviour is independant from the way how the interface receives its ip, I tried dhcpcd, udhcpc and static adressing, all the same.

To say again: Everything worked fine when I was still using WEP and madwifi, and everything is working fine now I'm using WPA and madwifi, EXCEPT the whole machine crashes if I attempt to shutdown the ath0 interface. And that's getting on my nerves.

My configuration data:

Code:

[ebuild   R   ] net-wireless/wpa_supplicant-0.3.8  -gsm +readline +ssl 0 kB
[ebuild   R   ] sys-apps/baselayout-1.11.12-r4  -bootstrap -build -debug -static +unicode 0 kB
[ebuild   R   ] net-wireless/madwifi-driver-0.1_pre20050420  0 kB
[ebuild   R   ] net-wireless/madwifi-tools-0.1_pre20050420  0 kB



/etc/conf.d/net
Code:

...
iface_ath0="dhcp"
dhcpcd_ath0="-N"
modules=( "wpa_supplicant" "!iwconfig" )
wpa_supplicant_ath0="-Dmadwifi"
wpa_timeout_ath0=60
...


/etc/conf.d/wpa_supplicant
Code:

# List of interfaces
INTERFACES="ath0"
# Common arguments to all wpa_supplicant instances
ARGS="-w"


/etc/wpa_supplicant.conf
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
fast_reauth=1
network={
        ssid="secret"
        proto=WPA
        key_mgmt=WPA-PSK
        psk="reallysecret"
}


So if anyone could help me with this thing, I would be very thankful.
--
So long

EDIT: Oops, I overlooked this thread. Still does not seem to be resolved...


Try this:

Code:
rc-update del wpa_supplicant


You don't need to load it during start up, net will do it for you (usually, I have problem with this once in a while, seems to be related to parallel startup).

Also, I'm running 0.4.2 of wpa_supplicant and it works great (except for one apparently bogus IOCTL warning message). You could try emerging the "unstable" version of it.

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
ralle
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 144
Location: Aachen, Germany

PostPosted: Sun Jun 19, 2005 10:45 am    Post subject: Reply with quote

@RayDude:

Thanks for the hint, but I never added wpa_supplicant to any runlevel. I will try to use the unstable version as soon as I come home and report back if it works.
Back to top
View user's profile Send private message
ralle
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 144
Location: Aachen, Germany

PostPosted: Sun Jun 19, 2005 12:13 pm    Post subject: Reply with quote

The new version did not make any difference, but your hint helped me work around this somehow:

It seems that wpa_supplicant has to be shut down manually before stopping net.ath0. So I added:
Code:

killall wpa_supplicant

to my /etc/conf.d/local.stop, so I can shut down my computer without trouble.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2119
Location: San Jose, CA

PostPosted: Sun Jun 19, 2005 6:02 pm    Post subject: Reply with quote

ralle wrote:
The new version did not make any difference, but your hint helped me work around this somehow:

It seems that wpa_supplicant has to be shut down manually before stopping net.ath0. So I added:
Code:

killall wpa_supplicant

to my /etc/conf.d/local.stop, so I can shut down my computer without trouble.


Wow. I don't have that trouble... I wonder what the difference is?

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
djnauk
Apprentice
Apprentice


Joined: 11 Feb 2003
Posts: 183
Location: Caerphilly, Wales, UK

PostPosted: Tue Aug 23, 2005 11:24 am    Post subject: Reply with quote

ralle wrote:
The new version did not make any difference, but your hint helped me work around this somehow:

It seems that wpa_supplicant has to be shut down manually before stopping net.ath0. So I added:
Code:

killall wpa_supplicant

to my /etc/conf.d/local.stop, so I can shut down my computer without trouble.


I had the same problem myself, even with the new wpa_supplicant. However, probably the better option would be to setup a predown function within /etc/conf.d/net:

Code:
predown() {
        if [ "${IFACE}" == "ath0" ]; then
                killall wpa_supplicant
        fi

        return 0
}


Works great now! :) Many thanks.
_________________
Jonathan Wright (Technical Director, JAB Web Solutions)

UK Hosting & Reseller Hosting from JAB Web Solutions
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum