1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name #ifndef _ACK_REPORT_H_ 18*5113495bSYour Name #define _ACK_REPORT_H_ 19*5113495bSYour Name #if !defined(__ASSEMBLER__) 20*5113495bSYour Name #endif 21*5113495bSYour Name 22*5113495bSYour Name #define NUM_OF_DWORDS_ACK_REPORT 1 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name struct ack_report { 26*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 27*5113495bSYour Name uint32_t selfgen_response_reason : 4, // [3:0] 28*5113495bSYour Name ax_trigger_type : 4, // [7:4] 29*5113495bSYour Name sr_ppdu : 1, // [8:8] 30*5113495bSYour Name reserved : 7, // [15:9] 31*5113495bSYour Name frame_control : 16; // [31:16] 32*5113495bSYour Name #else 33*5113495bSYour Name uint32_t frame_control : 16, // [31:16] 34*5113495bSYour Name reserved : 7, // [15:9] 35*5113495bSYour Name sr_ppdu : 1, // [8:8] 36*5113495bSYour Name ax_trigger_type : 4, // [7:4] 37*5113495bSYour Name selfgen_response_reason : 4; // [3:0] 38*5113495bSYour Name #endif 39*5113495bSYour Name }; 40*5113495bSYour Name 41*5113495bSYour Name 42*5113495bSYour Name /* Description SELFGEN_RESPONSE_REASON 43*5113495bSYour Name 44*5113495bSYour Name Field that indicates why the received frame needs a response 45*5113495bSYour Name in SIFS time. The possible responses are listed in order. 46*5113495bSYour Name 47*5113495bSYour Name 48*5113495bSYour Name <enum 0 CTS_frame> 49*5113495bSYour Name <enum 1 ACK_frame> 50*5113495bSYour Name <enum 2 BA_frame > 51*5113495bSYour Name <enum 3 Qboost_trigger> Qboost trigger received 52*5113495bSYour Name <enum 4 PSPOLL_trigger> PSPOLL trigger received 53*5113495bSYour Name <enum 5 UAPSD_trigger > Unscheduled APSD trigger received 54*5113495bSYour Name 55*5113495bSYour Name <enum 6 CBF_frame> the CBF frame needs to be send as 56*5113495bSYour Name a result of NDP or BRPOLL 57*5113495bSYour Name <enum 7 ax_su_trigger> 11ax trigger received for this 58*5113495bSYour Name device 59*5113495bSYour Name <enum 8 ax_wildcard_trigger> 11ax wildcardtrigger has 60*5113495bSYour Name been received 61*5113495bSYour Name <enum 9 ax_unassoc_wildcard_trigger> 11ax wildcard trigger 62*5113495bSYour Name for unassociated STAs has been received 63*5113495bSYour Name <enum 12 eht_su_trigger> EHT R1 trigger received for 64*5113495bSYour Name this device 65*5113495bSYour Name 66*5113495bSYour Name <enum 10 MU_UL_response_to_response> 67*5113495bSYour Name 68*5113495bSYour Name <enum 11 Ranging_NDP_LMR_frames> Ranging NDP + LMR need 69*5113495bSYour Name to be sent in response to ranging NDPA + NDP 70*5113495bSYour Name 71*5113495bSYour Name <legal 0-12> 72*5113495bSYour Name */ 73*5113495bSYour Name 74*5113495bSYour Name #define ACK_REPORT_SELFGEN_RESPONSE_REASON_OFFSET 0x00000000 75*5113495bSYour Name #define ACK_REPORT_SELFGEN_RESPONSE_REASON_LSB 0 76*5113495bSYour Name #define ACK_REPORT_SELFGEN_RESPONSE_REASON_MSB 3 77*5113495bSYour Name #define ACK_REPORT_SELFGEN_RESPONSE_REASON_MASK 0x0000000f 78*5113495bSYour Name 79*5113495bSYour Name 80*5113495bSYour Name /* Description AX_TRIGGER_TYPE 81*5113495bSYour Name 82*5113495bSYour Name Field Only valid when selfgen_response_reason is an 11ax 83*5113495bSYour Name related trigger 84*5113495bSYour Name 85*5113495bSYour Name The 11AX trigger type/ trigger number: 86*5113495bSYour Name It identifies which trigger was received. 87*5113495bSYour Name <enum 0 ax_trigger_basic> 88*5113495bSYour Name <enum 1 ax_trigger_brpoll> 89*5113495bSYour Name <enum 2 ax_trigger_mu_bar> 90*5113495bSYour Name <enum 3 ax_trigger_mu_rts> 91*5113495bSYour Name <enum 4 ax_trigger_buffer_size> 92*5113495bSYour Name <enum 5 ax_trigger_gcr_mu_bar> 93*5113495bSYour Name <enum 6 ax_trigger_BQRP> 94*5113495bSYour Name <enum 7 ax_trigger_NDP_fb_report_poll> 95*5113495bSYour Name <enum 8 ax_tb_ranging_trigger> 96*5113495bSYour Name <enum 9 ax_trigger_reserved_9> 97*5113495bSYour Name <enum 10 ax_trigger_reserved_10> 98*5113495bSYour Name <enum 11 ax_trigger_reserved_11> 99*5113495bSYour Name <enum 12 ax_trigger_reserved_12> 100*5113495bSYour Name <enum 13 ax_trigger_reserved_13> 101*5113495bSYour Name <enum 14 ax_trigger_reserved_14> 102*5113495bSYour Name <enum 15 ax_trigger_reserved_15> 103*5113495bSYour Name 104*5113495bSYour Name <legal all> 105*5113495bSYour Name */ 106*5113495bSYour Name 107*5113495bSYour Name #define ACK_REPORT_AX_TRIGGER_TYPE_OFFSET 0x00000000 108*5113495bSYour Name #define ACK_REPORT_AX_TRIGGER_TYPE_LSB 4 109*5113495bSYour Name #define ACK_REPORT_AX_TRIGGER_TYPE_MSB 7 110*5113495bSYour Name #define ACK_REPORT_AX_TRIGGER_TYPE_MASK 0x000000f0 111*5113495bSYour Name 112*5113495bSYour Name 113*5113495bSYour Name /* Description SR_PPDU 114*5113495bSYour Name 115*5113495bSYour Name Field only valid with SRP Responder support 116*5113495bSYour Name 117*5113495bSYour Name Indicates if the received frame was sent using SRP as indicated 118*5113495bSYour Name by the 'SR PPDU' bit in the 'CAS Control' in the 'HE A-Control' 119*5113495bSYour Name in one of the MPDUs received 120*5113495bSYour Name <legal all> 121*5113495bSYour Name */ 122*5113495bSYour Name 123*5113495bSYour Name #define ACK_REPORT_SR_PPDU_OFFSET 0x00000000 124*5113495bSYour Name #define ACK_REPORT_SR_PPDU_LSB 8 125*5113495bSYour Name #define ACK_REPORT_SR_PPDU_MSB 8 126*5113495bSYour Name #define ACK_REPORT_SR_PPDU_MASK 0x00000100 127*5113495bSYour Name 128*5113495bSYour Name 129*5113495bSYour Name /* Description RESERVED 130*5113495bSYour Name 131*5113495bSYour Name <legal 0> 132*5113495bSYour Name */ 133*5113495bSYour Name 134*5113495bSYour Name #define ACK_REPORT_RESERVED_OFFSET 0x00000000 135*5113495bSYour Name #define ACK_REPORT_RESERVED_LSB 9 136*5113495bSYour Name #define ACK_REPORT_RESERVED_MSB 15 137*5113495bSYour Name #define ACK_REPORT_RESERVED_MASK 0x0000fe00 138*5113495bSYour Name 139*5113495bSYour Name 140*5113495bSYour Name /* Description FRAME_CONTROL 141*5113495bSYour Name 142*5113495bSYour Name Field not valid when selfgen_response_reason is MU_UL_response_to_response 143*5113495bSYour Name 144*5113495bSYour Name 145*5113495bSYour Name For SU receptions: 146*5113495bSYour Name frame control field of the received frame 147*5113495bSYour Name 148*5113495bSYour Name In 11ah Mode of Operation, for non-NDP frames the BW information 149*5113495bSYour Name is extracted from Frame Control fields [11:8]. 150*5113495bSYour Name 151*5113495bSYour Name Decode is as follows 152*5113495bSYour Name 153*5113495bSYour Name Bits[11] - Dynamic/Static 154*5113495bSYour Name Bits[10:8] - Channel BW 155*5113495bSYour Name */ 156*5113495bSYour Name 157*5113495bSYour Name #define ACK_REPORT_FRAME_CONTROL_OFFSET 0x00000000 158*5113495bSYour Name #define ACK_REPORT_FRAME_CONTROL_LSB 16 159*5113495bSYour Name #define ACK_REPORT_FRAME_CONTROL_MSB 31 160*5113495bSYour Name #define ACK_REPORT_FRAME_CONTROL_MASK 0xffff0000 161*5113495bSYour Name 162*5113495bSYour Name 163*5113495bSYour Name 164*5113495bSYour Name #endif // ACK_REPORT 165