Skip to content

Commit f3bf400

Browse files
krish2718rlubos
authored andcommitted
drivers: wifi: nrf71: Implement per-packet checksum indication
In the new design FW expects per-packet bitmap for checksum calcualtion to be done. Implement CAL-6810. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent 206eb6d commit f3bf400

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • drivers/wifi/nrf71/osal/fw_if/umac_if/src/system

drivers/wifi/nrf71/osal/fw_if/umac_if/src/system/tx.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ static enum nrf_wifi_status tx_cmd_prep_callbk_fn(void *callbk_data,
680680
config->tx_buff_info[frame_indx].ddr_ptr =
681681
(unsigned long long)nwb_data;
682682
config->tx_buff_info[frame_indx].pkt_length = buf_len;
683+
if (!nrf_wifi_osal_nbuf_get_chksum_done(nbuf)) {
684+
config->csum_bitmap |= (1u << frame_indx);
685+
}
683686
config->num_tx_pkts++;
684687

685688
status = NRF_WIFI_STATUS_SUCCESS;
@@ -835,6 +838,8 @@ static enum nrf_wifi_status tx_cmd_prepare(struct nrf_wifi_fmac_dev_ctx *fmac_de
835838
config->mac_hdr_info.tx_flags |= NRF_WIFI_TX_FLAG_CHKSUM_AVAILABLE;
836839
}
837840

841+
config->csum_bitmap = 0;
842+
838843
#ifdef NRF_WIFI_QOS_NOACK_POLICY
839844
if (has_matching_tid(txq, NRF_WIFI_QOS_NOACK_POLICY_TID)) {
840845
config->mac_hdr_info.tx_flags |= NRF_WIFI_TX_FLAG_QOS_CTL_ACK_POLICY_NOACK;

0 commit comments

Comments
 (0)