Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175121 - Current baselayout can't associate with hidden essids
Summary: Current baselayout can't associate with hidden essids
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: 2007-04-18 16:49 UTC by Renato Caldas
Modified: 2007-05-04 15:35 UTC (History)
0 users

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


Attachments
My wpa_supplicant config file fr eth1 (wpa_supplicant-eth1.conf,743 bytes, text/plain)
2007-04-18 16:50 UTC, Renato Caldas
Details
My /etc/conf.d/net (net,713 bytes, text/plain)
2007-04-18 16:52 UTC, Renato Caldas
Details
The wpa_supplicant log (wpa_log,32.00 KB, text/plain)
2007-04-19 13:23 UTC, Renato Caldas
Details
The relevant wpa_supplicant log (wpa_log,164.00 KB, text/plain)
2007-04-19 14:17 UTC, Renato Caldas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Caldas 2007-04-18 16:49:44 UTC
This bug is a mix of smaller bugs. (Should I create a bug report for each?)

At the university I have two wireless networks available from the same AP's. One of them ("guest-e-U") is open but just displays a help webpage. It has a broadcasted essid. The other network doesn't broadcast the essid ("e-U"), and requires wpa_supplicant for the authentication.

Currentyl wpa_supplicant 0.5.7 doesn't honor the "scan_ssid=1" option (using ipw3945-1.2.0, krnel 2.6.20-r6), so always connects to the guest-e-U network, even if it's set for a low priority. Even if I manually select the network it never authenticates. For this to happen I have to do "iwconfig eth1 essid e-U enc open".

Current baselayout doesn't do this even if I tell it to, which worked before 1.12.10 (my config should explain this better). As a workaround I've defined a post-up function that calls iwconfig, but it doesn't work all the time (seems to be wpa_supplicant's fault) and is somewhat ugly.

The relevant configs go on annex. Should I supply any other info?
Comment 1 Renato Caldas 2007-04-18 16:50:44 UTC
Created attachment 116645 [details]
My wpa_supplicant config file fr eth1
Comment 2 Renato Caldas 2007-04-18 16:52:07 UTC
Created attachment 116646 [details]
My /etc/conf.d/net
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-04-19 07:02:50 UTC
Could you attach debug output from wpa_supplicant? Either add -dd to your options or run it manually with -dd.
Comment 4 Renato Caldas 2007-04-19 13:21:37 UTC
I don't seem to get any debug output by adding -dd to wpa_supplicant_eth1.

On the other hand, bringing net.eth1 down and starting wpa_supplicant by hand does work with the hidden essid! So it must be something with baselayout, wpa_supplicant behaves correctly!
Comment 5 Renato Caldas 2007-04-19 13:23:21 UTC
Created attachment 116730 [details]
The wpa_supplicant log

This is the log file obtained by running

wpa_supplicant -i eth1 -w -D wext -c /etc/wpa_supplicant/wpa_supplicant-eth1.conf -dd > wpa_log
Comment 6 Renato Caldas 2007-04-19 14:00:30 UTC
Oh, forget the previous comment, I did a modprobe -r ipw3945 && modprobe ipw3945 and it automatically started net.eth1. So the post-up commands were called and it obvisously connected.

I did another test removing the post-up function and this time it did connect to the guest network...
Comment 7 Renato Caldas 2007-04-19 14:17:39 UTC
Created attachment 116731 [details]
The relevant wpa_supplicant log

This is the correct log from wpa_supplicant, this time without the post-up hack.
Comment 8 Renato Caldas 2007-04-20 13:39:13 UTC
Hum this may be related to this bug from ipw3945:

http://bughost.org/bugzilla/show_bug.cgi?id=972

I guess it may be a driver bug, but I believe the network scripts used to circumvent this issue - at least it worked before. Not sure if it's worth it though, more than half a month has passed since the last message in the intel bug tracker so maybe their solution is under way?
Comment 9 Renato Caldas 2007-04-20 14:24:52 UTC
Ok, I found another workaround that doesn't involve using wireless-tools:

Putting ap_scan=2 in the wpa config and just running "wpa_cli select_network 0" works, but I still need to manually select the network. I found that sometimes I have to select a different network (for instance the SSID='' network) and then reselect the SSID='e-U'.

Running wpa_supplicant manually shows that with ap_scan=2 it tries to associate with SSID='e-U' (the first entry), but it keeps showing me this message and doesn't associate:
  <2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Comment 10 Renato Caldas 2007-04-20 14:30:46 UTC
Ok, now I found something unusual!!!

Still with ap_scan=2, starting the network normally (/etc/init.d/net.eth1 restart gives me lots of those
  <2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
messages in wpa_cli.

The weird part: if I run "dhclient eth1" then wpa_supplicant suddenly associates with e-U!!! This is WEIRD, and something is broken.

Maybe baselayout could run dhclient as right after wpa_supplicant is started, but this sounds like a hack...
Comment 11 Roy Marples (RETIRED) gentoo-dev 2007-05-04 15:35:42 UTC
Fixed in baselayout-2.0.0_alpha2