OSDN Git Service

msm: Add CLD80211_ATTR_META_DATA vendor attribute
authorNaveen Rawat <naveenrawat@codeaurora.org>
Mon, 18 Sep 2017 19:20:20 +0000 (12:20 -0700)
committerPeng Xu <pxu@codeaurora.org>
Thu, 21 Sep 2017 18:33:14 +0000 (11:33 -0700)
Add CLD80211_ATTR_META_DATA vendor attribute, which will be used by
userspace RTT application to send meta data to wlan driver allowing
it to peek into RTT request message without opening up complete
definition of RTT message.

Change-Id: If2f8253b59c6860fbaecab05f1b76f11da1ddb6f
CRs-Fixed: 2114181
Signed-off-by: Naveen Rawat <naveenrawat@codeaurora.org>
drivers/net/wireless/cnss_genl/cnss_nl.c
include/net/cnss_nl.h

index fafd9ce..29dd4c9 100644 (file)
@@ -64,6 +64,8 @@ static const struct nla_policy cld80211_policy[CLD80211_ATTR_MAX + 1] = {
        [CLD80211_ATTR_VENDOR_DATA] = { .type = NLA_NESTED },
        [CLD80211_ATTR_DATA] = { .type = NLA_BINARY,
                                 .len = CLD80211_MAX_NL_DATA },
+       [CLD80211_ATTR_META_DATA] = { .type = NLA_BINARY,
+                                .len = CLD80211_MAX_NL_DATA },
 };
 
 static int cld80211_pre_doit(const struct genl_ops *ops, struct sk_buff *skb,
index 86c2fcc..b8a7cfd 100644 (file)
  * @CLD80211_ATTR_VENDOR_DATA: Embed all other attributes in this nested
  *     attribute.
  * @CLD80211_ATTR_DATA: Embed complete data in this attribute
+ * @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.
  *
  * Any new message in future can be added as another attribute
  */
 enum cld80211_attr {
        CLD80211_ATTR_VENDOR_DATA = 1,
        CLD80211_ATTR_DATA,
+       CLD80211_ATTR_META_DATA,
        /* add new attributes above here */
 
        __CLD80211_ATTR_AFTER_LAST,