1*5113495bSYour Name 2*5113495bSYour Name /* Copyright (c) 2022, 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 18*5113495bSYour Name 19*5113495bSYour Name 20*5113495bSYour Name 21*5113495bSYour Name 22*5113495bSYour Name 23*5113495bSYour Name 24*5113495bSYour Name 25*5113495bSYour Name 26*5113495bSYour Name #ifndef _RX_PPDU_NO_ACK_REPORT_H_ 27*5113495bSYour Name #define _RX_PPDU_NO_ACK_REPORT_H_ 28*5113495bSYour Name #if !defined(__ASSEMBLER__) 29*5113495bSYour Name #endif 30*5113495bSYour Name 31*5113495bSYour Name #include "no_ack_report.h" 32*5113495bSYour Name #define NUM_OF_DWORDS_RX_PPDU_NO_ACK_REPORT 4 33*5113495bSYour Name 34*5113495bSYour Name #define NUM_OF_QWORDS_RX_PPDU_NO_ACK_REPORT 2 35*5113495bSYour Name 36*5113495bSYour Name 37*5113495bSYour Name struct rx_ppdu_no_ack_report { 38*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 39*5113495bSYour Name struct no_ack_report no_ack_report_details; 40*5113495bSYour Name #else 41*5113495bSYour Name struct no_ack_report no_ack_report_details; 42*5113495bSYour Name #endif 43*5113495bSYour Name }; 44*5113495bSYour Name 45*5113495bSYour Name 46*5113495bSYour Name /* Description NO_ACK_REPORT_DETAILS 47*5113495bSYour Name 48*5113495bSYour Name Info indicating why frame did not require a response transmission 49*5113495bSYour Name in SIFS time. 50*5113495bSYour Name */ 51*5113495bSYour Name 52*5113495bSYour Name 53*5113495bSYour Name /* Description NO_ACK_TRANSMIT_REASON 54*5113495bSYour Name 55*5113495bSYour Name Field that indicates why the received frame is not needing 56*5113495bSYour Name any transmit response in SIFS time. 57*5113495bSYour Name 58*5113495bSYour Name The possible responses are listed in order. 59*5113495bSYour Name 60*5113495bSYour Name <enum 0 NO_ACK_FCS_errors > All received frames have 61*5113495bSYour Name FCS errors. 62*5113495bSYour Name <enum 1 Unicast_no_ack_frame_received > All received 63*5113495bSYour Name frames did not require a response. 64*5113495bSYour Name <enum 2 NO_ACK_Broadcast> Broadcast frame received 65*5113495bSYour Name <enum 3 NO_ACK_Multicast> Multicast frame received 66*5113495bSYour Name <enum 4 Not_directed> Frames received are not directed 67*5113495bSYour Name to this device (based on addr1) 68*5113495bSYour Name <enum 5 AST_no_ack> The AST entry indicated that NO 69*5113495bSYour Name ACK shall be send 70*5113495bSYour Name <enum 6 PHY_GID_mismatch> PHY dropped the incoming frame 71*5113495bSYour Name dur to GID mismatch 72*5113495bSYour Name <enum 7 PHY_AID_mismatch> PHY dropped the incoming frame 73*5113495bSYour Name dur to AID mismatch 74*5113495bSYour Name <enum 8 NO_ACK_PHY_error> PHY reported an error during 75*5113495bSYour Name reception. For details, see the 'phy_error...' fields 76*5113495bSYour Name <enum 9 RTS_bw_not_available> The requested BW for the 77*5113495bSYour Name CTS response frame is not available 78*5113495bSYour Name <enum 10 NDPA_Frame> An NDPA frame got received 79*5113495bSYour Name <enum 11 NDP_Frame> An NDP frame got received 80*5113495bSYour Name <enum 12 Trigger_NAV_blocked> a trigger frame was received, 81*5113495bSYour Name but due to NAV setting, no response could be generated 82*5113495bSYour Name <enum 13 Trigger_no_AID> A trigger frame was received, 83*5113495bSYour Name but this device's AID was not in the list 84*5113495bSYour Name <enum 14 NO_ACK_MAC_ABORT_REQ > No ACK is needed as 85*5113495bSYour Name SW asked RXPCU to send a abort_request to the PHYRX 86*5113495bSYour Name <enum 15 no_response_other> placeholder in case non 87*5113495bSYour Name of the above properly cover the reasons 88*5113495bSYour Name 89*5113495bSYour Name Also see the field SR_PPDU_during_OBSS. 90*5113495bSYour Name <legal 0-15> 91*5113495bSYour Name */ 92*5113495bSYour Name 93*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_NO_ACK_TRANSMIT_REASON_OFFSET 0x0000000000000000 94*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_NO_ACK_TRANSMIT_REASON_LSB 0 95*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_NO_ACK_TRANSMIT_REASON_MSB 3 96*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_NO_ACK_TRANSMIT_REASON_MASK 0x000000000000000f 97*5113495bSYour Name 98*5113495bSYour Name 99*5113495bSYour Name /* Description MACRX_ABORT_REASON 100*5113495bSYour Name 101*5113495bSYour Name Field only valid when No_ack_transmit_reason is set to NO_ACK_MAC_ABORT_REQ 102*5113495bSYour Name 103*5113495bSYour Name 104*5113495bSYour Name Error field received from MACRX_ABORT_REQUEST.Macrx_abort_reason[2:0] 105*5113495bSYour Name 106*5113495bSYour Name <Legal all> 107*5113495bSYour Name */ 108*5113495bSYour Name 109*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_MACRX_ABORT_REASON_OFFSET 0x0000000000000000 110*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_MACRX_ABORT_REASON_LSB 4 111*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_MACRX_ABORT_REASON_MSB 7 112*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_MACRX_ABORT_REASON_MASK 0x00000000000000f0 113*5113495bSYour Name 114*5113495bSYour Name 115*5113495bSYour Name /* Description PHYRX_ABORT_REASON 116*5113495bSYour Name 117*5113495bSYour Name Field only valid when No_ack_transmit_reason is set to NO_ACK_PHY_error 118*5113495bSYour Name 119*5113495bSYour Name 120*5113495bSYour Name Error field received from PHYRX_ABORT_REQUEST.Phyrx_abort_reason 121*5113495bSYour Name 122*5113495bSYour Name 123*5113495bSYour Name <Legal all> 124*5113495bSYour Name */ 125*5113495bSYour Name 126*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PHYRX_ABORT_REASON_OFFSET 0x0000000000000000 127*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PHYRX_ABORT_REASON_LSB 8 128*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PHYRX_ABORT_REASON_MSB 15 129*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PHYRX_ABORT_REASON_MASK 0x000000000000ff00 130*5113495bSYour Name 131*5113495bSYour Name 132*5113495bSYour Name /* Description FRAME_CONTROL 133*5113495bSYour Name 134*5113495bSYour Name frame control field of the received (first properly received) 135*5113495bSYour Name frame 136*5113495bSYour Name 137*5113495bSYour Name <Legal all> 138*5113495bSYour Name */ 139*5113495bSYour Name 140*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FRAME_CONTROL_OFFSET 0x0000000000000000 141*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FRAME_CONTROL_LSB 16 142*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FRAME_CONTROL_MSB 31 143*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FRAME_CONTROL_MASK 0x00000000ffff0000 144*5113495bSYour Name 145*5113495bSYour Name 146*5113495bSYour Name /* Description RX_PPDU_DURATION 147*5113495bSYour Name 148*5113495bSYour Name The length of this PPDU reception in us 149*5113495bSYour Name <Legal all> 150*5113495bSYour Name */ 151*5113495bSYour Name 152*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RX_PPDU_DURATION_OFFSET 0x0000000000000000 153*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RX_PPDU_DURATION_LSB 32 154*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RX_PPDU_DURATION_MSB 55 155*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RX_PPDU_DURATION_MASK 0x00ffffff00000000 156*5113495bSYour Name 157*5113495bSYour Name 158*5113495bSYour Name /* Description SR_PPDU_DURING_OBSS 159*5113495bSYour Name 160*5113495bSYour Name Field only valid with SRP Responder support (not PoR in 161*5113495bSYour Name Moselle/Maple/Spruce) 162*5113495bSYour Name 163*5113495bSYour Name Indicates that the received frame was sent using SRP as 164*5113495bSYour Name indicated by the 'SR PPDU' bit in the 'CAS Control' in the 165*5113495bSYour Name 'HE A-Control' in one of the MPDUs received, and that the 166*5113495bSYour Name response could not be generated due to OBSS traffic setting 167*5113495bSYour Name the NAV 168*5113495bSYour Name <legal all> 169*5113495bSYour Name */ 170*5113495bSYour Name 171*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SR_PPDU_DURING_OBSS_OFFSET 0x0000000000000000 172*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SR_PPDU_DURING_OBSS_LSB 56 173*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SR_PPDU_DURING_OBSS_MSB 56 174*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SR_PPDU_DURING_OBSS_MASK 0x0100000000000000 175*5113495bSYour Name 176*5113495bSYour Name 177*5113495bSYour Name /* Description SELFGEN_RESPONSE_REASON_TO_SR_PPDU 178*5113495bSYour Name 179*5113495bSYour Name Field only valid with SRP Responder support (not PoR in 180*5113495bSYour Name Moselle/Maple/Spruce) 181*5113495bSYour Name 182*5113495bSYour Name This field indicates why the received SR PPDU needs a response 183*5113495bSYour Name in SIFS time. The e-num used is the same as in the field 184*5113495bSYour Name selfgen_response_reason in 'ACK_REPORT' structure although 185*5113495bSYour Name some of these will be unused in case of an SR PPDU. 186*5113495bSYour Name 187*5113495bSYour Name <enum 0 CTS_frame> 188*5113495bSYour Name <enum 1 ACK_frame> 189*5113495bSYour Name <enum 2 BA_frame > 190*5113495bSYour Name <enum 3 Qboost_trigger> Qboost trigger received 191*5113495bSYour Name <enum 4 PSPOLL_trigger> PSPOLL trigger received 192*5113495bSYour Name <enum 5 UAPSD_trigger > Unscheduled APSD trigger received 193*5113495bSYour Name 194*5113495bSYour Name <enum 6 CBF_frame> the CBF frame needs to be send as 195*5113495bSYour Name a result of NDP or BRPOLL 196*5113495bSYour Name <enum 7 ax_su_trigger> 11ax trigger received for this 197*5113495bSYour Name device 198*5113495bSYour Name <enum 8 ax_wildcard_trigger> 11ax wildcardtrigger has 199*5113495bSYour Name been received 200*5113495bSYour Name <enum 9 ax_unassoc_wildcard_trigger> 11ax wildcard trigger 201*5113495bSYour Name for unassociated STAs has been received 202*5113495bSYour Name <enum 12 eht_su_trigger> EHT R1 trigger received for 203*5113495bSYour Name this device 204*5113495bSYour Name <enum 10 MU_UL_response_to_response> 205*5113495bSYour Name 206*5113495bSYour Name <enum 11 Ranging_NDP_LMR_frames> Ranging NDP + LMR need 207*5113495bSYour Name to be sent in response to ranging NDPA + NDP 208*5113495bSYour Name 209*5113495bSYour Name <legal 0-12> 210*5113495bSYour Name */ 211*5113495bSYour Name 212*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_OFFSET 0x0000000000000000 213*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_LSB 57 214*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_MSB 60 215*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SELFGEN_RESPONSE_REASON_TO_SR_PPDU_MASK 0x1e00000000000000 216*5113495bSYour Name 217*5113495bSYour Name 218*5113495bSYour Name /* Description RESERVED_1 219*5113495bSYour Name 220*5113495bSYour Name <legal all> 221*5113495bSYour Name */ 222*5113495bSYour Name 223*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_1_OFFSET 0x0000000000000000 224*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_1_LSB 61 225*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_1_MSB 63 226*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_1_MASK 0xe000000000000000 227*5113495bSYour Name 228*5113495bSYour Name 229*5113495bSYour Name /* Description PRE_BT_BROADCAST_STATUS_DETAILS 230*5113495bSYour Name 231*5113495bSYour Name Same contents as field "bt_broadcast_status_details" for 232*5113495bSYour Name the first received COEX_STATUS_BROADCAST tlv during this 233*5113495bSYour Name PPDU reception. 234*5113495bSYour Name After power up, this field is all initialized to 0 235*5113495bSYour Name 236*5113495bSYour Name Bits: [31:28]: always 0 237*5113495bSYour Name 238*5113495bSYour Name 239*5113495bSYour Name For detailed info see doc: TBD 240*5113495bSYour Name <legal all> 241*5113495bSYour Name */ 242*5113495bSYour Name 243*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PRE_BT_BROADCAST_STATUS_DETAILS_OFFSET 0x0000000000000008 244*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PRE_BT_BROADCAST_STATUS_DETAILS_LSB 0 245*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PRE_BT_BROADCAST_STATUS_DETAILS_MSB 11 246*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_PRE_BT_BROADCAST_STATUS_DETAILS_MASK 0x0000000000000fff 247*5113495bSYour Name 248*5113495bSYour Name 249*5113495bSYour Name /* Description FIRST_BT_BROADCAST_STATUS_DETAILS 250*5113495bSYour Name 251*5113495bSYour Name Same contents as field "bt_broadcast_status_details" for 252*5113495bSYour Name the first received COEX_STATUS_BROADCAST tlv during this 253*5113495bSYour Name PPDU reception. 254*5113495bSYour Name 255*5113495bSYour Name If no COEX_STATUS_BROADCAST tlv is received during this 256*5113495bSYour Name PPDU reception, this field will be set to 0 257*5113495bSYour Name <legal all> 258*5113495bSYour Name */ 259*5113495bSYour Name 260*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FIRST_BT_BROADCAST_STATUS_DETAILS_OFFSET 0x0000000000000008 261*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FIRST_BT_BROADCAST_STATUS_DETAILS_LSB 12 262*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FIRST_BT_BROADCAST_STATUS_DETAILS_MSB 23 263*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_FIRST_BT_BROADCAST_STATUS_DETAILS_MASK 0x0000000000fff000 264*5113495bSYour Name 265*5113495bSYour Name 266*5113495bSYour Name /* Description RESERVED_2 267*5113495bSYour Name 268*5113495bSYour Name <legal 0> 269*5113495bSYour Name */ 270*5113495bSYour Name 271*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_2_OFFSET 0x0000000000000008 272*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_2_LSB 24 273*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_2_MSB 31 274*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_2_MASK 0x00000000ff000000 275*5113495bSYour Name 276*5113495bSYour Name 277*5113495bSYour Name /* Description SECOND_BT_BROADCAST_STATUS_DETAILS 278*5113495bSYour Name 279*5113495bSYour Name Same contents as field "bt_broadcast_status_details" for 280*5113495bSYour Name the second received COEX_STATUS_BROADCAST tlv during this 281*5113495bSYour Name PPDU reception. 282*5113495bSYour Name 283*5113495bSYour Name If no second COEX_STATUS_BROADCAST tlv is received during 284*5113495bSYour Name this PPDU reception, this field will be set to 0 285*5113495bSYour Name <legal all> 286*5113495bSYour Name */ 287*5113495bSYour Name 288*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SECOND_BT_BROADCAST_STATUS_DETAILS_OFFSET 0x0000000000000008 289*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SECOND_BT_BROADCAST_STATUS_DETAILS_LSB 32 290*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SECOND_BT_BROADCAST_STATUS_DETAILS_MSB 43 291*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_SECOND_BT_BROADCAST_STATUS_DETAILS_MASK 0x00000fff00000000 292*5113495bSYour Name 293*5113495bSYour Name 294*5113495bSYour Name /* Description RESERVED_3 295*5113495bSYour Name 296*5113495bSYour Name <legal 0> 297*5113495bSYour Name */ 298*5113495bSYour Name 299*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_3_OFFSET 0x0000000000000008 300*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_3_LSB 44 301*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_3_MSB 63 302*5113495bSYour Name #define RX_PPDU_NO_ACK_REPORT_NO_ACK_REPORT_DETAILS_RESERVED_3_MASK 0xfffff00000000000 303*5113495bSYour Name 304*5113495bSYour Name 305*5113495bSYour Name 306*5113495bSYour Name #endif // RX_PPDU_NO_ACK_REPORT 307