1 /* 2 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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: target_if_twt_evt.h 21 */ 22 23 #ifndef _TARGET_IF_TWT_EVT_H_ 24 #define _TARGET_IF_TWT_EVT_H_ 25 26 #include <wmi_unified_param.h> 27 #include <wlan_lmac_if_def.h> 28 #include <target_if.h> 29 #include <wlan_twt_public_structs.h> 30 31 #if defined(WLAN_SUPPORT_TWT) && defined(WLAN_TWT_CONV_SUPPORTED) 32 /** 33 * target_if_twt_en_complete_event_handler - TWT enable complete event handler 34 * @scn: scn handle 35 * @data: buffer with event 36 * @datalen: buffer length 37 * 38 * Return: 0 on success, negative value on failure 39 */ 40 int 41 target_if_twt_en_complete_event_handler(ol_scn_t scn, 42 uint8_t *data, uint32_t datalen); 43 44 /** 45 * target_if_twt_disable_comp_event_handler - TWT disable complete event handler 46 * @scn: scn handle 47 * @data: buffer with event 48 * @datalen: buffer length 49 * 50 * Return: 0 on success, negative value on failure 51 */ 52 int 53 target_if_twt_disable_comp_event_handler(ol_scn_t scn, 54 uint8_t *data, uint32_t datalen); 55 56 #else 57 static inline int 58 target_if_twt_en_complete_event_handler(ol_scn_t scn, 59 uint8_t *data, uint32_t datalen) 60 { 61 return 0; 62 } 63 64 static inline int 65 target_if_twt_disable_comp_event_handler(ol_scn_t scn, 66 uint8_t *data, uint32_t datalen) 67 { 68 return 0; 69 } 70 71 #endif 72 73 #endif /* _TARGET_IF_TWT_EVT_H_ */ 74