qcacmn: Fix failing to get rx rates stats when in MLO mode
In MLO mode, there are 2 link peers and 1 MLD peer. TX/RX stats is kept in txrx_peer, which only exists in MLD peer. This change aims at fixing HDD failing to get rx rates info when in MLO mode. Change-Id: If476216a6b0d1c006fbc0d45a3cbfbb0be79efd3 CRs-Fixed: 3287090
This commit is contained in:

committed by
Madan Koyyalamudi

parent
276f3b27ac
commit
46796f2eb5
@@ -2291,7 +2291,7 @@ dp_rx_rates_stats_update(struct dp_soc *soc, qdf_nbuf_t nbuf,
|
||||
DP_PEER_EXTD_STATS_UPD(txrx_peer, rx.rx_rate, mcs);
|
||||
|
||||
/* In 11b mode, the nss we get from tlv is 0, invalid and should be 1 */
|
||||
if (pkt_type == DOT11_B)
|
||||
if (qdf_unlikely(pkt_type == DOT11_B))
|
||||
nss = 1;
|
||||
|
||||
/* here pkt_type corresponds to preamble */
|
||||
|
Reference in New Issue
Block a user