xref: /wlan-dirver/qca-wifi-host-cmn/os_if/linux/wlan_osif_priv.h (revision 6d768494e5ce14eb1603a695c86739d12ecc6ec2)
1 /*
2  * Copyright (c) 2016-2017,2020 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 #ifndef _WLAN_OSIF_PRIV_H_
21 #define _WLAN_OSIF_PRIV_H_
22 
23 #include "qdf_net_if.h"
24 
25 struct osif_scan_pdev;
26 struct osif_tdls_vdev;
27 
28 /**
29  *  struct pdev_osif_priv - OS private structure
30  *  @wiphy:            wiphy handle
31  *  @legacy_osif_priv: legacy osif private handle
32  *  @scan_priv:        Scan related data used by cfg80211 scan
33  *  @nif:              pdev net device
34  */
35 struct pdev_osif_priv {
36 	struct wiphy *wiphy;
37 	void *legacy_osif_priv;
38 	struct osif_scan_pdev *osif_scan;
39 	struct qdf_net_if *nif;
40 };
41 
42 /**
43  *  struct vdev_osif_priv - OS private structure of vdev
44  *  @wdev:             wireless device handle
45  *  @legacy_osif_priv: legacy osif private handle
46  */
47 struct vdev_osif_priv {
48 	struct wireless_dev *wdev;
49 	void *legacy_osif_priv;
50 	struct osif_tdls_vdev *osif_tdls;
51 };
52 
53 #endif
54