xref: /wlan-dirver/qca-wifi-host-cmn/target_if/regulatory/inc/target_if_reg.h (revision a175314c51a4ce5cec2835cc8a8c7dc0c1810915)
1 /*
2  * Copyright (c) 2017-2018 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 interface
23  */
24 #ifndef __TARGET_IF_REG_H__
25 #define __TARGET_IF_REG_H__
26 
27 /**
28  * target_if_register_regulatory_tx_ops() - register regulatory tx ops
29  *
30  * @tx_ops: tx_ops pointer
31  * Return: Success or Failure
32  */
33 QDF_STATUS target_if_register_regulatory_tx_ops(struct wlan_lmac_if_tx_ops
34 						*tx_ops);
35 
36 /**
37  * target_if_reg_set_offloaded_info() - populate regulatory offloaded info
38  *
39  * @psoc: psoc pointer
40  * Return: Success or Failure
41  */
42 QDF_STATUS target_if_reg_set_offloaded_info(struct wlan_objmgr_psoc *psoc);
43 
44 /**
45  * tgt_if_regulatory_modify_freq_range() - Modify low and high freq ranges based
46  * on wireless mode.
47  */
48 QDF_STATUS tgt_if_regulatory_modify_freq_range(struct wlan_objmgr_psoc *psoc);
49 #endif /* __TARGET_IF_REG_H__ */
50