xref: /wlan-dirver/qca-wifi-host-cmn/target_if/regulatory/inc/target_if_reg.h (revision 97f44cd39e4ff816eaa1710279d28cf6b9e65ad9)
1 /*
2  * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
3  *
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: target_if_reg.h
22  * This file contains regulatory target interfaces.
23  */
24 #ifndef __TARGET_IF_REG_H__
25 #define __TARGET_IF_REG_H__
26 
27 /**
28  * tgt_if_regulatory_modify_freq_range() - Modify low and high freq ranges based
29  * on wireless mode.
30  * @psoc: psoc pointer
31  *
32  * Return: Success or Failure
33  */
34 QDF_STATUS tgt_if_regulatory_modify_freq_range(struct wlan_objmgr_psoc *psoc);
35 
36 /**
37  * target_if_register_regulatory_tx_ops() - register regulatory tx ops
38  *
39  * @tx_ops: tx_ops pointer
40  * Return: Success or Failure
41  */
42 QDF_STATUS target_if_register_regulatory_tx_ops(
43 		struct wlan_lmac_if_tx_ops *tx_ops);
44 
45 /**
46  * target_if_reg_set_offloaded_info() - populate regulatory offloaded info
47  *
48  * @psoc: psoc pointer
49  * Return: Success or Failure
50  */
51 QDF_STATUS target_if_reg_set_offloaded_info(struct wlan_objmgr_psoc *psoc);
52 
53 /**
54  * target_if_reg_set_6ghz_info() - populate 6ghz enablement info
55  * @psoc: psoc pointer
56  * Return: Success or Failure
57  */
58 QDF_STATUS target_if_reg_set_6ghz_info(struct wlan_objmgr_psoc *psoc);
59 
60 /**
61  * target_if_reg_set_5dot9_ghz_info() - populate 5.9ghz enablement info
62  * @psoc: psoc pointer
63  * Return: Success or Failure
64  */
65 QDF_STATUS target_if_reg_set_5dot9_ghz_info(struct wlan_objmgr_psoc *psoc);
66 
67 /**
68  * target_if_regulatory_get_rx_ops() - Get regdb rx ops
69  * @psoc: pointer to psoc object
70  *
71  * Return: Reg rx_ops
72  */
73 struct wlan_lmac_if_reg_rx_ops *
74 target_if_regulatory_get_rx_ops(struct wlan_objmgr_psoc *psoc);
75 #endif /* __TARGET_IF_REG_H__ */
76