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
Cette révision appartient à :
révisé par
Madan Koyyalamudi
Parent
276f3b27ac
révision
46796f2eb5
@@ -9874,9 +9874,11 @@ void dp_get_peer_extd_stats(struct dp_peer *peer,
|
||||
struct dp_txrx_peer *txrx_peer;
|
||||
struct dp_peer_extd_stats *extd_stats;
|
||||
|
||||
txrx_peer = peer->txrx_peer;
|
||||
if (!txrx_peer)
|
||||
txrx_peer = dp_get_txrx_peer(peer);
|
||||
if (qdf_unlikely(!txrx_peer)) {
|
||||
dp_err_rl("txrx_peer NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
extd_stats = &txrx_peer->stats.extd_stats;
|
||||
DP_UPDATE_EXTD_STATS(peer_stats, extd_stats);
|
||||
|
@@ -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 */
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur