blob: 2afd61c0974b5c87cd05ab810b906e8f966a36f5 [file] [log] [blame]
Paul Zhang37185672019-05-14 11:20:14 +08001/*
2 * Copyright (c) 2019 The Linux Foundation. All rights reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18
19/**
20 * DOC: contains interop issues ap structure definations
21 */
22
23#ifndef _WLAN_INTEROP_ISSUES_AP_STRUCTS_H_
24#define _WLAN_INTEROP_ISSUES_AP_STRUCTS_H_
25
26#ifdef WLAN_FEATURE_INTEROP_ISSUES_AP
27#include <qdf_types.h>
28#include <wlan_objmgr_psoc_obj.h>
29
30#define MAX_INTEROP_ISSUES_AP_NUM 20
31
32/**
33 * struct wlan_interop_issues_ap_info - interop issues ap info
34 * @count: the number of interop issues ap
35 * @rap_items: interop issues ap items
36 */
37struct wlan_interop_issues_ap_info {
38 uint32_t count;
39 struct qdf_mac_addr rap_items[MAX_INTEROP_ISSUES_AP_NUM];
40};
41
42/**
43 * struct wlan_interop_issues_ap_event - interop issues ap event
44 * @pdev: pdev object
45 * @psoc: psoc object
46 * @pdev_id: pdev id number
47 * @rap_addr: interop issues ap mac address
48 */
49struct wlan_interop_issues_ap_event {
50 struct wlan_objmgr_pdev *pdev;
51 struct wlan_objmgr_psoc *psoc;
52 uint32_t pdev_id;
53 struct qdf_mac_addr rap_addr;
54};
55
56/**
57 * struct wlan_interop_issues_ap_callbacks - interop issues ap callbacks
58 * @os_if_interop_issues_ap_event_handler: OS IF callback for handling events
59 */
60struct wlan_interop_issues_ap_callbacks {
61 void (*os_if_interop_issues_ap_event_handler)
62 (struct wlan_interop_issues_ap_event *event);
63};
64
65/**
66 * struct wlan_interop_issues_ap_tx_ops - structure of tx func pointers
67 * @set_rap_ps: handler for TX operations for the interop issues ap ps config
68 */
69struct wlan_interop_issues_ap_tx_ops {
70 QDF_STATUS (*set_rap_ps)(struct wlan_objmgr_psoc *psoc,
71 struct wlan_interop_issues_ap_info *rap);
72};
73#endif
74#endif /* _WLAN_INTEROP_ISSUES_AP_STRUCTS_H_ */