rtw88: add beacon function setting
authorChin-Yen Lee <timlee@realtek.com>
Fri, 14 Jun 2019 07:24:07 +0000 (15:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 05:08:55 +0000 (08:08 +0300)
commit6fabdc4a34d0d508c1c2d18cebf7bbc23706b3f5
treefe3bf4b3b14571fc9126bb135e59353869fa6c4e
parent44cc4c63a87720f975562d48eb8f5e8a176fc934
rtw88: add beacon function setting

Add beacon function setting routines for each hardware port.
If beacon function is not enabled, the hardware is not able
to synchronize with AP's beacon and can miss the beacons
under some scenarios such as PS mode.

For AP and Adhoc modes that require to send beacons, do not
update the TSF, otherwise the beacon interval may be affected.

Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h