BT-coexistence adds new format of H2C command to use u8 data type as possible as it can to reduce endian transformation, such as le16_to_cpu(). 8922A is first chip to use these new format, so prepare these stuffs before enabling 8922AE. The new format is also needed by newer firmware of other chips, so also prepare for existing chips in advance. First two patches are helpers of MAC to control grant to BT for WiFi. The other patches are to add new introduction format used by newer firmware. This patchset is partial patches related to BT-coexistence, and I will send out remaining five patches by another patchset in coming days. Ching-Te Ku (6): wifi: rtw89: coex: add init_info H2C command format version 7 wifi: rtw89: coex: add BTC ctrl_info version 7 and related logic wifi: rtw89: coex: Reorder H2C command index to align with firmware wifi: rtw89: coex: add return value to ensure H2C command is success or not wifi: rtw89: coex: When Bluetooth not available don't set power/gain wifi: rtw89: coex: Add coexistence policy to decrease WiFi packet CRC-ERR Ping-Ke Shih (2): wifi: rtw89: mac: add coexistence helpers {cfg/get}_plt wifi: rtw89: 8922a: add coexistence helpers of SW grant drivers/net/wireless/realtek/rtw89/coex.c | 393 ++++++++++++------ drivers/net/wireless/realtek/rtw89/coex.h | 20 + drivers/net/wireless/realtek/rtw89/core.h | 90 +++- drivers/net/wireless/realtek/rtw89/debug.c | 9 +- drivers/net/wireless/realtek/rtw89/fw.c | 112 ++++- drivers/net/wireless/realtek/rtw89/fw.h | 45 +- drivers/net/wireless/realtek/rtw89/mac.c | 8 +- drivers/net/wireless/realtek/rtw89/mac.h | 25 +- drivers/net/wireless/realtek/rtw89/mac_be.c | 117 ++++++ drivers/net/wireless/realtek/rtw89/reg.h | 49 +++ drivers/net/wireless/realtek/rtw89/rtw8851b.c | 150 ++++--- drivers/net/wireless/realtek/rtw89/rtw8852a.c | 64 ++- drivers/net/wireless/realtek/rtw89/rtw8852b.c | 64 ++- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 64 ++- drivers/net/wireless/realtek/rtw89/rtw8922a.c | 112 +++++ 15 files changed, 1061 insertions(+), 261 deletions(-) -- 2.25.1