cnss_nl: Add new attributes for cld80211 attr list

CLD80211_ATTR_CMD and CLD80211_ATTR_CMD_TAG_DATA are the
new attributes that are allowed for cld80211 family msgs
CLD80211_ATTR_CMD has cld80211 vendor subcommand in it,
while CLD80211_ATTR_CMD_TAG_DATA has nested sub attributes
of specified sub command.

CRs-Fixed: 2635543
Change-Id: I86004891e382cae29230edc654d2f8da0ddcc61b
Signed-off-by: Vinay Gannevaram <vganneva@codeaurora.org>
diff --git a/drivers/net/wireless/cnss_genl/cnss_nl.c b/drivers/net/wireless/cnss_genl/cnss_nl.c
index 29dd4c9..b399fc9 100644
--- a/drivers/net/wireless/cnss_genl/cnss_nl.c
+++ b/drivers/net/wireless/cnss_genl/cnss_nl.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
@@ -66,6 +66,8 @@
 				 .len = CLD80211_MAX_NL_DATA },
 	[CLD80211_ATTR_META_DATA] = { .type = NLA_BINARY,
 				 .len = CLD80211_MAX_NL_DATA },
+	[CLD80211_ATTR_CMD] = { .type = NLA_U32 },
+	[CLD80211_ATTR_CMD_TAG_DATA] = { .type = NLA_NESTED },
 };
 
 static int cld80211_pre_doit(const struct genl_ops *ops, struct sk_buff *skb,
diff --git a/include/net/cnss_nl.h b/include/net/cnss_nl.h
index b8a7cfd..ede9505 100644
--- a/include/net/cnss_nl.h
+++ b/include/net/cnss_nl.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
@@ -26,6 +26,10 @@
  * @CLD80211_ATTR_META_DATA: Embed meta data for above data. This will help
  * wlan driver to peek into request message packet without opening up definition
  * of complete request message.
+ * @CLD80211_ATTR_CMD: cld80211 vendor subcommand in this attribute
+ * @CLD80211_ATTR_CMD_TAG_DATA: cld80211 vendor subcommand data is present in
+ * this attribute. It is a nested attribute with sub attributes of specified
+ * vendor sub command.
  *
  * Any new message in future can be added as another attribute
  */
@@ -33,6 +37,8 @@
 	CLD80211_ATTR_VENDOR_DATA = 1,
 	CLD80211_ATTR_DATA,
 	CLD80211_ATTR_META_DATA,
+	CLD80211_ATTR_CMD,
+	CLD80211_ATTR_CMD_TAG_DATA,
 	/* add new attributes above here */
 
 	__CLD80211_ATTR_AFTER_LAST,