rtw88: add rts condition
authorPo-Hao Huang <phhuang@realtek.com>
Tue, 9 Feb 2021 07:07:49 +0000 (15:07 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 12 Feb 2021 07:50:55 +0000 (09:50 +0200)
commitd77ddc34d7317dc2c0fad21ef40f75b909552d5b
tree0e8080e8797bd1cec4ff8865428155e531bc531c
parent4830872685f80666b29bab6a930254809c18c40a
rtw88: add rts condition

Since we set the IEEE80211_HW_HAS_RATE_CONTROL flag, so use_rts in
ieee80211_tx_info will never be set in the ieee80211_xmit_fast path.
Add length check for skb to decide whether rts is needed.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210209070755.23019-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/tx.c
drivers/net/wireless/realtek/rtw88/tx.h