1 /* 2 * Copyright (c) 2019 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 /** 18 * DOC: Define PSOC MLME structure 19 */ 20 #ifndef _WLAN_PSOC_MLME_H_ 21 #define _WLAN_PSOC_MLME_H_ 22 23 #include <wlan_ext_mlme_obj_types.h> 24 #include <wlan_vdev_mgr_tgt_if_rx_defs.h> 25 #include <qdf_timer.h> 26 27 /* Max RNR size given max vaps are 16 */ 28 #define MAX_RNR_SIZE 256 29 30 /** 31 * struct wlan_rnr_global_cache - RNR cache buffer per soc 32 * @rnr_buf: RNR cache buffer 33 * @rnr_cnt: Count of APs in cache 34 * @rnr_size: Size of RNR cache (RNR IE) 35 */ 36 struct wlan_6ghz_rnr_global_cache { 37 char rnr_buf[MAX_RNR_SIZE]; 38 int rnr_cnt; 39 uint16_t rnr_size; 40 }; 41 42 /** 43 * struct psoc_mlme_obj - PSoC MLME component object 44 * @psoc: PSoC object 45 * @ext_psoc_ptr: PSoC legacy pointer 46 * @psoc_vdev_rt: PSoC Vdev response timer 47 * @psoc_mlme_wakelock: Wakelock to prevent system going to suspend 48 * @rnr_6ghz_cache: Cache of 6Ghz vap in RNR ie format 49 */ 50 struct psoc_mlme_obj { 51 struct wlan_objmgr_psoc *psoc; 52 mlme_psoc_ext_t *ext_psoc_ptr; 53 struct vdev_response_timer psoc_vdev_rt[WLAN_UMAC_PSOC_MAX_VDEVS]; 54 #ifdef FEATURE_VDEV_RSP_WAKELOCK 55 struct psoc_mlme_wakelock psoc_mlme_wakelock; 56 #endif 57 struct wlan_6ghz_rnr_global_cache rnr_6ghz_cache; 58 }; 59 60 #endif 61