aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-09-04 11:08:23 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-09-10 05:29:17 -0400
commite548c49e6dc6b08b59042930a2e90c69c13c9293 (patch)
tree76973d2c36413b68fe646fedefd7d58c41645fff /drivers/net/wireless/ath/ath9k/main.c
parent2cc59e784b54fb95accbd5f5a9d12041eec72dbc (diff)
mac80211: add key flag for management keys
Mark keys that might be used to receive management frames so drivers can fall back on software crypto for them if they don't support hardware offload. As the new flag is only set correctly for RX keys and the existing IEEE80211_KEY_FLAG_SW_MGMT flag can only affect TX, also rename the latter to IEEE80211_KEY_FLAG_SW_MGMT_TX. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 4d8dc9ff5a75..06c628e85a43 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1441,7 +1441,7 @@ static int ath9k_set_key(struct ieee80211_hw *hw,
1441 key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; 1441 key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
1442 if (sc->sc_ah->sw_mgmt_crypto && 1442 if (sc->sc_ah->sw_mgmt_crypto &&
1443 key->cipher == WLAN_CIPHER_SUITE_CCMP) 1443 key->cipher == WLAN_CIPHER_SUITE_CCMP)
1444 key->flags |= IEEE80211_KEY_FLAG_SW_MGMT; 1444 key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX;
1445 ret = 0; 1445 ret = 0;
1446 } 1446 }
1447 break; 1447 break;