Implements HAL_GET_STATS message in order to report tx_rate to ieee80211_tx_rate_update. Tested on MSM8939 with WCN3680B running firmware CNSS-PR-2-0-1-2-c1-00083 on 5.17. Changes in v2: - Refactored to use existing wcn36xx_hal_get_stats_{req,rsp}_msg structs. - Added more notes about testing. - Reduced reporting interval to 3000msec. - Assorted type and memory safety fixes. - Make wcn36xx_smd_get_stats friendlier to future message implementors. Edmond Gagnon (2): wcn36xx: Expose get_sta_index in wcn36xx.h wcn36xx: Implement tx_rate reporting drivers/net/wireless/ath/wcn36xx/hal.h | 7 ++- drivers/net/wireless/ath/wcn36xx/main.c | 33 +++++++++--- drivers/net/wireless/ath/wcn36xx/smd.c | 58 +++++++++++++++++++++ drivers/net/wireless/ath/wcn36xx/smd.h | 1 + drivers/net/wireless/ath/wcn36xx/txrx.c | 59 ++++++++++++++++++++++ drivers/net/wireless/ath/wcn36xx/txrx.h | 2 + drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 12 +++++ 7 files changed, 163 insertions(+), 9 deletions(-) -- 2.25.1