Skip to contentSkip to conversation

ath9k: Fix STA disconnect issue due to received MIC failed bcast frames

PATCH Superseded Senthil Balasubramanian 4 participants 12 messages Dec 1, 2010 – Dec 6, 2010 Qualcomm Atheros ATH9K wireless driver

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 ath9k: Fix STA disconnect issue due to received MIC failed bcast frames

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Able to pass Wifi Test case 5.2.18 with this fix.

Cc Stable <[email protected]> (2.6.36+)
Cc Kyungwan Nam <[email protected]>

---
v2 -- addressed invalid keyix overrun in tkip_keymap.

 drivers/net/wireless/ath/ath9k/mac.c  |    3 +--
 drivers/net/wireless/ath/ath9k/recv.c |   13 +++++++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)
drivers/net/wireless/ath/ath9k/mac.c +1 -2
index b04b37b..7978b27 100644
@@ -702,8 +702,7 @@ int ath9k_hw_rxprocdesc(struct ath_hw *ah, struct ath_desc *ds,
 			rs->rs_phyerr = phyerr;
 		} else if (ads.ds_rxstatus8 & AR_DecryptCRCErr)
 			rs->rs_status |= ATH9K_RXERR_DECRYPT;
-		else if ((ads.ds_rxstatus8 & AR_MichaelErr) &&
-		         rs->rs_keyix != ATH9K_RXKEYIX_INVALID)
+		else if (ads.ds_rxstatus8 & AR_MichaelErr)
 			rs->rs_status |= ATH9K_RXERR_MIC;
 		else if (ads.ds_rxstatus8 & AR_KeyMiss)
 			rs->rs_status |= ATH9K_RXERR_DECRYPT;
drivers/net/wireless/ath/ath9k/recv.c +11 -2
index 262c815..6c0c796 100644
@@ -840,6 +840,10 @@ static bool ath9k_rx_accept(struct ath_common *common,
 			    struct ath_rx_status *rx_stats,
 			    bool *decrypt_error)
 {
+#define is_mc_or_valid_tkip_keyix ((is_mc ||			\
+		(rx_stats->rs_keyix != ATH9K_RXKEYIX_INVALID && \
+		test_bit(rx_stats->rs_keyix, common->tkip_keymap))))
+
 	struct ath_hw *ah = common->ah;
 	__le16 fc;
 	u8 rx_status_len = ah->caps.rx_status_len;
@@ -881,15 +885,18 @@ static bool ath9k_rx_accept(struct ath_common *common,
 		if (rx_stats->rs_status & ATH9K_RXERR_DECRYPT) {
 			*decrypt_error = true;
 		} else if (rx_stats->rs_status & ATH9K_RXERR_MIC) {
+			bool is_mc;
 			/*
 			 * The MIC error bit is only valid if the frame
 			 * is not a control frame or fragment, and it was
 			 * decrypted using a valid TKIP key.
 			 */
+			is_mc = !!is_multicast_ether_addr(hdr->addr1);
+
 			if (!ieee80211_is_ctl(fc) &&
 			    !ieee80211_has_morefrags(fc) &&
 			    !(le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG) &&
-			    test_bit(rx_stats->rs_keyix, common->tkip_keymap))
+			    is_mc_or_valid_tkip_keyix)
 				rxs->flag |= RX_FLAG_MMIC_ERROR;
 			else
 				rx_stats->rs_status &= ~ATH9K_RXERR_MIC;
@@ -1037,9 +1044,11 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
 	int hdrlen, padpos, padsize;
 	u8 keyix;
 	__le16 fc;
+	bool is_mc;
 
 	/* see if any padding is done by the hw and remove it */
 	hdr = (struct ieee80211_hdr *) skb->data;
+	is_mc = !!is_multicast_ether_addr(hdr->addr1);
 	hdrlen = ieee80211_get_hdrlen_from_skb(skb);
 	fc = hdr->frame_control;
 	padpos = ath9k_cmn_padpos(hdr->frame_control);
@@ -1060,7 +1069,7 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
 
 	keyix = rx_stats->rs_keyix;
 
-	if (!(keyix == ATH9K_RXKEYIX_INVALID) && !decrypt_error &&
+	if ((is_mc || !(keyix == ATH9K_RXKEYIX_INVALID)) && !decrypt_error &&
 	    ieee80211_has_protected(fc)) {
 		rxs->flag |= RX_FLAG_DECRYPTED;
 	} else if (ieee80211_has_protected(fc)
Signature · 1 line
1.7.2.1
#1 lore raw
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

I'm using software encryption in case that matters.

Senthil: Any chance you could test with a few VIFS to see if you see the same problem?

Here is a dmesg snippet from wireless-testing with the v1 reverted and v2 applied:

sta9: authenticate with 00:14:d1:c6:d2:54 (try 1)
sta9: authenticated
sta9: associate with 00:14:d1:c6:d2:54 (try 1)
sta9: RX AssocResp from 00:14:d1:c6:d2:54 (capab=0x431 status=1 aid=0)
sta9: 00:14:d1:c6:d2:54 denied association (code=1)
sta9: deauthenticating from 00:14:d1:c6:d2:54 by local choice (reason=3) ieee80211 wiphy0: device now idle
ieee80211 wiphy0: device no longer idle - scanning
ieee80211 wiphy0: device now idle
ieee80211 wiphy0: device no longer idle - working
sta10: authenticate with 00:14:d1:c6:d2:54 (try 1)
sta10: authenticated
sta10: associate with 00:14:d1:c6:d2:54 (try 1)
sta10: RX AssocResp from 00:14:d1:c6:d2:54 (capab=0x431 status=1 aid=0)
sta10: 00:14:d1:c6:d2:54 denied association (code=1)
sta10: deauthenticating from 00:14:d1:c6:d2:54 by local choice (reason=3)

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#2 lore raw
Quoted 8 lines · Ben Greear
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet.  As far as I can tell, either of these patches breaks multiple VIF scenarios.  I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Quoted 38 lines

I'm using software encryption in case that matters.

Senthil:  Any chance you could test with a few VIFS to see if you see the same problem?

Here is a dmesg snippet from wireless-testing with the v1 reverted and v2 applied:

sta9: authenticate with 00:14:d1:c6:d2:54 (try 1)
sta9: authenticated
sta9: associate with 00:14:d1:c6:d2:54 (try 1)
sta9: RX AssocResp from 00:14:d1:c6:d2:54 (capab=0x431 status=1 aid=0)
sta9: 00:14:d1:c6:d2:54 denied association (code=1)
sta9: deauthenticating from 00:14:d1:c6:d2:54 by local choice (reason=3) ieee80211 wiphy0: device now idle
ieee80211 wiphy0: device no longer idle - scanning
ieee80211 wiphy0: device now idle
ieee80211 wiphy0: device no longer idle - working
sta10: authenticate with 00:14:d1:c6:d2:54 (try 1)
sta10: authenticated
sta10: associate with 00:14:d1:c6:d2:54 (try 1)
sta10: RX AssocResp from 00:14:d1:c6:d2:54 (capab=0x431 status=1 aid=0)
sta10: 00:14:d1:c6:d2:54 denied association (code=1)
sta10: deauthenticating from 00:14:d1:c6:d2:54 by local choice (reason=3)

Thanks,
Ben

--
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com

--
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

#3 lore raw
Quoted 16 lines · Mohammed Shafi
Quoted 8 lines · Ben Greear
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Quoted 4 lines

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Try this script, or something like it:

http://www.spinics.net/lists/linux-wireless/msg60126.html

Edit 'max' to create a small number of STA interfaces or you will probably have worse issues than them just not associating!

You have to enable the nohwcrypt module option.

Let me know if that doesn't work and I can probably put together something more specific.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#4 lore raw
Quoted 29 lines · Ben Greear
Quoted 19 lines · Mohammed Shafi
Quoted 9 lines · Ben Greear
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet.  As far as I can tell, either of these patches breaks multiple VIF scenarios.  I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Quoted 4 lines

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Try this script, or something like it:

http://www.spinics.net/lists/linux-wireless/msg60126.html

Quoted 8 lines

Edit 'max' to create a small number of STA interfaces or you will probably have
worse issues than them just not associating!

You have to enable the nohwcrypt module option.

Let me know if that doesn't work and I can probably put together something more specific.

thanks Ben.

Quoted 8 lines

Thanks,
Ben

--
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com

#5 lore raw
Quoted 34 lines · Mohammed Shafi
Quoted 33 lines · Ben Greear
Quoted 19 lines · Mohammed Shafi
Quoted 9 lines · Ben Greear
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Quoted 4 lines

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Try this script, or something like it:

http://www.spinics.net/lists/linux-wireless/msg60126.html

Edit 'max' to create a small number of STA interfaces or you will probably have
worse issues than them just not associating!

Quoted 6 lines
Quoted 4 lines

You have to enable the nohwcrypt module option.

Let me know if that doesn't work and I can probably put together something more specific.

thanks Ben.

Were you able to reproduce the problem?

Thanks,
Ben

Quoted 9 lines
Quoted 9 lines

Thanks,
Ben

--
Ben Greear<[email protected]>
Candela Technologies Inc http://www.candelatech.com

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#6 lore raw

PATCH v2 2/2 ath9k: Fix STA disconnect issue due to received MIC failed bcast frames

Quoted 41 lines · Ben Greear
Quoted 40 lines · Mohammed Shafi
Quoted 37 lines · On Thu, Dec 2, 2010 at 11:14 AM, Ben Greear<[email protected]> ?wrote:
Quoted 19 lines · Mohammed Shafi
Quoted 9 lines · On Thu, Dec 2, 2010 at 1:28 AM, Ben Greear<[email protected]> ?wrote:
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. ?As far as I can tell, either of these patches breaks multiple VIF scenarios. ?I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Quoted 4 lines

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Try this script, or something like it:

http://www.spinics.net/lists/linux-wireless/msg60126.html

Edit 'max' to create a small number of STA interfaces or you will probably
have
worse issues than them just not associating!

You have to enable the nohwcrypt module option.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Let me know if that doesn't work and I can probably put together something
more specific.

thanks Ben.

Were you able to reproduce the problem?

Ben I am going to do right now ..Was busy in some other work.will let you know very soon.
thanks,
shafi

Quoted 19 lines

Thanks,
Ben

Quoted 9 lines
Quoted 9 lines

Thanks,
Ben

--
Ben Greear<[email protected]>
Candela Technologies Inc ?http://www.candelatech.com

--
Ben Greear <[email protected]>
Candela Technologies Inc ?http://www.candelatech.com

#7 lore raw
In reply to Ben Greear
Quoted 35 lines · Ben Greear
Quoted 34 lines · Mohammed Shafi
Quoted 33 lines · Ben Greear
Quoted 19 lines · Mohammed Shafi
Quoted 9 lines · Ben Greear
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Quoted 4 lines

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Try this script, or something like it:

http://www.spinics.net/lists/linux-wireless/msg60126.html

Edit 'max' to create a small number of STA interfaces or you will probably have
worse issues than them just not associating!

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

You have to enable the nohwcrypt module option.

Let me know if that doesn't work and I can probably put together something more specific.

thanks Ben.

Were you able to reproduce the problem?

I can reproduce this issue with single vif itself and with s/w crypt enabled.

Can you please apply the v2 patch and try the following change on top of it in

drivers/net/wireless/ath/ath9k/recv.c +1 -1
index 6c0c796..4871849 100644
@@ -1069,7 +1069,7 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
 
        keyix = rx_stats->rs_keyix;
 
-       if ((is_mc || !(keyix == ATH9K_RXKEYIX_INVALID)) && !decrypt_error &&
+       if (!(keyix == ATH9K_RXKEYIX_INVALID) && !decrypt_error &&
            ieee80211_has_protected(fc)) {
                rxs->flag |= RX_FLAG_DECRYPTED;
        } else if (ieee80211_has_protected(fc)

I haven't tested s/w crypto and this check causes mac80211 not to decrypt frames so it would have caused issues.. Can you please check this out? It wouldn't cause issues with h/w crypt. Please let me know whether it solves your issue.. It works for me.

Quoted 18 lines

Thanks,
Ben

Quoted 9 lines
Quoted 9 lines

Thanks,
Ben

--
Ben Greear<[email protected]>
Candela Technologies Inc http://www.candelatech.com

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#8 lore raw
Quoted 63 lines · Senthil Balasubramanian
Quoted 35 lines · Ben Greear
Quoted 34 lines · Mohammed Shafi
Quoted 33 lines · Ben Greear
Quoted 19 lines · Mohammed Shafi
Quoted 9 lines · Ben Greear
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Quoted 4 lines

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Try this script, or something like it:

http://www.spinics.net/lists/linux-wireless/msg60126.html

Edit 'max' to create a small number of STA interfaces or you will probably have
worse issues than them just not associating!

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

You have to enable the nohwcrypt module option.

Let me know if that doesn't work and I can probably put together something more specific.

thanks Ben.

Were you able to reproduce the problem?

I can reproduce this issue with single vif itself and with s/w crypt enabled.

Can you please apply the v2 patch and try the following change on top of it in

drivers/net/wireless/ath/ath9k/recv.c +1 -1
index 6c0c796..4871849 100644
@@ -1069,7 +1069,7 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
 
         keyix = rx_stats->rs_keyix;
 
-       if ((is_mc || !(keyix == ATH9K_RXKEYIX_INVALID))&&  !decrypt_error&&
+       if (!(keyix == ATH9K_RXKEYIX_INVALID)&&  !decrypt_error&&
             ieee80211_has_protected(fc)) {
                 rxs->flag |= RX_FLAG_DECRYPTED;
         } else if (ieee80211_has_protected(fc)
Quoted 3 lines

I haven't tested s/w crypto and this check causes mac80211 not to decrypt frames so it would have caused issues.. Can you please check this out? It wouldn't cause issues with h/w crypt. Please let me know whether it solves your issue.. It works for me.

I did a quick test and your -v2 patch plus this change appears to work fine.

Please note that you v2 patch would need some additional changes with the above patch, because is_mc is no longer used in that method as far as I can tell.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#9 lore raw
Quoted 64 lines · Ben Greear
Quoted 63 lines · Senthil Balasubramanian
Quoted 35 lines · Ben Greear
Quoted 34 lines · Mohammed Shafi
Quoted 33 lines · Ben Greear
Quoted 19 lines · Mohammed Shafi
Quoted 9 lines · Ben Greear
Quoted 7 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

Quoted 4 lines

Ben can you please give some more information(or just point out some link) regarding your test case,I can try it out.
thanks,
shafi

Try this script, or something like it:

http://www.spinics.net/lists/linux-wireless/msg60126.html

Edit 'max' to create a small number of STA interfaces or you will probably have
worse issues than them just not associating!

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

You have to enable the nohwcrypt module option.

Let me know if that doesn't work and I can probably put together something more specific.

thanks Ben.

Were you able to reproduce the problem?

I can reproduce this issue with single vif itself and with s/w crypt enabled.

Can you please apply the v2 patch and try the following change on top of it in

drivers/net/wireless/ath/ath9k/recv.c +1 -1
index 6c0c796..4871849 100644
@@ -1069,7 +1069,7 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
 
         keyix = rx_stats->rs_keyix;
 
-       if ((is_mc || !(keyix == ATH9K_RXKEYIX_INVALID))&&  !decrypt_error&&
+       if (!(keyix == ATH9K_RXKEYIX_INVALID)&&  !decrypt_error&&
             ieee80211_has_protected(fc)) {
                 rxs->flag |= RX_FLAG_DECRYPTED;
         } else if (ieee80211_has_protected(fc)
Quoted 5 lines
Quoted 3 lines

I haven't tested s/w crypto and this check causes mac80211 not to decrypt frames so it would have caused issues.. Can you please check this out? It wouldn't cause issues with h/w crypt. Please let me know whether it solves your issue.. It works for me.

I did a quick test and your -v2 patch plus this change appears to work fine.

Thanks for verifying this hunk on top of my v2.

Quoted 3 lines

Please note that you v2 patch would need some additional changes with the above patch, because is_mc is no longer used in that method as far

is_mc is not required and using this was the bug as far as s/w crypto is concerned. The else part is already handling the is_mc case.

Actually speaking the if and else is not required to run if the crypto is not offloaded. However that is just a cleanup and not a candidate for stable.

Anyway I shall send out the updated patch without is_mc.

Quoted 9 lines

as I can tell.

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#10 lore raw
In reply to Ben Greear
Quoted 7 lines · Ben Greear
Quoted 6 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 6 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

I'm reverting v1 and ignoring v2 on the basis of this report.

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.
#11 lore raw
In reply to Ben Greear
Quoted 7 lines · Ben Greear
Quoted 6 lines · Senthil Balasubramanian

AR_RxKeyIdxValid will not be set for bcast/mcast frames and so relying this status for MIC failed frames is buggy.

Due to this, MIC failure events for broadcast frames are not sent to supplicant resulted in AP disconnecting the STA.

Quoted 8 lines
Quoted 1 line

Able to pass Wifi Test case 5.2.18 with this fix.

Please do not apply this yet. As far as I can tell, either of these patches breaks multiple VIF scenarios. I'm not sure exactly why, but I had to revert this to get any of my interfaces to associate.

I'm using software encryption in case that matters.

Are you saying that you have issues with this patch (either v1 or v2) and only when software encryption is used ??? Please confirm.

This patch fixes a regression which was introduced in 2.6.36 kernel. so essentially what this patch does is nothing but what was happening in 2.6.35 kernel and below. It should not create any new issues from what I can see. Anyway let us enable s/w encryption also and verify.

Quoted 31 lines

Senthil: Any chance you could test with a few VIFS to see if you see the same problem?

Here is a dmesg snippet from wireless-testing with the v1 reverted and v2 applied:

sta9: authenticate with 00:14:d1:c6:d2:54 (try 1)
sta9: authenticated
sta9: associate with 00:14:d1:c6:d2:54 (try 1)
sta9: RX AssocResp from 00:14:d1:c6:d2:54 (capab=0x431 status=1 aid=0)
sta9: 00:14:d1:c6:d2:54 denied association (code=1)
sta9: deauthenticating from 00:14:d1:c6:d2:54 by local choice (reason=3) ieee80211 wiphy0: device now idle
ieee80211 wiphy0: device no longer idle - scanning
ieee80211 wiphy0: device now idle
ieee80211 wiphy0: device no longer idle - working
sta10: authenticate with 00:14:d1:c6:d2:54 (try 1)
sta10: authenticated
sta10: associate with 00:14:d1:c6:d2:54 (try 1)
sta10: RX AssocResp from 00:14:d1:c6:d2:54 (capab=0x431 status=1 aid=0)
sta10: 00:14:d1:c6:d2:54 denied association (code=1)
sta10: deauthenticating from 00:14:d1:c6:d2:54 by local choice (reason=3)

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com