linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iwlwifi regression in 20111205 merge
@ 2011-12-09  2:43 Nikolay Martynov
  2011-12-09  3:03 ` Guy, Wey-Yi
  0 siblings, 1 reply; 7+ messages in thread
From: Nikolay Martynov @ 2011-12-09  2:43 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, wey-yi.w.guy, ilw, Nikolay Martynov

  It looks like the regression was introduced between 20111202 and
20111205 (linux-next tree). Symptoms: connection to AP seem to be
established, but no data goes though it in any way. Tested on intel
5300.
  Peek at the changes have shown that it looks like at least part of
the code wasn't merged properly. It was originally committed into
iwl_agn.c but code in question was moved to iwl-mac80211.c.
  This patch puts code in place and my card works again.
  I hope this patch will be reviewed by people developing iwl
driver. Also, it is possible that some other iwl code didn't make it
though 20111205 merge as well, so this probably should be checked too.
  Please let me know if I can provide any more info.
  Thanks!

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
---
 drivers/net/wireless/iwlwifi/iwl-mac80211.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
index 794b735..55308b8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c
+++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
@@ -517,6 +517,17 @@ static int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
 		return -EOPNOTSUPP;
 	}
 
+	switch (key->cipher) {
+	case WLAN_CIPHER_SUITE_TKIP:
+		key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
+		/* fall through */
+	case WLAN_CIPHER_SUITE_CCMP:
+		key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV;
+		break;
+	default:
+		break;
+	}
+
 	/*
 	 * We could program these keys into the hardware as well, but we
 	 * don't expect much multicast traffic in IBSS and having keys
-- 
1.7.4.1


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

end of thread, other threads:[~2011-12-09 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09  2:43 [PATCH] iwlwifi regression in 20111205 merge Nikolay Martynov
2011-12-09  3:03 ` Guy, Wey-Yi
2011-12-09  3:15   ` Guy, Wey-Yi
2011-12-09 15:44     ` John W. Linville
2011-12-09 15:15       ` Guy, Wey-Yi
2011-12-09 16:51         ` John W. Linville
2011-12-09 17:00           ` Guy, Wey-Yi

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