Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223231 - net-wireless/wpa_supplicant fails to connect with certain drivers (ex: iwlwifi) with sys-apps/openrc
Summary: net-wireless/wpa_supplicant fails to connect with certain drivers (ex: iwlwif...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-22 16:41 UTC by Nicola
Modified: 2008-10-07 15:27 UTC (History)
3 users (show)

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


Attachments
Apply defaults and user config. (iwconfig.patch,535 bytes, patch)
2008-05-25 22:49 UTC, Roy Marples
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola 2008-05-22 16:41:31 UTC
Updating from baselayout-1.12 to baselayout-2 & openrc, wpa_supplicant stopped working on my 4965AGN (using iwlwifi).

Comparing the previous code of the function "wpa_supplicant_pre_Start()" in /lib/rc/net/wpa_supplicant.sh, and the new one from openrc... i discovered that the old one used 

iwconfig_defaults "${iface}"
iwconfig_user_config "${iface}"

somewhere, after the line:

ebegin "Starting wpa_supplicant on ${IFVAR}"

because some drivers don't start in "managed" mode.


Adding these 2 lines like this:

	if [ -x /sbin/iwconfig ]; then
		local x=
		for x in txpower rate rts frag; do
			iwconfig "${IFACE}" "${x}" auto 2>/dev/null
		done
+		iwconfig_defaults "${IFACE}"
+		iwconfig_user_config "${IFACE}"
	fi

resolves the issue.

please Roy add it! :-)

Reproducible: Always

Steps to Reproduce:
Comment 1 Roy Marples 2008-05-25 22:49:58 UTC
Created attachment 154303 [details, diff]
Apply defaults and user config.

Try this patch instead.
Comment 2 Nicola 2008-05-26 17:18:46 UTC
ok it works! :-)

thank's roy.

it just remains http://bugs.gentoo.org/show_bug.cgi?id=217992 but i think it's driver related and not openrc related.

so i will mark it as fixed.
Thank's again! Bye!
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2008-05-27 13:21:32 UTC
Well do not close bugs until they are fixed in the tree. Thanks.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2008-10-07 15:27:22 UTC
Fixed in 0.3.0.