Skip to contentSkip to conversation

Regression caused by commit e32b1b9a33759e8a83ac566c4c43f23ed5d6343b

DISCUSSION Larry Finger 7 participants 15 messages Jan 23, 2009 mac80211

lore
Share & tools
lore
#0 lore raw

With the commit of the subject, my b43 and p54usb devices stopped working. They could associate and authenticate with my WPA2 network, but never finish the DHCP connection and get an IP address. Surprisingly, my rtl8187 devices continued to work.

Please excuse the second sending of this. I missed wireless the first time.

Larry

#1 lore raw
Quoted 5 lines · Larry Finger

With the commit of the subject, my b43 and p54usb devices stopped working. They could associate and authenticate with my WPA2 network, but never finish the DHCP connection and get an IP address. Surprisingly, my rtl8187 devices continued to work.

Please excuse the second sending of this. I missed wireless the first time.

I reverted this in wireless-testing (and it never went anywhere upstream). Of course, now it looks like Samuel has a fix...maybe I'll combine them...

John

Signature · 2 lines
John W. Linville		Linux should be at the core
[email protected]			of your literate lifestyle.
#2 lore raw

Hello!

Quoted 3 lines

I reverted this in wireless-testing (and it never went anywhere upstream). Of course, now it looks like Samuel has a fix...maybe I'll combine them...

I will check this problem and look for the cleanest solution.

Sorry, for the trouble. :(

Regards
Alina

--=20
Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit all=
en: http://www.gmx.net/de/go/multimessenger
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to John W. Linville
Quoted 4 lines · John W. Linville

I reverted this in wireless-testing (and it never went anywhere upstream). Of course, now it looks like Samuel has a fix...maybe I'll combine them...

Samuel's fix works for me.

Larry

#4 lore raw

Hello!

Quoted 5 lines
Quoted 3 lines

I reverted this in wireless-testing (and it never went anywhere upstream). Of course, now it looks like Samuel has a fix...maybe I'll combine them...

Samuel's fix works for me.

If this works for the others too, I would propose the following patch. Without it, e.g. the beacon messages in IBSS mode are broken, if you set a fixed BSSID.

(The iwl4965 low level driver sends back an error code, if you want to set a fixed BSSID, so I think, we should simply ignore it, as it will be tried the next time when the initiated new network join is complete.)

Regards
Alina

Signature · 1 line
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
net/mac80211/mlme.c +31 -41
diff -urN compat-wireless-2009-01-23.orig/net/mac80211/mlme.c compat-wireless-2009-01-23/net/mac80211/mlme.c
@@ -1614,6 +1614,7 @@
 
 	ieee80211_sta_def_wmm_params(sdata, bss);
 
+	ifsta->flags |= IEEE80211_STA_PREV_BSSID_SET;
 	ifsta->state = IEEE80211_STA_MLME_IBSS_JOINED;
 	mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);
 
@@ -2177,19 +2178,18 @@
 	int i;
 	int ret;
 
-#if 0
-	/* Easier testing, use fixed BSSID. */
-	memset(bssid, 0xfe, ETH_ALEN);
-#else
-	/* Generate random, not broadcast, locally administered BSSID. Mix in
-	 * own MAC address to make sure that devices that do not have proper
-	 * random number generator get different BSSID. */
-	get_random_bytes(bssid, ETH_ALEN);
-	for (i = 0; i < ETH_ALEN; i++)
-		bssid[i] ^= sdata->dev->dev_addr[i];
-	bssid[0] &= ~0x01;
-	bssid[0] |= 0x02;
-#endif
+	if (sdata->u.sta.flags & IEEE80211_STA_BSSID_SET) {
+		memcpy(bssid, ifsta->bssid, ETH_ALEN);
+	} else {
+		/* Generate random, not broadcast, locally administered BSSID. Mix in
+		 * own MAC address to make sure that devices that do not have proper
+		 * random number generator get different BSSID. */
+		get_random_bytes(bssid, ETH_ALEN);
+		for (i = 0; i < ETH_ALEN; i++)
+			bssid[i] ^= sdata->dev->dev_addr[i];
+		bssid[0] &= ~0x01;
+		bssid[0] |= 0x02;
+	}
 
 	printk(KERN_DEBUG "%s: Creating new IBSS network, BSSID %pM\n",
 	       sdata->dev->name, bssid);
@@ -2250,6 +2250,9 @@
 		    memcmp(ifsta->ssid, bss->ssid, bss->ssid_len) != 0
 		    || !(bss->capability & WLAN_CAPABILITY_IBSS))
 			continue;
+		if ((ifsta->flags & IEEE80211_STA_BSSID_SET) &&
+		    memcmp(ifsta->bssid, bss->bssid, ETH_ALEN) != 0)
+			continue;
 #ifdef CONFIG_MAC80211_IBSS_DEBUG
 		printk(KERN_DEBUG "   bssid=%pM found\n", bss->bssid);
 #endif /* CONFIG_MAC80211_IBSS_DEBUG */
@@ -2266,7 +2269,9 @@
 		       "%pM\n", bssid, ifsta->bssid);
 #endif /* CONFIG_MAC80211_IBSS_DEBUG */
 
-	if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0) {
+	if (found &&
+	    ((!(ifsta->flags & IEEE80211_STA_PREV_BSSID_SET)) ||
+	     memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0)) {
 		int ret;
 		int search_freq;
 
@@ -2604,16 +2609,16 @@
 		memset(ifsta->ssid, 0, sizeof(ifsta->ssid));
 		memcpy(ifsta->ssid, ssid, len);
 		ifsta->ssid_len = len;
-		ifsta->flags &= ~IEEE80211_STA_PREV_BSSID_SET;
 	}
 
+	ifsta->flags &= ~IEEE80211_STA_PREV_BSSID_SET;
+
 	if (len)
 		ifsta->flags |= IEEE80211_STA_SSID_SET;
 	else
 		ifsta->flags &= ~IEEE80211_STA_SSID_SET;
 
-	if (sdata->vif.type == NL80211_IFTYPE_ADHOC &&
-	    !(ifsta->flags & IEEE80211_STA_BSSID_SET)) {
+	if (sdata->vif.type == NL80211_IFTYPE_ADHOC) {
 		ifsta->ibss_join_req = jiffies;
 		ifsta->state = IEEE80211_STA_MLME_IBSS_SEARCH;
 		return ieee80211_sta_find_ibss(sdata, ifsta);
@@ -2633,36 +2638,21 @@
 int ieee80211_sta_set_bssid(struct ieee80211_sub_if_data *sdata, u8 *bssid)
 {
 	struct ieee80211_if_sta *ifsta;
-	int res;
-	bool valid;
 
 	ifsta = &sdata->u.sta;
-	valid = is_valid_ether_addr(bssid);
 
-	if (memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0) {
-		if(valid)
-			memcpy(ifsta->bssid, bssid, ETH_ALEN);
-		else
-			memset(ifsta->bssid, 0, ETH_ALEN);
-		res = 0;
-		/*
-		 * Hack! See also ieee80211_sta_set_ssid.
-		 */
-		if (netif_running(sdata->dev))
-			res = ieee80211_if_config(sdata, IEEE80211_IFCC_BSSID);
-		if (res) {
-			printk(KERN_DEBUG "%s: Failed to config new BSSID to "
-			       "the low-level driver\n", sdata->dev->name);
-			return res;
-		}
-	}
-
-	if (valid)
+	if (is_valid_ether_addr(bssid)) {
+		memcpy(ifsta->bssid, bssid, ETH_ALEN);
 		ifsta->flags |= IEEE80211_STA_BSSID_SET;
-	else
+	} else {
+		memset(ifsta->bssid, 0, ETH_ALEN);
 		ifsta->flags &= ~IEEE80211_STA_BSSID_SET;
+	}
 
-	return 0;
+	if (netif_running(sdata->dev))
+		ieee80211_if_config(sdata, IEEE80211_IFCC_BSSID);
+
+	return ieee80211_sta_set_ssid(sdata, ifsta->ssid, ifsta->ssid_len);
 }
 
 int ieee80211_sta_set_extra_ie(struct ieee80211_sub_if_data *sdata, char *ie, size_t len)
#5 lore raw

Hi Alina,

Version 4 of your patch is working for me against wl (master-2009-01-22) and with iwl3945. Samuel's patch is obsolete.

Could you please send a separate email containing your new patch v4?

Quoted 1 line
Quoted 1 line
Quoted 1 line

[PATCH v4] mac80211: Fixed BSSID handling revisited. <<<

My 2nd request is just cosmetics:
Can you please patch next time against wireless directory (patch is attached). This is just a proposal.

Thanks for your help.

Kind Regards,
Sedat

Quoted 10 lines · Alina Friedrichsen

Hello!

Quoted 5 lines
Quoted 3 lines

I reverted this in wireless-testing (and it never went anywhere upstream). Of course, now it looks like Samuel has a fix...maybe I'll combine them...

Samuel's fix works for me.

If this works for the others too, I would propose the following patch. Without it, e.g. the beacon messages in IBSS mode are broken, if you set a fixed BSSID.

Quoted 8 lines

(The iwl4965 low level driver sends back an error code, if you want to set a fixed BSSID, so I think, we should simply ignore it, as it will be tried the next time when the initiated new network join is complete.)

Regards
Alina

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

net/mac80211/mlme.c +31 -41
Index: wireless-testing/net/mac80211/mlme.c
===================================================================
@@ -1614,6 +1614,7 @@
 
 	ieee80211_sta_def_wmm_params(sdata, bss);
 
+	ifsta->flags |= IEEE80211_STA_PREV_BSSID_SET;
 	ifsta->state = IEEE80211_STA_MLME_IBSS_JOINED;
 	mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);
 
@@ -2177,19 +2178,18 @@
 	int i;
 	int ret;
 
-#if 0
-	/* Easier testing, use fixed BSSID. */
-	memset(bssid, 0xfe, ETH_ALEN);
-#else
-	/* Generate random, not broadcast, locally administered BSSID. Mix in
-	 * own MAC address to make sure that devices that do not have proper
-	 * random number generator get different BSSID. */
-	get_random_bytes(bssid, ETH_ALEN);
-	for (i = 0; i < ETH_ALEN; i++)
-		bssid[i] ^= sdata->dev->dev_addr[i];
-	bssid[0] &= ~0x01;
-	bssid[0] |= 0x02;
-#endif
+	if (sdata->u.sta.flags & IEEE80211_STA_BSSID_SET) {
+		memcpy(bssid, ifsta->bssid, ETH_ALEN);
+	} else {
+		/* Generate random, not broadcast, locally administered BSSID. Mix in
+		 * own MAC address to make sure that devices that do not have proper
+		 * random number generator get different BSSID. */
+		get_random_bytes(bssid, ETH_ALEN);
+		for (i = 0; i < ETH_ALEN; i++)
+			bssid[i] ^= sdata->dev->dev_addr[i];
+		bssid[0] &= ~0x01;
+		bssid[0] |= 0x02;
+	}
 
 	printk(KERN_DEBUG "%s: Creating new IBSS network, BSSID %pM\n",
 	       sdata->dev->name, bssid);
@@ -2250,6 +2250,9 @@
 		    memcmp(ifsta->ssid, bss->ssid, bss->ssid_len) != 0
 		    || !(bss->capability & WLAN_CAPABILITY_IBSS))
 			continue;
+		if ((ifsta->flags & IEEE80211_STA_BSSID_SET) &&
+		    memcmp(ifsta->bssid, bss->bssid, ETH_ALEN) != 0)
+			continue;
 #ifdef CONFIG_MAC80211_IBSS_DEBUG
 		printk(KERN_DEBUG "   bssid=%pM found\n", bss->bssid);
 #endif /* CONFIG_MAC80211_IBSS_DEBUG */
@@ -2266,7 +2269,9 @@
 		       "%pM\n", bssid, ifsta->bssid);
 #endif /* CONFIG_MAC80211_IBSS_DEBUG */
 
-	if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0) {
+	if (found &&
+	    ((!(ifsta->flags & IEEE80211_STA_PREV_BSSID_SET)) ||
+	     memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0)) {
 		int ret;
 		int search_freq;
 
@@ -2604,16 +2609,16 @@
 		memset(ifsta->ssid, 0, sizeof(ifsta->ssid));
 		memcpy(ifsta->ssid, ssid, len);
 		ifsta->ssid_len = len;
-		ifsta->flags &= ~IEEE80211_STA_PREV_BSSID_SET;
 	}
 
+	ifsta->flags &= ~IEEE80211_STA_PREV_BSSID_SET;
+
 	if (len)
 		ifsta->flags |= IEEE80211_STA_SSID_SET;
 	else
 		ifsta->flags &= ~IEEE80211_STA_SSID_SET;
 
-	if (sdata->vif.type == NL80211_IFTYPE_ADHOC &&
-	    !(ifsta->flags & IEEE80211_STA_BSSID_SET)) {
+	if (sdata->vif.type == NL80211_IFTYPE_ADHOC) {
 		ifsta->ibss_join_req = jiffies;
 		ifsta->state = IEEE80211_STA_MLME_IBSS_SEARCH;
 		return ieee80211_sta_find_ibss(sdata, ifsta);
@@ -2633,36 +2638,21 @@
 int ieee80211_sta_set_bssid(struct ieee80211_sub_if_data *sdata, u8 *bssid)
 {
 	struct ieee80211_if_sta *ifsta;
-	int res;
-	bool valid;
 
 	ifsta = &sdata->u.sta;
-	valid = is_valid_ether_addr(bssid);
 
-	if (memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0) {
-		if(valid)
-			memcpy(ifsta->bssid, bssid, ETH_ALEN);
-		else
-			memset(ifsta->bssid, 0, ETH_ALEN);
-		res = 0;
-		/*
-		 * Hack! See also ieee80211_sta_set_ssid.
-		 */
-		if (netif_running(sdata->dev))
-			res = ieee80211_if_config(sdata, IEEE80211_IFCC_BSSID);
-		if (res) {
-			printk(KERN_DEBUG "%s: Failed to config new BSSID to "
-			       "the low-level driver\n", sdata->dev->name);
-			return res;
-		}
-	}
-
-	if (valid)
+	if (is_valid_ether_addr(bssid)) {
+		memcpy(ifsta->bssid, bssid, ETH_ALEN);
 		ifsta->flags |= IEEE80211_STA_BSSID_SET;
-	else
+	} else {
+		memset(ifsta->bssid, 0, ETH_ALEN);
 		ifsta->flags &= ~IEEE80211_STA_BSSID_SET;
+	}
 
-	return 0;
+	if (netif_running(sdata->dev))
+		ieee80211_if_config(sdata, IEEE80211_IFCC_BSSID);
+
+	return ieee80211_sta_set_ssid(sdata, ifsta->ssid, ifsta->ssid_len);
 }
 
 int ieee80211_sta_set_extra_ie(struct ieee80211_sub_if_data *sdata, char *ie, size_t len)
#6 lore raw
In reply to Alina Friedrichsen
Quoted 9 lines · Alina Friedrichsen

Hello!
=20

Quoted 5 lines
Quoted 3 lines

I reverted this in wireless-testing (and it never went anywhere upstream). Of course, now it looks like Samuel has a fix...maybe I'll combine them...

=20
Samuel's fix works for me.

=20
If this works for the others too, I would propose the following patch=

=2E Without it, e.g. the beacon messages in IBSS mode are broken, if yo= u set a fixed BSSID.

Quoted 2 lines

=20
(The iwl4965 low level driver sends back an error code, if you want t=

o set a fixed BSSID, so I think, we should simply ignore it, as it will= be tried the next time when the initiated new network join is complete=
=2E)

Quoted 1 line

I dont think we should ignore the if_config() return value. Is the 4965 error code sent when trying to set a fixed BSSID in IBSS ? I dont see it in STA mode, when associating to my AP.

Cheers,
Samuel.
=20

Quoted 5 lines

Regards
Alina
=20
--=20
Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit a=

llen: http://www.gmx.net/de/go/multimessenger

Quoted 1 line

diff -urN compat-wireless-2009-01-23.orig/net/mac80211/mlme.c compat-=

wireless-2009-01-23/net/mac80211/mlme.c

Quoted 1 line

--- compat-wireless-2009-01-23.orig/net/mac80211/mlme.c 2009-01-23 06=

:12:14.000000000 +0100

Quoted 1 line

+++ compat-wireless-2009-01-23/net/mac80211/mlme.c 2009-01-23 07:58:3=

1.000000000 +0100

Quoted 12 lines
(quoted diff) +0 -0
@@ -1614,6 +1614,7 @@

=20
ieee80211_sta_def_wmm_params(sdata, bss);
=20

(quoted diff) +1 -0
+	ifsta->flags |=3D IEEE80211_STA_PREV_BSSID_SET;
 	ifsta->state =3D IEEE80211_STA_MLME_IBSS_JOINED;
 	mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);

=20

net/mac80211/mlme.c +0 -0
@@ -2177,19 +2178,18 @@
 	int i;
 	int ret;

=20

net/mac80211/mlme.c

Quoted 5 lines
net/mac80211/mlme.c +0 -5
-#if 0
-	/* Easier testing, use fixed BSSID. */
-	memset(bssid, 0xfe, ETH_ALEN);
-#else
-	/* Generate random, not broadcast, locally administered BSSID. Mix =

in

Review

Quoted 1 line
(quoted diff) +0 -1
-	 * own MAC address to make sure that devices that do not have prope=

r

net/mac80211/mlme.c

Quoted 11 lines
net/mac80211/mlme.c +4 -7
-	 * random number generator get different BSSID. */
-	get_random_bytes(bssid, ETH_ALEN);
-	for (i =3D 0; i < ETH_ALEN; i++)
-		bssid[i] ^=3D sdata->dev->dev_addr[i];
-	bssid[0] &=3D ~0x01;
-	bssid[0] |=3D 0x02;
-#endif
+	if (sdata->u.sta.flags & IEEE80211_STA_BSSID_SET) {
+		memcpy(bssid, ifsta->bssid, ETH_ALEN);
+	} else {
+		/* Generate random, not broadcast, locally administered BSSID. Mix=

in

Review

Quoted 1 line
(quoted diff) +1 -0
+		 * own MAC address to make sure that devices that do not have prop=

er

Quoted 52 lines
(quoted diff) +7 -0
+		 * random number generator get different BSSID. */
+		get_random_bytes(bssid, ETH_ALEN);
+		for (i =3D 0; i < ETH_ALEN; i++)
+			bssid[i] ^=3D sdata->dev->dev_addr[i];
+		bssid[0] &=3D ~0x01;
+		bssid[0] |=3D 0x02;
+	}

=20

net/mac80211/mlme.c +3 -0
 	printk(KERN_DEBUG "%s: Creating new IBSS network, BSSID %pM\n",
 	       sdata->dev->name, bssid);
@@ -2250,6 +2250,9 @@
 		    memcmp(ifsta->ssid, bss->ssid, bss->ssid_len) !=3D 0
 		    || !(bss->capability & WLAN_CAPABILITY_IBSS))
 			continue;
+		if ((ifsta->flags & IEEE80211_STA_BSSID_SET) &&
+		    memcmp(ifsta->bssid, bss->bssid, ETH_ALEN) !=3D 0)
+			continue;
 #ifdef CONFIG_MAC80211_IBSS_DEBUG
 		printk(KERN_DEBUG "   bssid=3D%pM found\n", bss->bssid);
 #endif /* CONFIG_MAC80211_IBSS_DEBUG */
@@ -2266,7 +2269,9 @@
 		       "%pM\n", bssid, ifsta->bssid);
 #endif /* CONFIG_MAC80211_IBSS_DEBUG */

=20

net/mac80211/mlme.c +3 -1
-	if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) !=3D 0) {
+	if (found &&
+	    ((!(ifsta->flags & IEEE80211_STA_PREV_BSSID_SET)) ||
+	     memcmp(ifsta->bssid, bssid, ETH_ALEN) !=3D 0)) {
 		int ret;
 		int search_freq;

=20

net/mac80211/mlme.c +0 -1
@@ -2604,16 +2609,16 @@
 		memset(ifsta->ssid, 0, sizeof(ifsta->ssid));
 		memcpy(ifsta->ssid, ssid, len);
 		ifsta->ssid_len =3D len;
-		ifsta->flags &=3D ~IEEE80211_STA_PREV_BSSID_SET;
 	}

=20

net/mac80211/mlme.c +2 -0
+	ifsta->flags &=3D ~IEEE80211_STA_PREV_BSSID_SET;
+
 	if (len)
 		ifsta->flags |=3D IEEE80211_STA_SSID_SET;
 	else
 		ifsta->flags &=3D ~IEEE80211_STA_SSID_SET;

=20

(quoted diff) +1 -2
-	if (sdata->vif.type =3D=3D NL80211_IFTYPE_ADHOC &&
-	    !(ifsta->flags & IEEE80211_STA_BSSID_SET)) {
+	if (sdata->vif.type =3D=3D NL80211_IFTYPE_ADHOC) {
 		ifsta->ibss_join_req =3D jiffies;
 		ifsta->state =3D IEEE80211_STA_MLME_IBSS_SEARCH;
 		return ieee80211_sta_find_ibss(sdata, ifsta);

Review line 2638

Quoted 1 line
(quoted diff) +0 -0
@@ -2633,36 +2638,21 @@
 int ieee80211_sta_set_bssid(struct ieee80211_sub_if_data *sdata, u8 =

*bssid)

Quoted 42 lines
net/mac80211/mlme.c +0 -2
 {
 	struct ieee80211_if_sta *ifsta;
-	int res;
-	bool valid;

=20

(quoted diff) +0 -1
 	ifsta =3D &sdata->u.sta;
-	valid =3D is_valid_ether_addr(bssid);

=20

net/mac80211/mlme.c +5 -20
-	if (memcmp(ifsta->bssid, bssid, ETH_ALEN) !=3D 0) {
-		if(valid)
-			memcpy(ifsta->bssid, bssid, ETH_ALEN);
-		else
-			memset(ifsta->bssid, 0, ETH_ALEN);
-		res =3D 0;
-		/*
-		 * Hack! See also ieee80211_sta_set_ssid.
-		 */
-		if (netif_running(sdata->dev))
-			res =3D ieee80211_if_config(sdata, IEEE80211_IFCC_BSSID);
-		if (res) {
-			printk(KERN_DEBUG "%s: Failed to config new BSSID to "
-			       "the low-level driver\n", sdata->dev->name);
-			return res;
-		}
-	}
-
-	if (valid)
+	if (is_valid_ether_addr(bssid)) {
+		memcpy(ifsta->bssid, bssid, ETH_ALEN);
 		ifsta->flags |=3D IEEE80211_STA_BSSID_SET;
-	else
+	} else {
+		memset(ifsta->bssid, 0, ETH_ALEN);
 		ifsta->flags &=3D ~IEEE80211_STA_BSSID_SET;
+	}

=20

net/mac80211/mlme.c +4 -1
-	return 0;
+	if (netif_running(sdata->dev))
+		ieee80211_if_config(sdata, IEEE80211_IFCC_BSSID);
+
+	return ieee80211_sta_set_ssid(sdata, ifsta->ssid, ifsta->ssid_len);
 }
Quoted 2 lines

=20
int ieee80211_sta_set_extra_ie(struct ieee80211_sub_if_data *sdata, =

char *ie, size_t len)

--=20
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Hi Samuel!

Quoted 1 line

I dont think we should ignore the if_config() return value.

I can write a warning in the kernel log, to help the low-level driver d= evelopers to debug this problem, but I don't want to stop the new mergi= ng process, so that the driver hangs in a mostly undefined state.

Quoted 1 line

Is the 4965 error code sent when trying to set a fixed BSSID in IBSS =

?

Quoted 1 line

I dont see it in STA mode, when associating to my AP.

I unfortunately don't know the error code, because I don't have the car= d, but I think if the setting of the BSSID fails here, I should work in=
the new initiated normal joining process, even in broken low-level dri=
vers.

Regards
Alina

--=20
Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit all=
en: http://www.gmx.net/de/go/multimessenger
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw

Sorry for the confusion, it's "mac80211-Fixed-BSSID-handling-revisited-v3.patch" (not v4, see [1]). And as I mentioned before - it works for me, too.
I requested to Alina to send a separate email incl. this new v3 patch. Hope this will stop confusing.

Don't know if Samuels complains about if_config()/STA mode for iwl4965
[2] were clarified in the meantime.

-SD

[1] http://marc.info/?l=linux-wireless&m=123270461025225&w=2
[2] http://marc.info/?l=linux-wireless&m=123271402006665&w=2

Quoted 10 lines · Larry Finger

I saw some mention of a V4 of this patch in other mails but V3 fixes the problem for me.

Larry

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw
In reply to Larry Finger
Quoted 3 lines · Larry Finger

With the commit of the subject, my b43 and p54usb devices stopped working. They could associate and authenticate with my WPA2 network, but never finish the DHCP connection and get an IP address. Surprisingly, my rtl8187 devices continued to work.

I don't want to do a "me too", but my rtl8187B broke yesterday after upgrading to wireless-testing/compat-wireless head,
and it worked again today. There are only two patches between yesterday and today and one of them is John's revert, so it is possible that the rtl8187B is also affected.

The symptom is as you said, I can associate and authenticate, but dhcp won't finish and wpa_suplicant ifdown the device.
I tried that a few times and restarting NM, modprobe -r/-v, etc. In the end it was easier just to blow away the compat-wireless update redirectory and revert back to the vendor-shipped kernel modules - and hope that it is just a transient problem and the problem would go away when I git fetch next time :-).

#11 lore raw

Hello!

Quoted 7 lines

I don't want to do a "me too", but my rtl8187B broke yesterday after upgrading to wireless-testing/compat-wireless head,
and it worked again today. There are only two patches between yesterday and today and one of them is John's revert, so it is possible that the rtl8187B is also affected.
=20
The symptom is as you said, I can associate and authenticate, but dhc=

p

Quoted 4 lines

won't finish and wpa_suplicant ifdown the device.
I tried that a few times and restarting NM, modprobe -r/-v, etc. In the end it was easier just to blow away the compat-wireless update redirectory and revert back to the vendor-shipped kernel modules - an=

d

Quoted 1 line

hope that it is just a transient problem and the problem would go awa=

y

Quoted 1 line

when I git fetch next time :-).

I unfortunately can't reproduce the problem with my b43 und my other ca= rds work fine, too. But I think the problem is that the NetworkManager = does the following: (And causes with it some low level drivers and wifi=
cards into trouble.)

[99554.112921] wlan0: Set SSID
[99554.113853] wlan0: Set BSSID
[99554.113861] wlan0: Set SSID
[99554.115084] wlan0: Set BSSID
[99554.115091] wlan0: Set SSID

Have you test it manual with the NetworkManager disabled?

Regards
Alina

--=20
Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit all=
en: http://www.gmx.net/de/go/multimessenger
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#12 lore raw
In reply to Larry Finger
Quoted 5 lines · On Friday 23 January 2009 03:08:31 Larry Finger wrote:

With the commit of the subject, my b43 and p54usb devices stopped working. They could associate and authenticate with my WPA2 network, but never finish the DHCP connection and get an IP address. Surprisingly, my rtl8187 devices continued to work.

Please excuse the second sending of this. I missed wireless the first time.

Do you have a diff of this commit? Or at least the date it was committed?
I have some strange AP mode issue and it might be related to this. I just want to verify.

Signature · 1 line
Greetings, Michael.
#13 lore raw
Quoted 9 lines · Michael Buesch
Quoted 5 lines · On Friday 23 January 2009 03:08:31 Larry Finger wrote:

With the commit of the subject, my b43 and p54usb devices stopped working. They could associate and authenticate with my WPA2 network, but never finish the DHCP connection and get an IP address. Surprisingly, my rtl8187 devices continued to work.

Please excuse the second sending of this. I missed wireless the first time.

Do you have a diff of this commit? Or at least the date it was committed?
I have some strange AP mode issue and it might be related to this. I just want to verify.

That commit ID should still be available in wireless-testing -- git show e32b1b9a33759e8a83ac566c4c43f23ed5d6343b

Hth!

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
#14 lore raw
Quoted 6 lines · On Friday 23 January 2009 16:49:18 John W. Linville wrote:
Quoted 5 lines · Michael Buesch
Quoted 4 lines · On Friday 23 January 2009 03:08:31 Larry Finger wrote:

With the commit of the subject, my b43 and p54usb devices stopped working. They could associate and authenticate with my WPA2 network, but never finish the DHCP connection and get an IP address. Surprisingly, my rtl8187 devices continued to work.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Please excuse the second sending of this. I missed wireless the first time.

Do you have a diff of this commit? Or at least the date it was committed?
I have some strange AP mode issue and it might be related to this. I just want to verify.

That commit ID should still be available in wireless-testing -- git show e32b1b9a33759e8a83ac566c4c43f23ed5d6343b

Oh ok. I thought you just took it out and rebased. Thanks :)

Signature · 1 line
Greetings, Michael.