We have had path diversity before, and the difference of adding antenna diversity is that uses GPIO to control SPDT or DPDT to switch antenna. The upcoming chip 8851B has two variety hardware modules; one is single one antenna module, the other is two antenna module that needs this mechanism to have benefit. To help verify and debug this feature, patches 3/7 and 4/7 are to add the debug information. The last two patches are to add RSSI and EVM based antenna diversity respectively. v2: - correct wording of subject of patch 1/7 and 5/7 - no change of patch content Eric Huang (3): wifi: rtw89: initialize antenna for antenna diversity wifi: rtw89: add RSSI based antenna diversity wifi: rtw89: add EVM for antenna diversity Ping-Ke Shih (4): wifi: rtw89: use struct rtw89_phy_sts_ie0 instead of macro to access PHY IE0 status wifi: rtw89: set capability of TX antenna diversity wifi: rtw89: add RSSI statistics for the case of antenna diversity to debugfs wifi: rtw89: add EVM and SNR statistics to debugfs drivers/net/wireless/realtek/rtw89/core.c | 75 ++++- drivers/net/wireless/realtek/rtw89/core.h | 34 +++ drivers/net/wireless/realtek/rtw89/debug.c | 24 +- drivers/net/wireless/realtek/rtw89/mac.c | 9 + drivers/net/wireless/realtek/rtw89/mac80211.c | 7 +- drivers/net/wireless/realtek/rtw89/phy.c | 261 ++++++++++++++++++ drivers/net/wireless/realtek/rtw89/phy.h | 12 + drivers/net/wireless/realtek/rtw89/reg.h | 21 +- drivers/net/wireless/realtek/rtw89/txrx.h | 19 +- 9 files changed, 437 insertions(+), 25 deletions(-) -- 2.25.1