fix the bug when retry_limit_raw==0 in sdr.c (0 is the abnormal number encountered in the monitor mode. normally it should >= 1). the bug causes 15 times transmissions for a packet if no ack is received

This commit is contained in:
Xianjun Jiao 2021-04-05 21:53:29 +02:00
parent 913a9e947c
commit fc47ee1d62

View File

@ -851,7 +851,7 @@ static void openwifi_tx(struct ieee80211_hw *dev,
}
skb_put( skb, num_byte_pad );
retry_limit_hw_value = (retry_limit_raw - 1)&0xF;
retry_limit_hw_value = ( retry_limit_raw==0?0:((retry_limit_raw - 1)&0xF) );
dma_buf = skb->data;
cts_rate_signal_value = wifi_mcs_table_11b_force_up[cts_rate_hw_value];