xref: /wlan-driver/qcacld-3.0/os_if/coex/inc/wlan_cfg80211_coex.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2020, The Linux Foundation. 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_COEX_H_
22 #define _WLAN_CFG80211_COEX_H_
23 #include <wlan_cfg80211.h>
24 #include <wlan_objmgr_cmn.h>
25 
26 extern const struct nla_policy
27 	btc_chain_mode_policy
28 	[QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX + 1];
29 
30 #ifdef FEATURE_COEX
31 int wlan_cfg80211_coex_set_btc_chain_mode(struct wlan_objmgr_vdev *vdev,
32 					  const void *data, int data_len);
33 #else
34 static inline int
wlan_cfg80211_coex_set_btc_chain_mode(struct wlan_objmgr_vdev * vdev,const void * data,int data_len)35 wlan_cfg80211_coex_set_btc_chain_mode(struct wlan_objmgr_vdev *vdev,
36 				      const void *data, int data_len)
37 {
38 	return -ENOTSUPP;
39 }
40 #endif
41 #endif
42