1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name /** 18*5113495bSYour Name * DOC: wlan_cfg80211_afc.h 19*5113495bSYour Name * 20*5113495bSYour Name * This Header file provide declaration for cfg80211 vendor command handler API 21*5113495bSYour Name * and structures. 22*5113495bSYour Name */ 23*5113495bSYour Name 24*5113495bSYour Name #ifndef __WLAN_CFG80211_AFC_H__ 25*5113495bSYour Name #define __WLAN_CFG80211_AFC_H__ 26*5113495bSYour Name 27*5113495bSYour Name #include <wlan_objmgr_cmn.h> 28*5113495bSYour Name #include <qdf_types.h> 29*5113495bSYour Name #include <net/cfg80211.h> 30*5113495bSYour Name #include <qca_vendor.h> 31*5113495bSYour Name #include <wlan_reg_ucfg_api.h> 32*5113495bSYour Name 33*5113495bSYour Name #ifdef CONFIG_AFC_SUPPORT 34*5113495bSYour Name 35*5113495bSYour Name extern const struct nla_policy 36*5113495bSYour Name wlan_cfg80211_afc_response_policy[QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX + 1]; 37*5113495bSYour Name 38*5113495bSYour Name /** 39*5113495bSYour Name * wlan_cfg80211_vendor_afc_response() - To handle vendor AFC response command 40*5113495bSYour Name * @psoc: Pointer to PSOC object 41*5113495bSYour Name * @pdev: Pointer to PDEV object 42*5113495bSYour Name * @data: Pointer to the data received via the vendor interface 43*5113495bSYour Name * @data_len: Length of the data to be passed 44*5113495bSYour Name * 45*5113495bSYour Name * Return: 0 on success, negative errno on failure 46*5113495bSYour Name */ 47*5113495bSYour Name int wlan_cfg80211_vendor_afc_response(struct wlan_objmgr_psoc *psoc, 48*5113495bSYour Name struct wlan_objmgr_pdev *pdev, 49*5113495bSYour Name const void *data, 50*5113495bSYour Name int data_len); 51*5113495bSYour Name 52*5113495bSYour Name /** 53*5113495bSYour Name * wlan_cfg80211_afc_send_request() - To handle AFC request from 54*5113495bSYour Name * regulatory AFC component. 55*5113495bSYour Name * @pdev: Pointer to PDEV object 56*5113495bSYour Name * @afc_req: Pointer to AFC request 57*5113495bSYour Name * 58*5113495bSYour Name * Return: 0 on success, negative errno on failure 59*5113495bSYour Name */ 60*5113495bSYour Name int wlan_cfg80211_afc_send_request(struct wlan_objmgr_pdev *pdev, 61*5113495bSYour Name struct wlan_afc_host_request *afc_req); 62*5113495bSYour Name 63*5113495bSYour Name /** 64*5113495bSYour Name * wlan_cfg80211_afc_send_update_complete() - To handle AFC update complete 65*5113495bSYour Name * event from regulatory AFC component. 66*5113495bSYour Name * @pdev: Pointer to PDEV object 67*5113495bSYour Name * @afc_evt: Pointer to AFC power update complete event 68*5113495bSYour Name * 69*5113495bSYour Name * Return: 0 on success, negative errno on failure 70*5113495bSYour Name */ 71*5113495bSYour Name int 72*5113495bSYour Name wlan_cfg80211_afc_send_update_complete(struct wlan_objmgr_pdev *pdev, 73*5113495bSYour Name struct reg_fw_afc_power_event *afc_evt); 74*5113495bSYour Name #endif 75*5113495bSYour Name #endif 76