diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2015-01-24 12:52:06 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-27 05:06:09 -0500 |
commit | 00b9cfa3ff38401bd70c34b250ca13e5ea347b4a (patch) | |
tree | 1c3564bf28a6f4b49140a5e023520a1dc658d5c6 /net/mac80211/main.c | |
parent | cfcf1682c4ca8f601a4702255958e0b1c9aa12cc (diff) |
mac80111: Add GCMP and GCMP-256 ciphers
This allows mac80211 to configure GCMP and GCMP-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>
[remove a spurious newline]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index ea6b82ac4f0b..7223b4e16752 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -666,6 +666,8 @@ static int ieee80211_init_cipher_suites(struct ieee80211_local *local) | |||
666 | WLAN_CIPHER_SUITE_WEP104, | 666 | WLAN_CIPHER_SUITE_WEP104, |
667 | WLAN_CIPHER_SUITE_TKIP, | 667 | WLAN_CIPHER_SUITE_TKIP, |
668 | WLAN_CIPHER_SUITE_CCMP, | 668 | WLAN_CIPHER_SUITE_CCMP, |
669 | WLAN_CIPHER_SUITE_GCMP, | ||
670 | WLAN_CIPHER_SUITE_GCMP_256, | ||
669 | 671 | ||
670 | /* keep last -- depends on hw flags! */ | 672 | /* keep last -- depends on hw flags! */ |
671 | WLAN_CIPHER_SUITE_AES_CMAC | 673 | WLAN_CIPHER_SUITE_AES_CMAC |
@@ -724,9 +726,10 @@ static int ieee80211_init_cipher_suites(struct ieee80211_local *local) | |||
724 | /* Driver specifies cipher schemes only (but not cipher suites | 726 | /* Driver specifies cipher schemes only (but not cipher suites |
725 | * including the schemes) | 727 | * including the schemes) |
726 | * | 728 | * |
727 | * We start counting ciphers defined by schemes, TKIP and CCMP | 729 | * We start counting ciphers defined by schemes, TKIP, CCMP, |
730 | * GCMP, and GCMP-256 | ||
728 | */ | 731 | */ |
729 | n_suites = local->hw.n_cipher_schemes + 2; | 732 | n_suites = local->hw.n_cipher_schemes + 4; |
730 | 733 | ||
731 | /* check if we have WEP40 and WEP104 */ | 734 | /* check if we have WEP40 and WEP104 */ |
732 | if (have_wep) | 735 | if (have_wep) |
@@ -742,6 +745,8 @@ static int ieee80211_init_cipher_suites(struct ieee80211_local *local) | |||
742 | 745 | ||
743 | suites[w++] = WLAN_CIPHER_SUITE_CCMP; | 746 | suites[w++] = WLAN_CIPHER_SUITE_CCMP; |
744 | suites[w++] = WLAN_CIPHER_SUITE_TKIP; | 747 | suites[w++] = WLAN_CIPHER_SUITE_TKIP; |
748 | suites[w++] = WLAN_CIPHER_SUITE_GCMP; | ||
749 | suites[w++] = WLAN_CIPHER_SUITE_GCMP_256; | ||
745 | 750 | ||
746 | if (have_wep) { | 751 | if (have_wep) { |
747 | suites[w++] = WLAN_CIPHER_SUITE_WEP40; | 752 | suites[w++] = WLAN_CIPHER_SUITE_WEP40; |