1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name /** 21*5113495bSYour Name * DOC: declares P2P functions interfacing with linux kernel 22*5113495bSYour Name */ 23*5113495bSYour Name 24*5113495bSYour Name #ifndef _WLAN_CFG80211_P2P_H_ 25*5113495bSYour Name #define _WLAN_CFG80211_P2P_H_ 26*5113495bSYour Name 27*5113495bSYour Name #include <qdf_types.h> 28*5113495bSYour Name 29*5113495bSYour Name struct wlan_objmgr_psoc; 30*5113495bSYour Name struct wlan_objmgr_vdev; 31*5113495bSYour Name struct ieee80211_channel; 32*5113495bSYour Name 33*5113495bSYour Name /** 34*5113495bSYour Name * p2p_psoc_enable() - psoc API to enable p2p component 35*5113495bSYour Name * @psoc: soc object 36*5113495bSYour Name * 37*5113495bSYour Name * This function used to enable P2P component and register events. 38*5113495bSYour Name * 39*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 40*5113495bSYour Name */ 41*5113495bSYour Name QDF_STATUS p2p_psoc_enable(struct wlan_objmgr_psoc *psoc); 42*5113495bSYour Name 43*5113495bSYour Name /** 44*5113495bSYour Name * p2p_psoc_disable() - psoc API to disable p2p component 45*5113495bSYour Name * @psoc: soc object 46*5113495bSYour Name * 47*5113495bSYour Name * This function used to disable P2P component and unregister events. 48*5113495bSYour Name * 49*5113495bSYour Name * Return: QDF_STATUS_SUCCESS - in case of success 50*5113495bSYour Name */ 51*5113495bSYour Name QDF_STATUS p2p_psoc_disable(struct wlan_objmgr_psoc *psoc); 52*5113495bSYour Name 53*5113495bSYour Name /** 54*5113495bSYour Name * wlan_cfg80211_roc() - API to process cfg80211 roc request 55*5113495bSYour Name * @vdev: Pointer to vdev object 56*5113495bSYour Name * @chan: Pointer to channel 57*5113495bSYour Name * @duration: Duration for this roc request 58*5113495bSYour Name * @cookie: Pointer to return cookie to up layer 59*5113495bSYour Name * 60*5113495bSYour Name * API to trigger remain on channel request. It returns cookie 61*5113495bSYour Name * as the identifier of roc. 62*5113495bSYour Name * 63*5113495bSYour Name * Return: 0 for success, non zero for failure 64*5113495bSYour Name */ 65*5113495bSYour Name int wlan_cfg80211_roc(struct wlan_objmgr_vdev *vdev, 66*5113495bSYour Name struct ieee80211_channel *chan, uint32_t duration, 67*5113495bSYour Name uint64_t *cookie); 68*5113495bSYour Name 69*5113495bSYour Name /** 70*5113495bSYour Name * wlan_cfg80211_cancel_roc() - API to process cfg80211 cancel remain 71*5113495bSYour Name * on channel request 72*5113495bSYour Name * @vdev: Pointer to vdev object 73*5113495bSYour Name * @cookie: Find out the roc request by cookie 74*5113495bSYour Name * 75*5113495bSYour Name * API to trigger cancel remain on channel request. 76*5113495bSYour Name * 77*5113495bSYour Name * Return: 0 for success, non zero for failure 78*5113495bSYour Name */ 79*5113495bSYour Name int wlan_cfg80211_cancel_roc(struct wlan_objmgr_vdev *vdev, 80*5113495bSYour Name uint64_t cookie); 81*5113495bSYour Name 82*5113495bSYour Name /** 83*5113495bSYour Name * wlan_cfg80211_mgmt_tx() - API to process cfg80211 mgmt tx request 84*5113495bSYour Name * @vdev: Pointer to vdev object 85*5113495bSYour Name * @chan: Pointer to channel 86*5113495bSYour Name * @offchan: true if this is an off-channel frame 87*5113495bSYour Name * @wait: wait time for this mgmt tx request 88*5113495bSYour Name * @buf: TX buffer 89*5113495bSYour Name * @len: Length of tx buffer 90*5113495bSYour Name * @no_cck: Required cck or not 91*5113495bSYour Name * @dont_wait_for_ack: Wait for ack or not 92*5113495bSYour Name * @cookie: Return the cookie to caller 93*5113495bSYour Name * 94*5113495bSYour Name * API to trigger mgmt frame tx request. It returns cookie as the 95*5113495bSYour Name * identifier of this tx. 96*5113495bSYour Name * 97*5113495bSYour Name * Return: 0 for success, non zero for failure 98*5113495bSYour Name */ 99*5113495bSYour Name int wlan_cfg80211_mgmt_tx(struct wlan_objmgr_vdev *vdev, 100*5113495bSYour Name struct ieee80211_channel *chan, bool offchan, uint32_t wait, 101*5113495bSYour Name const uint8_t *buf, uint32_t len, bool no_cck, 102*5113495bSYour Name bool dont_wait_for_ack, uint64_t *cookie); 103*5113495bSYour Name 104*5113495bSYour Name /** 105*5113495bSYour Name * wlan_cfg80211_mgmt_tx_cancel() - API to process cfg80211 cancel to 106*5113495bSYour Name * wait mgmt tx 107*5113495bSYour Name * @vdev: Pointer to vdev object 108*5113495bSYour Name * @cookie: Find out the mgmt tx request by cookie 109*5113495bSYour Name * 110*5113495bSYour Name * API to trigger cancel mgmt frame tx request. 111*5113495bSYour Name * 112*5113495bSYour Name * Return: 0 for success, non zero for failure 113*5113495bSYour Name */ 114*5113495bSYour Name int wlan_cfg80211_mgmt_tx_cancel(struct wlan_objmgr_vdev *vdev, 115*5113495bSYour Name uint64_t cookie); 116*5113495bSYour Name 117*5113495bSYour Name #endif /* _WLAN_CFG80211_P2P_H_ */ 118