1 /* 2 * Copyright (c) 2016-2017,2020-2021 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 #include "wlan_cm_public_struct.h" 25 #include <qca_vendor.h> 26 27 struct osif_scan_pdev; 28 struct osif_tdls_vdev; 29 30 /** 31 * struct pdev_osif_priv - OS private structure 32 * @wiphy: wiphy handle 33 * @legacy_osif_priv: legacy osif private handle 34 * @scan_priv: Scan related data used by cfg80211 scan 35 * @nif: pdev net device 36 */ 37 struct pdev_osif_priv { 38 struct wiphy *wiphy; 39 void *legacy_osif_priv; 40 struct osif_scan_pdev *osif_scan; 41 struct qdf_net_if *nif; 42 }; 43 44 /** 45 * struct osif_cm_info - osif connection manager info 46 * @last_source: Last command request source 47 * @last_id: Last command from connection manager 48 * @cmd_id_lock: lock to update and read last command source 49 * @ext_priv: legacy data pointer. 50 */ 51 struct osif_cm_info { 52 enum wlan_cm_source last_source; 53 wlan_cm_id last_id; 54 struct qdf_spinlock cmd_id_lock; 55 void *ext_priv; 56 }; 57 58 /** 59 * struct vdev_osif_priv - OS private structure of vdev 60 * @wdev: wireless device handle 61 * @legacy_osif_priv: legacy osif private handle 62 * @osif_tdls: osif tdls info 63 * @cm_info: osif connection manager info 64 */ 65 struct vdev_osif_priv { 66 struct wireless_dev *wdev; 67 void *legacy_osif_priv; 68 struct osif_tdls_vdev *osif_tdls; 69 struct osif_cm_info cm_info; 70 }; 71 72 #endif 73