qcacmn: Add hal_rx_get_rx_fragment_number API
Implement hal_rx_get_rx_fragment_number based on the chipset as the macro HAL_RX_MPDU_GET_SEQUENCE_NUMBER is chipset specific. Change-Id: I967190fa3a55d45f46760f58eab5007bf5fa908f CRs-Fixed: 2522133
Esse commit está contido em:

commit de
nshrivas

pai
c5068e341f
commit
d1b7e4c326
39
hal/wifi3.0/qca6490/hal_6490.c
Arquivo normal
39
hal/wifi3.0/qca6490/hal_6490.c
Arquivo normal
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
* above copyright notice and this permission notice appear in all
|
||||
* copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* hal_rx_get_rx_fragment_number_6490(): Function to retrieve rx fragment number
|
||||
*
|
||||
* @nbuf: Network buffer
|
||||
* Returns: rx fragment number
|
||||
*/
|
||||
static
|
||||
uint8_t hal_rx_get_rx_fragment_number_6490(uint8_t *buf)
|
||||
{
|
||||
struct rx_pkt_tlvs *pkt_tlvs = hal_rx_get_pkt_tlvs(buf);
|
||||
struct rx_mpdu_info *rx_mpdu_info = hal_rx_get_mpdu_info(pkt_tlvs);
|
||||
|
||||
/* Return first 4 bits as fragment number */
|
||||
return (HAL_RX_MPDU_GET_SEQUENCE_NUMBER(rx_mpdu_info) &
|
||||
DOT11_SEQ_FRAG_MASK);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
|
||||
/* rx */
|
||||
hal_rx_get_rx_fragment_number_6490,
|
||||
};
|
Referência em uma nova issue
Block a user