1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2014-2016, 2019, 2021 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4*5113495bSYour Name * 5*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 6*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 7*5113495bSYour Name * above copyright notice and this permission notice appear in all 8*5113495bSYour Name * copies. 9*5113495bSYour Name * 10*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 18*5113495bSYour Name */ 19*5113495bSYour Name 20*5113495bSYour Name #if !defined(__I_CDS_PACKET_H) 21*5113495bSYour Name #define __I_CDS_PACKET_H 22*5113495bSYour Name 23*5113495bSYour Name /** 24*5113495bSYour Name * DOC: i_cds_packet.h 25*5113495bSYour Name * Connectivity driver services network packet APIs 26*5113495bSYour Name * Network Protocol packet/buffer internal include file 27*5113495bSYour Name */ 28*5113495bSYour Name 29*5113495bSYour Name #include "qdf_types.h" 30*5113495bSYour Name 31*5113495bSYour Name /** 32*5113495bSYour Name * struct packetmeta - Rx Packet Struct 33*5113495bSYour Name * @frequency: Frequency 34*5113495bSYour Name * @snr: Signal to noise ratio 35*5113495bSYour Name * @rssi: Received signal strength indicator, normalized to -96 dBm as 36*5113495bSYour Name * normal noise floor by adding -96 to snr. All the configured 37*5113495bSYour Name * thresholds in the driver assume that noise floor is -96 dBm. 38*5113495bSYour Name * @timestamp: System timestamp when frame was received. Set to jiffies. 39*5113495bSYour Name * @mpdu_hdr_ptr: Pointer to beginning of 802.11 MPDU 40*5113495bSYour Name * @mpdu_data_ptr: Pointer to beginning of payload 41*5113495bSYour Name * @mpdu_len: Length of 802.11 MPDU 42*5113495bSYour Name * @mpdu_hdr_len: Length of 802.11 MPDU header 43*5113495bSYour Name * @mpdu_data_len: Length of 802.11 MPDU payload 44*5113495bSYour Name * @offloadScanLearn: Bit set to 1 for beacons received during roaming scan 45*5113495bSYour Name * @roamCandidateInd: Bit set to 1 when roaming candidate is found by fw 46*5113495bSYour Name * @scan_src: Source of scan 47*5113495bSYour Name * @dpuFeedback: DPU feedback for frame 48*5113495bSYour Name * @session_id: PE session 49*5113495bSYour Name * @tsf_delta: Delta between tsf in frame and local value of tsf 50*5113495bSYour Name * @rssi_raw: rssi based on actual noise floor in hardware. 51*5113495bSYour Name * @pkt_qdf_buf: Pointer to Packet 52*5113495bSYour Name * 53*5113495bSYour Name * Buffer for the packet received from WMA has pointers to 802.11 54*5113495bSYour Name * frame fields and additional information based on the type of frame. 55*5113495bSYour Name */ 56*5113495bSYour Name struct packetmeta { 57*5113495bSYour Name uint32_t frequency; 58*5113495bSYour Name uint8_t snr; 59*5113495bSYour Name uint32_t rssi; 60*5113495bSYour Name uint32_t timestamp; 61*5113495bSYour Name uint8_t *mpdu_hdr_ptr; 62*5113495bSYour Name uint8_t *mpdu_data_ptr; 63*5113495bSYour Name uint32_t mpdu_len; 64*5113495bSYour Name uint32_t mpdu_hdr_len; 65*5113495bSYour Name uint32_t mpdu_data_len; 66*5113495bSYour Name uint8_t offloadScanLearn:1; 67*5113495bSYour Name uint8_t roamCandidateInd:1; 68*5113495bSYour Name uint8_t scan_src; 69*5113495bSYour Name uint8_t dpuFeedback; 70*5113495bSYour Name uint8_t session_id; 71*5113495bSYour Name uint32_t tsf_delta; 72*5113495bSYour Name uint32_t rssi_raw; 73*5113495bSYour Name void *pkt_qdf_buf; 74*5113495bSYour Name }; 75*5113495bSYour Name 76*5113495bSYour Name typedef struct packetmeta t_packetmeta, *tp_packetmeta; 77*5113495bSYour Name 78*5113495bSYour Name /* implementation specific cds packet type */ 79*5113495bSYour Name struct cds_pkt_t { 80*5113495bSYour Name /* Packet Meta Information */ 81*5113495bSYour Name t_packetmeta pkt_meta; 82*5113495bSYour Name 83*5113495bSYour Name /* Pointer to Packet */ 84*5113495bSYour Name void *pkt_buf; 85*5113495bSYour Name }; 86*5113495bSYour Name 87*5113495bSYour Name #endif /* !defined( __I_CDS_PACKET_H ) */ 88