mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-02-20 17:52:48 +00:00
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:
parent
913a9e947c
commit
fc47ee1d62
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user