From 616c431c9eb070a04f6cfd95ef919d991efe2701 Mon Sep 17 00:00:00 2001 From: aslaamshaafi Date: Tue, 29 Mar 2022 10:21:04 +0200 Subject: [PATCH] replace len_mpdu+LEN_PHY_CRC with num_dma_symbol in sdr.c because axis interface in tx_intf IP use it as num_dma_symbol. --- driver/sdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/sdr.c b/driver/sdr.c index 4acc641..3f71936 100644 --- a/driver/sdr.c +++ b/driver/sdr.c @@ -997,7 +997,7 @@ static void openwifi_tx(struct ieee80211_hw *dev, cts_rate_signal_value = wifi_mcs_table_11b_force_up[cts_rate_hw_value]; cts_reg = ((use_cts_protect|force_use_cts_protect)<<31 | cts_use_traffic_rate<<30 | cts_duration<<8 | cts_rate_signal_value<<4 | rate_signal_value); - tx_config = ( prio<<26 | ring->bd_wr_idx<<20 | queue_idx<<18 | retry_limit_hw_value<<14 | pkt_need_ack<<13 | (len_mpdu+LEN_PHY_CRC) ); + tx_config = ( prio<<26 | ring->bd_wr_idx<<20 | queue_idx<<18 | retry_limit_hw_value<<14 | pkt_need_ack<<13 | num_dma_symbol ); phy_hdr_config = ( ht_aggr_start<<20 | rate_hw_value<<16 | use_ht_rate<<15 | use_short_gi<<14 | use_ht_aggr<<13 | len_psdu ); /* We must be sure that tx_flags is written last because the HW