xref: /wlan-driver/qcacld-3.0/os_if/coap/inc/wlan_cfg80211_coap.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 /**
18  * DOC: declares driver functions interfacing with linux kernel
19  */
20 
21 #ifndef _WLAN_CFG80211_COAP_H_
22 #define _WLAN_CFG80211_COAP_H_
23 #include <wlan_objmgr_vdev_obj.h>
24 
25 #ifdef WLAN_FEATURE_COAP
26 /**
27  * wlan_cfg80211_coap_offload() - configure CoAP offloading
28  * @wiphy: pointer to wireless wiphy structure.
29  * @vdev: VDEV Object pointer
30  * @data: pointer to netlink TLV buffer
31  * @data_len: the length of @data in bytes
32  *
33  * Return: An error code or 0 on success.
34  */
35 int
36 wlan_cfg80211_coap_offload(struct wiphy *wiphy, struct wlan_objmgr_vdev *vdev,
37 			   const void *data, int data_len);
38 #endif
39 #endif
40