diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-09-28 11:11:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-28 11:11:16 -0400 |
commit | c487606f835a93a725bac1aefd536be98f22474d (patch) | |
tree | c77571a519905945e24a9ea6e4e44d9032fd527d /drivers/net/wireless/p54 | |
parent | d9f72f359e00a45a6cd7cc2d5121b04b9dc927e1 (diff) | |
parent | 97ea6d0f3eb019891038cd2dfddb749d6bf219be (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Conflicts:
net/nfc/netlink.c
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index 2969d5321ca6..aadda99989c0 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
@@ -515,6 +515,17 @@ static int p54_set_key(struct ieee80211_hw *dev, enum set_key_cmd cmd, | |||
515 | if (modparam_nohwcrypt) | 515 | if (modparam_nohwcrypt) |
516 | return -EOPNOTSUPP; | 516 | return -EOPNOTSUPP; |
517 | 517 | ||
518 | if (key->flags & IEEE80211_KEY_FLAG_RX_MGMT) { | ||
519 | /* | ||
520 | * Unfortunately most/all firmwares are trying to decrypt | ||
521 | * incoming management frames if a suitable key can be found. | ||
522 | * However, in doing so the data in these frames gets | ||
523 | * corrupted. So, we can't have firmware supported crypto | ||
524 | * offload in this case. | ||
525 | */ | ||
526 | return -EOPNOTSUPP; | ||
527 | } | ||
528 | |||
518 | mutex_lock(&priv->conf_mutex); | 529 | mutex_lock(&priv->conf_mutex); |
519 | if (cmd == SET_KEY) { | 530 | if (cmd == SET_KEY) { |
520 | switch (key->cipher) { | 531 | switch (key->cipher) { |
@@ -738,6 +749,7 @@ struct ieee80211_hw *p54_init_common(size_t priv_data_len) | |||
738 | IEEE80211_HW_SIGNAL_DBM | | 749 | IEEE80211_HW_SIGNAL_DBM | |
739 | IEEE80211_HW_SUPPORTS_PS | | 750 | IEEE80211_HW_SUPPORTS_PS | |
740 | IEEE80211_HW_PS_NULLFUNC_STACK | | 751 | IEEE80211_HW_PS_NULLFUNC_STACK | |
752 | IEEE80211_HW_MFP_CAPABLE | | ||
741 | IEEE80211_HW_REPORTS_TX_ACK_STATUS; | 753 | IEEE80211_HW_REPORTS_TX_ACK_STATUS; |
742 | 754 | ||
743 | dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | | 755 | dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | |