----- Original Message -----

> From: Mick <michaelkintz...@gmail.com>
> To: gentoo-user@lists.gentoo.org
> Cc: 
> Sent: Tuesday, September 6, 2011 5:32 PM
> Subject: Re: [gentoo-user] Wireless Configuration...
> 
> On Tuesday 06 Sep 2011 15:24:33 BRM wrote:
>>  ----- Original Message -----
>> 
>>  > From: Mick <michaelkintz...@gmail.com>
>>  > 
>>  > On Saturday 03 Sep 2011 15:14:27 BRM wrote:
>>  >>  ----- Original Message -----
> 
>>  > I think the above should be either:
>>  > 
>>  >   ctrl_interface=/var/run/wpa_supplicant
>>  >   ctrl_interface_group=wheel
>>  > 
>>  > or,
>>  > 
>>  >   DIR=/var/run/wpa_supplicant GROUP=wheel
>> 
>>  Ok. Corrected that to the first one.
> 
> Fine.  I note that you said the wpa_gui won't scan further down this thread, 
> 
> just in case ... is your user part of the wheel group?
> 
>>  >>  #ctrl_interface_group=wheel
>>  >>  ap_scan=1
>>  >>  fast_reauth=1
>>  >>  # This blank configuration will automatically use DHCP for any 
> net.*
>>  >>  # scripts in /etc/init.d.  To create a more complete 
> configuration,
>>  >>  # please review /etc/conf.d/net.example and save your 
> configuration
>>  >>  # in /etc/conf.d/net (this file :]!).
>>  >>  
>>  >>  # Standard Network:
>>  >>  config_eth0=( "dhcp" )
>>  > 
>>  > The old syntax you use here, which was ( "value" ) is now 
> deprecated. 
>>  > You
>>  > should replace all such entries by removing the brackets, e.g. the 
> above
>>  > becomes:
>>  > 
>>  > config_eth0="dhcp"
>>  > 
>>  > This is explained in: 
> http://www.gentoo.org/doc/en/openrc-migration.xml
>> 
>>  Corrected that one too. eth0 was working fine though.
> 
> Yes, because eth0 will default to dhcp, after the old syntax you were using 
> errors out or is ignored.
> 
> 
>>  > modules="wpa_supplicant"
>>  > wpa_supplicant_wlan0="-Dwext"
>>  > config_wlan0="dhcp"
>> 
>>  I re-enabled those and added the last line.
> 
> OK, wpa_supplicant should now work as intended.
> 
> 
>>  > You need to add or uncomment the following to your 
> wpa_supplicant.conf:
>>  > =====================
>>  > network={
>>  >         key_mgmt=NONE
>>  >         priority=0
>>  > }
>>  > =====================
>>  > The above will let latch on the first available AP.
>> 
>>  I wasn't sure that that one was for. I've re-enabled it and the 
> original
>>  one for my network. 
> 
> OK, this is useful for open AP which accept connections.  If they need 
> encryption you can add this using the wpa_gui.
> 
> 
>>  > Also, you can then add any AP of preference with passphrases and what
>>  > not: =====================
>>  > # Home Network
>>  > network={
>>  >       ssid="MY-NETWORK"
>>  > #      key_mgmt=IEEE8021X  <--You don't need these entries 
> here, unless
>>  > #      eap=TLS             <--you run SSL certs for authentication
>>  >       wep_key0=DEADBEAF0123456789ABCDEF000
>>  >       priority=1
>>  >       auth_alg=OPEN
>>  > }
>>  > =====================
>> 
>>  Interestingly, wpa_supplicant complains if those two lines are not there
>>  even though I am not doing SSL auth. 
> 
> Hmm ... what is the error/warning that comes up?

pneumo-martyr wpa_supplicant # /etc/init.d/net.wlan0 start  
 * Bringing up interface wlan0
 *   Starting wpa_supplicant on wlan0 ...
Line 17: WPA-PSK accepted for key management, but no PSK configured.
Line 17: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
 *   start-stop-daemon: failed to start 
`/usr/sbin/wpa_supplicant'                                                                      
 [ !! ]
 * ERROR: net.wlan0 failed to start


> Either way, can you please add:
> 
> eapol_version=1

Done.

>>  > and something like this for WPA2:
>>  > =====================
>>  > network={
>>  >         ssid="what-ever"
>>  >         proto=RSN
>>  >         key_mgmt=WPA-PSK
>>  >         pairwise=CCMP
>>  >         auth_alg=OPEN
>>  >         group=CCMP
>>  >         psk"pass_123456789"
>>  >         priority=5
>>  > =====================
>> 
>>  I want to try to get away from adding things directly to the
>>  wpa_supplicant.conf file as I would rather that the connection information
>>  be managed by a GUI tool. 
> 
> You should be able to add such details in the GUI of choice.  Adding them in 
> wpa_supplicant.conf means that they should appear already filled in the GUI.
> 
> 
>>  I'd rather use the NetworkManager in KDE than wpa_gui.
>> 
>>  That said, NetworkManager in KDE seems to be using wicd for some reason.
> 
> You need someone else to chime in here, because I use neither of these.  As 
> far as I read in this M/L wicd is more or less fool-proof.
> 
>>  I also have KDE running under Kubuntu on my work computer (4.6.2) and the
>>  Network Manager is completely different (don't know why) - it's not 
> wicd
>>  as far as I can tell.
>> 
>>  However, They are still not working. wpa_gui refuses to scan and find
>>  networks; while wicd is not finding networks either - but there's so
>>  little information in the GUI that it is practically useless to say why.
>>  Perhaps I've got something at the KDE layer screwed up?
> 
> I don't know if one is causing a clash with the other, so don't try to 
> use 
> both at the same time.  If wicd is started automatically when you boot/login, 
> then just use that.
> 
> When wpa_gui refuses to scan what message do you get?  What do the logs say.
> 
> Also, if wpa_gui or wicd fail to scan for APs what do you get from:
> 
> # iwlist wlan0 scanning

Simply returns:

wlan0            No scan results

It also returns "0". I have wlan0 logs directed to /var/log/net/wireless, 
here's the output from the last attempt:

Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): driver supports 
SSID scans (scan_capa 0x01).
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): new 802.11 WiFi 
device (driver: 'b43legacy')
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): exported as 
/org/freedesktop/NetworkManager/Devices/1
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): now managed
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): device state 
change: 1 -> 2 (reason 2)
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): bringing up 
device.
Sep  7 23:01:43 pneumo-martyr kernel: ADDRCONF(NETDEV_UP): wlan0: link is not 
ready
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): preparing device.
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): deactivating 
device (reason: 2).
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): supplicant 
interface state:  starting -> ready
Sep  7 23:01:43 pneumo-martyr NetworkManager: <info>  (wlan0): device state 
change: 2 -> 3 (reason 42)

That's about as far as I have been able to get tonight.

Ben


Reply via email to