linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Association broken with wpa_supplicant
@ 2008-05-15 22:30 Michael Buesch
  2008-05-16 14:57 ` Johannes Berg
  2008-05-16 14:58 ` John W. Linville
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Buesch @ 2008-05-15 22:30 UTC (permalink / raw)
  To: John Linville; +Cc: Abhijeet Kolekar, linux-wireless, Johannes Berg

Hi John,

Association is broken in latest wireless-testing when using
wpa_supplicant. It tells me

Trying to associate with REAL_BSSID...
Authentication with 00:00:00:00:00:00 timed out.

The commit responsible for the breakage is

Author: Abhijeet Kolekar <abhijeet.kolekar@intel.com>  2008-05-09 18:35:41
Committer: John W. Linville <linville@tuxdriver.com>  2008-05-15 22:11:19
Parent: 6d7ef8714c227884346aebd9f4e5eea302db6d22 (hostap: fix "registers" registration in procfs)
Child:  d67ec7fb2b8ce69709def2421ab893517b101591 (libertas: fix command timeout after firmware failure)
Branches: master, remotes/origin/master
Follows: master-2008-05-14
Precedes: master-2008-05-15

    mac80211 : Association with 11n hidden ssid ap.
    
    This patch fixes the association problem with 11n hidden ssid ap.
    Patch fixes the problem of associating with hidden ssid when
    all three parameters ap,essid and channel are given to iwconfig.
    This patch removes the condition of checking three parameters
    and always checks for bss in bss list while associating.
    
    Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>

----------------------------- net/mac80211/mlme.c -----------------------------
index 7877d3b..508f675 100644
@@ -3434,13 +3434,6 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
 	struct ieee80211_sta_bss *bss, *selected = NULL;
 	int top_rssi = 0, freq;
 
-	if (!(ifsta->flags & (IEEE80211_STA_AUTO_SSID_SEL |
-	    IEEE80211_STA_AUTO_BSSID_SEL | IEEE80211_STA_AUTO_CHANNEL_SEL))) {
-		ifsta->state = IEEE80211_AUTHENTICATE;
-		ieee80211_sta_reset_auth(dev, ifsta);
-		return 0;
-	}
-
 	spin_lock_bh(&local->sta_bss_lock);
 	freq = local->oper_channel->center_freq;
 	list_for_each_entry(bss, &local->sta_bss_list, list) {



Reverting this fixes the issue for me.

-- 
Greetings Michael.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Association broken with wpa_supplicant
@ 2008-05-16  7:31 Ronald
  2008-05-16  8:19 ` Johannes Berg
  0 siblings, 1 reply; 7+ messages in thread
From: Ronald @ 2008-05-16  7:31 UTC (permalink / raw)
  To: linux-wireless

I'm not using the latest wireless (2.6.25) but I also have trouble using 
wpa_supplicant (same error as you). After *a lot* of trying, I figured 
this out, to associate I do this:

/sbin/wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf.2 -B
/bin/sleep 5
/usr/bin/killall wpa_supplicant
/sbin/wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
/bin/sleep 5
/sbin/ifconfig wlan0 192.168.2.252 netmask 255.255.255.248
/sbin/route add default gw 192.168.2.254

The contents of wpa_supplicant.conf.2 is:

ctrl_interface=/var/run/wpa_supplicant

ap_scan=2
fast_reauth=0

network={
	bssid=00:1B:2F:A9:48:E8
	ssid="Chimera"
	psk="<<scrubbed>>"
	key_mgmt=WPA-PSK
	proto=WPA2
	pairwise=CCMP
}


The contents of wpa_supplicant.conf is:

ctrl_interface=/var/run/wpa_supplicant

ap_scan=1
fast_reauth=0

network={
	bssid=00:1B:2F:A9:48:E8
	ssid="Chimera"
	psk="<<scrubbed>>"
	key_mgmt=WPA-PSK
	proto=WPA2
	pairwise=CCMP
}

Trying to associate directly with only wpa_supplicant.conf won't work, 
*only* after I used wpa_supplicant.conf.2. Furthermore, I never made a 
bugreport as I thought that it would be an error in wpa_supplicant...

I hope this helps you in any way =)

						Ronald

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-05-16 18:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 22:30 Association broken with wpa_supplicant Michael Buesch
2008-05-16 14:57 ` Johannes Berg
2008-05-16 14:58 ` John W. Linville
2008-05-16 18:16   ` Michael Buesch
2008-05-16 18:19     ` Kolekar, Abhijeet
  -- strict thread matches above, loose matches on Subject: below --
2008-05-16  7:31 Ronald
2008-05-16  8:19 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).