qcacmn: Add support for NLA type CAP_RESP in LOWI
Host driver processes cld80211 vendor sub command CLD80211_VENDOR_SUB_CMD_GET_CAPS and respond with NLA type CAP response CRs-Fixed: 2595140 Change-Id: I5a6aa1fac537ca618404520b81c541a20dafd6fb
This commit is contained in:

committed by
nshrivas

parent
644413b274
commit
23a3603951
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2017, 2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2017, 2019-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -40,6 +40,35 @@
|
||||
|
||||
typedef int (*nl_srv_msg_callback)(struct sk_buff *skb);
|
||||
|
||||
/**
|
||||
* cld80211_oem_send_reply() - API to send cld80211 msg
|
||||
* @skb: Sk buffer
|
||||
* @hdr: nl80211hdr pointer
|
||||
* @nest: pointer of vendor nested attribute
|
||||
* @flags: Flags
|
||||
*
|
||||
* API to send cld80211 msg to applications
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void cld80211_oem_send_reply(struct sk_buff *msg, void *hdr,
|
||||
struct nlattr *nest, int flags);
|
||||
|
||||
/**
|
||||
* nl80211hdr_put() - API to allocate skb for cld80211 msg
|
||||
* @hdr: nl80211hdr pointer
|
||||
* @portid: Port ID
|
||||
* @nest: pointer of vendor nested attribute
|
||||
* @flags: Flags
|
||||
*
|
||||
* API to allocate skb for cld80211 msg
|
||||
*
|
||||
* Return: Pointer to skbuff
|
||||
*/
|
||||
|
||||
struct sk_buff *
|
||||
cld80211_oem_rsp_alloc_skb(uint32_t portid, void **hdr, struct nlattr **nest,
|
||||
int *flags);
|
||||
int nl_srv_init(void *wiphy, int proto);
|
||||
void nl_srv_exit(void);
|
||||
int nl_srv_register(tWlanNlModTypes msg_type, nl_srv_msg_callback msg_handler);
|
||||
@@ -50,6 +79,21 @@ int nl_srv_unregister(tWlanNlModTypes msg_type,
|
||||
int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag,
|
||||
int app_id, int mcgroup_id);
|
||||
int nl_srv_bcast(struct sk_buff *skb, int mcgroup_id, int app_id);
|
||||
|
||||
/**
|
||||
* nl80211hdr_put() - API to fill genlmsg header
|
||||
* @skb: Sk buffer
|
||||
* @portid: Port ID
|
||||
* @seq: Sequence number
|
||||
* @flags: Flags
|
||||
* @cmd: Command id
|
||||
*
|
||||
* API to fill genl message header for brodcast events to user space
|
||||
*
|
||||
* Return: Pointer to user specific header/payload
|
||||
*/
|
||||
void *nl80211hdr_put(struct sk_buff *skb, uint32_t portid,
|
||||
uint32_t seq, int flags, uint8_t cmd);
|
||||
#else
|
||||
int nl_srv_ucast(struct sk_buff *skb, int dst_pid, int flag);
|
||||
int nl_srv_bcast(struct sk_buff *skb);
|
||||
|
Reference in New Issue
Block a user