• Surabhi Vishnoi's avatar
    ath10k: Fix the wrong calculation ht_idx and idx of rate table for tx_stats · d23c2cda
    Surabhi Vishnoi authored
    ht_idx (ht rate index) and idx (rate table index) are calculated based on
    mcs index. This mcs index used in the above calculation should be 0-9 for
    getting the correct ht_idx and idx.
    
    Currently the mcs index used for the above calculations is mcs index which
    can be 0-31 (in case of HT), leading to incorrect rate index and ht index values.
    
    Fix the issue by obtaining mcs value from the ratecode reported by firmware
    and use it for calculating ht_idx and idx (rate-table index).
    
    Tested HW: WCN3990
    Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1
    
    Fixes: e88975ca ("ath10k: dump tx stats in rate table format")
    Signed-off-by: default avatarSurabhi Vishnoi <svishnoi@codeaurora.org>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    d23c2cda
htt_rx.c 98 KB