Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314005
b: refs/heads/master
c: 6851dff
h: refs/heads/master
i:
  314003: 870d5ce
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Jun 6, 2012
1 parent 2e1f421 commit 6b9122f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 620a55687b20c23ca7b8d8560b0e8fb3ca13869a
refs/heads/master: 6851dff3e6b858f2759fc9ecebc4ec608df81805
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/rt2x00/rt2x00dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,8 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
BIT(NL80211_IFTYPE_MESH_POINT) |
BIT(NL80211_IFTYPE_WDS);

rt2x00dev->hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;

/*
* Initialize work.
*/
Expand Down
14 changes: 12 additions & 2 deletions trunk/drivers/net/wireless/rt2x00/rt2x00mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,19 @@ int rt2x00mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,

if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags))
return 0;
else if (!test_bit(CAPABILITY_HW_CRYPTO, &rt2x00dev->cap_flags))

if (!test_bit(CAPABILITY_HW_CRYPTO, &rt2x00dev->cap_flags))
return -EOPNOTSUPP;

/*
* To support IBSS RSN, don't program group keys in IBSS, the
* hardware will then not attempt to decrypt the frames.
*/
if (vif->type == NL80211_IFTYPE_ADHOC &&
!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE))
return -EOPNOTSUPP;
else if (key->keylen > 32)

if (key->keylen > 32)
return -ENOSPC;

memset(&crypto, 0, sizeof(crypto));
Expand Down

0 comments on commit 6b9122f

Please sign in to comment.