aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-01-24 12:52:07 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-01-27 05:07:35 -0500
commit2b2ba0db1c820d04d5143452d70012cd44d7b578 (patch)
tree7c186fc249d191d9ecba66e740e7a4c922a986d5 /net/mac80211/cfg.c
parent00b9cfa3ff38401bd70c34b250ca13e5ea347b4a (diff)
mac80111: Add CCMP-256 cipher
This allows mac80211 to configure CCMP-256 to the driver and also use software-implementation within mac80211 when the driver does not support this with hardware accelaration. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> [squash ccmp256 -> mic_len argument change] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 1c1d061cff56..ef84441c119c 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -162,6 +162,7 @@ static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev,
162 return -EINVAL; 162 return -EINVAL;
163 break; 163 break;
164 case WLAN_CIPHER_SUITE_CCMP: 164 case WLAN_CIPHER_SUITE_CCMP:
165 case WLAN_CIPHER_SUITE_CCMP_256:
165 case WLAN_CIPHER_SUITE_AES_CMAC: 166 case WLAN_CIPHER_SUITE_AES_CMAC:
166 case WLAN_CIPHER_SUITE_GCMP: 167 case WLAN_CIPHER_SUITE_GCMP:
167 case WLAN_CIPHER_SUITE_GCMP_256: 168 case WLAN_CIPHER_SUITE_GCMP_256:
@@ -349,6 +350,7 @@ static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev,
349 params.seq_len = 6; 350 params.seq_len = 6;
350 break; 351 break;
351 case WLAN_CIPHER_SUITE_CCMP: 352 case WLAN_CIPHER_SUITE_CCMP:
353 case WLAN_CIPHER_SUITE_CCMP_256:
352 pn64 = atomic64_read(&key->u.ccmp.tx_pn); 354 pn64 = atomic64_read(&key->u.ccmp.tx_pn);
353 seq[0] = pn64; 355 seq[0] = pn64;
354 seq[1] = pn64 >> 8; 356 seq[1] = pn64 >> 8;