diff mbox series

[2/2,rpcd] iwinfo: add support for 802.11ad and GCMP

Message ID X/R74hkpK/sQvWN8@makrotopia.org
State Accepted
Delegated to: Daniel Golle
Headers show
Series [1/2,iwinfo] iwinfo: add support for GCMP cipher | expand

Commit Message

Daniel Golle Jan. 5, 2021, 2:46 p.m. UTC
Add support for 802.11ad hardware mode as well as the GCMP WPA chipher
(which is commonly used with 802.11ad).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 iwinfo.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/iwinfo.c b/iwinfo.c
index 1849196..a09f251 100644
--- a/iwinfo.c
+++ b/iwinfo.c
@@ -199,6 +199,9 @@  rpc_iwinfo_add_encryption(const char *name, struct iwinfo_crypto_entry *e)
 		if (ciph & IWINFO_CIPHER_CCMP)
 			blobmsg_add_string(&buf, NULL, "ccmp");
 
+		if (ciph & IWINFO_CIPHER_GCMP)
+			blobmsg_add_string(&buf, NULL, "gcmp");
+
 		if (ciph & IWINFO_CIPHER_WRAP)
 			blobmsg_add_string(&buf, NULL, "wrap");
 
@@ -271,6 +274,9 @@  rpc_iwinfo_call_hwmodes(const char *name)
 	{
 		c = blobmsg_open_array(&buf, name);
 
+		if (modes & IWINFO_80211_AD)
+			blobmsg_add_string(&buf, NULL, "ad");
+
 		if (modes & IWINFO_80211_AC)
 			blobmsg_add_string(&buf, NULL, "ac");