]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacda9276198032cd1855d7d9493463cdd230f401
tree0e8080e8797bd1cec4ff8865428155e531bc531c
parentd9deadf3e6ad7ee8335bd66aaf29aa4a8328ae9c
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