1 /*
2 * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
3 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
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 * DOC: Target interface file for denylist manager component to
21 * declare api's which shall be used by denylist manager component
22 * in target if internally.
23 */
24
25 #ifndef __TARGET_IF_DLM_H
26 #define __TARGET_IF_DLM_H
27
28 #include "wlan_dlm_public_struct.h"
29
30 #if defined(WLAN_FEATURE_ROAM_OFFLOAD)
31 /**
32 * target_if_dlm_send_reject_ap_list() - API to send reject ap list to FW
33 * @pdev: pdev object
34 * @reject_params: This contains the reject ap list, and the num of BSSIDs
35 *
36 * This API will send the reject ap list to the target for it to handle roaming
37 * case scenarios.
38 *
39 * Return: Qdf status
40 */
41 QDF_STATUS
42 target_if_dlm_send_reject_ap_list(struct wlan_objmgr_pdev *pdev,
43 struct reject_ap_params *reject_params);
44
45 /**
46 * target_if_dlm_register_tx_ops() - Register dlm tx ops
47 * @dlm_tx_ops: DLM tx ops
48 *
49 * This API will register the tx ops used by the DLM to send commands to the
50 * target.
51 *
52 * Return: void
53 */
54 void target_if_dlm_register_tx_ops(struct wlan_dlm_tx_ops *dlm_tx_ops);
55 #else
target_if_dlm_register_tx_ops(struct wlan_dlm_tx_ops * dlm_tx_ops)56 static inline void target_if_dlm_register_tx_ops(
57 struct wlan_dlm_tx_ops *dlm_tx_ops)
58 {
59 }
60 #endif //WLAN_FEATURE_ROAM_OFFLOAD
61
62 #endif //__TARGET_IF_DLM_H
63