Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152369 - 4.b. WPA Supplicant wrong place of wpa_supplicant.conf
Summary: 4.b. WPA Supplicant wrong place of wpa_supplicant.conf
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-22 06:15 UTC by schitthoch2
Modified: 2006-10-22 16:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description schitthoch2 2006-10-22 06:15:42 UTC
Hi
In the docs under 4.b. WPA Supplicant of http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1
there is a tiny error:

Code Listing 2: configure /etc/conf.d/net for wpa_supplicant
Zitat:

# It's important that we tell wpa_supplicant which driver we should
# be using as it's not very good at guessing yet
wpa_supplicant_eth0="-Dmadwifi"

but it should be
wpa_supplicant_eth0="-Dmadwifi -c/etc/wpa_supplicant.conf"

because without this option wpa_supplicant uses /etc/wpa_supplicant/wpa_supplicant.conf, and further down it describes the configuration of /etc/wpa_supplicant.conf
Zitat:
Code Listing 3: an example /etc/wpa_supplicant.conf


so starting /etc/init.d/net.ath0 gets wrong (if there is a /etc/wpa_supplicant/wpa_supplicant.conf ) or no information (if there is only the afterwards created /etc/wpa_supplicant.conf) about the AP's

---------------

Furthermore it COULD be that if you use http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1
--> Configuring your Network
under
Zitat:

Manually setting IP information for eth0
config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" )
routes_eth0=( "default gw 192.168.0.1" )


brd should be broadcast. I had brd for my wireless (ath0) and I THINK it didn't work for a static IP until i changed it to broadcast ...

it did work for my ethernet (eth0) with brd though ...
Comment 1 nm (RETIRED) gentoo-dev 2006-10-22 16:26:20 UTC
Wrong, that is not how you're supposed to setup conf.d/net; you don't specify the commandline options like that in the file.

Also, wpa_supplicant looks in both /etc/wpa_supplicant/ and in /etc, so there's no need to prefer one over the other. The given example is fine the way it is.