1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: Header file 15 */ 16 17 #ifndef MSG_PSM_ROM_H 18 #define MSG_PSM_ROM_H 19 20 #include "wlan_resource_common_rom.h" 21 22 typedef struct { 23 mac_pm_ctrl_type_enum_uint8 pm_ctrl_type; /* mac_pm_ctrl_type_enum */ 24 mac_pm_switch_enum_uint8 pm_enable; /* mac_pm_switch_enum */ 25 } mac_cfg_ps_open_stru; 26 27 typedef struct { 28 osal_u8 is_max_power_set : 1; 29 osal_u8 is_keep_alive_set : 1; 30 osal_u8 is_all_vap : 1; 31 osal_u8 bit_rsv : 5; 32 osal_u8 max_power_set; 33 osal_u16 in_tbtt_offset; 34 } mac_psm_sta_pm_param_dev_stru; 35 36 typedef struct { 37 osal_u16 pm_timer; 38 osal_u16 pm_timer_cnt; 39 osal_u16 beacon_timeout; 40 osal_u16 mcast_timeout; 41 osal_u16 tbtt_offset; 42 osal_u16 sleep_time; 43 } mac_cfg_ps_param_stru; 44 #endif