Skip to contentSkip to conversation

mac80211: read station mgmt keys via get_key call

PATCH Applied [email protected] 2 participants 2 messages Dec 8, 2013 – Dec 16, 2013 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: read station mgmt keys via get_key call

From: Max Stepanov <[email protected]>

Allow to read management keys stored in a station's gtk key array with a get_key function.

---
 net/mac80211/cfg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/mac80211/cfg.c +2 -1
index 00fa219..e96960f 100644
@@ -303,7 +303,8 @@ static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev,
 
 		if (pairwise && key_idx < NUM_DEFAULT_KEYS)
 			key = rcu_dereference(sta->ptk[key_idx]);
-		else if (!pairwise && key_idx < NUM_DEFAULT_KEYS)
+		else if (!pairwise &&
+			 key_idx < NUM_DEFAULT_KEYS + NUM_DEFAULT_MGMT_KEYS)
 			key = rcu_dereference(sta->gtk[key_idx]);
 	} else
 		key = rcu_dereference(sdata->keys[key_idx]);
Signature · 1 line
1.8.5.rc2
maintainer Applied
#1 lore raw
Quoted 4 lines · On Sun, 2013-12-08 at 13:31 +0200, [email protected] wrote:

From: Max Stepanov <[email protected]>

Allow to read management keys stored in a station's gtk key array with a get_key function.

Applied.

johannes