rtw88: add flush hci support
authorZong-Zhe Yang <kevin_yang@realtek.com>
Fri, 19 Mar 2021 05:42:12 +0000 (13:42 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 11 Apr 2021 09:24:31 +0000 (12:24 +0300)
commit7b33ec8b93c9fa401a8fcd92ebde3129a1beb844
tree0abcb9caa7e9fb7f4a0c3904e51e2ab90d2ffd58
parent13ce240a932fe9c809ec6e79ffc5a4d4ecf534ee
rtw88: add flush hci support

Though mac queue flushing has been supported, sometimes data may be waiting
on interface from host to chip. If it occurs, there may still be data that
flows into mac just after we do flush. To avoid that, we add the hci part
of flushing.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210319054218.3319-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/hci.h
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/pci.c