linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] wlcore: Adding suppoprt for IGTK key in wlcore driver
@ 2020-04-21  9:39 Raz Bouganim
  2020-04-21 11:39 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Raz Bouganim @ 2020-04-21  9:39 UTC (permalink / raw)
  To: kvalo; +Cc: linux-wireless, d-levy, Raz Bouganim

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: Raz Bouganim <r-bouganim@ti.com>
---
 drivers/net/wireless/ti/wlcore/cmd.h  | 1 +
 drivers/net/wireless/ti/wlcore/main.c | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/drivers/net/wireless/ti/wlcore/cmd.h b/drivers/net/wireless/ti/wlcore/cmd.h
index f2609d5..1d14bd1 100644
--- a/drivers/net/wireless/ti/wlcore/cmd.h
+++ b/drivers/net/wireless/ti/wlcore/cmd.h
@@ -458,6 +458,7 @@ enum wl1271_cmd_key_type {
 	KEY_TKIP = 2,
 	KEY_AES  = 3,
 	KEY_GEM  = 4,
+KEY_IGTK = 5,
 };
 
 struct wl1271_cmd_set_keys {
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index f140f7d..1a75959 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -3547,6 +3547,9 @@ int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd,
 	case WL1271_CIPHER_SUITE_GEM:
 		key_type = KEY_GEM;
 		break;
+case WLAN_CIPHER_SUITE_AES_CMAC:
+key_type = KEY_IGTK;
+break;
 	default:
 		wl1271_error("Unknown key algo 0x%x", key_conf->cipher);
 
@@ -6214,6 +6217,7 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
 		WLAN_CIPHER_SUITE_TKIP,
 		WLAN_CIPHER_SUITE_CCMP,
 		WL1271_CIPHER_SUITE_GEM,
+WLAN_CIPHER_SUITE_AES_CMAC,
 	};
 
 	/* The tx descriptor buffer */
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] wlcore: Adding suppoprt for IGTK key in wlcore driver
  2020-04-21  9:39 [PATCH v2] wlcore: Adding suppoprt for IGTK key in wlcore driver Raz Bouganim
@ 2020-04-21 11:39 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2020-04-21 11:39 UTC (permalink / raw)
  To: Raz Bouganim; +Cc: linux-wireless, d-levy

Raz Bouganim <r-bouganim@ti.com> writes:

> 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: Raz Bouganim <r-bouganim@ti.com>
> ---
>  drivers/net/wireless/ti/wlcore/cmd.h  | 1 +
>  drivers/net/wireless/ti/wlcore/main.c | 4 ++++
>  2 files changed, 5 insertions(+)
>
> diff --git a/drivers/net/wireless/ti/wlcore/cmd.h b/drivers/net/wireless/ti/wlcore/cmd.h
> index f2609d5..1d14bd1 100644
> --- a/drivers/net/wireless/ti/wlcore/cmd.h
> +++ b/drivers/net/wireless/ti/wlcore/cmd.h
> @@ -458,6 +458,7 @@ enum wl1271_cmd_key_type {
>  	KEY_TKIP = 2,
>  	KEY_AES  = 3,
>  	KEY_GEM  = 4,
> +KEY_IGTK = 5,
>  };

The indentation is still all broken up, look at the end result:

enum wl1271_cmd_key_type {
	KEY_NONE = 0,
	KEY_WEP  = 1,
	KEY_TKIP = 2,
	KEY_AES  = 3,
	KEY_GEM  = 4,
KEY_IGTK = 5,
};

Can someone help Raz with this?

-- 
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-21 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-21  9:39 [PATCH v2] wlcore: Adding suppoprt for IGTK key in wlcore driver Raz Bouganim
2020-04-21 11:39 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).