Commit 2b7aadd3 authored by Raz Bouganim's avatar Raz Bouganim Committed by Kalle Valo

wlcore: Adding suppoprt for IGTK key in wlcore driver

This patch adding support for new cipher suite - AES-CMAC in wlcore driver.
This patch is required for support PMF/WPA3 connection to install IGTK key.
Signed-off-by: default avatarRaz Bouganim <r-bouganim@ti.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1587472085-755-1-git-send-email-r-bouganim@ti.com
parent 5ad4d895
...@@ -458,6 +458,7 @@ enum wl1271_cmd_key_type { ...@@ -458,6 +458,7 @@ enum wl1271_cmd_key_type {
KEY_TKIP = 2, KEY_TKIP = 2,
KEY_AES = 3, KEY_AES = 3,
KEY_GEM = 4, KEY_GEM = 4,
KEY_IGTK = 5,
}; };
struct wl1271_cmd_set_keys { struct wl1271_cmd_set_keys {
......
...@@ -3547,6 +3547,9 @@ int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd, ...@@ -3547,6 +3547,9 @@ int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd,
case WL1271_CIPHER_SUITE_GEM: case WL1271_CIPHER_SUITE_GEM:
key_type = KEY_GEM; key_type = KEY_GEM;
break; break;
case WLAN_CIPHER_SUITE_AES_CMAC:
key_type = KEY_IGTK;
break;
default: default:
wl1271_error("Unknown key algo 0x%x", key_conf->cipher); wl1271_error("Unknown key algo 0x%x", key_conf->cipher);
...@@ -6214,6 +6217,7 @@ static int wl1271_init_ieee80211(struct wl1271 *wl) ...@@ -6214,6 +6217,7 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
WLAN_CIPHER_SUITE_TKIP, WLAN_CIPHER_SUITE_TKIP,
WLAN_CIPHER_SUITE_CCMP, WLAN_CIPHER_SUITE_CCMP,
WL1271_CIPHER_SUITE_GEM, WL1271_CIPHER_SUITE_GEM,
WLAN_CIPHER_SUITE_AES_CMAC,
}; };
/* The tx descriptor buffer */ /* The tx descriptor buffer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment