Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03d81c87 authored by Balaji Pothunoori's avatar Balaji Pothunoori Committed by Rahul Choudhary
Browse files

qcacld-3.0: tx rate update for data packet in legacy modes

Currently, For legacy modes monitor mode reporting incorrect tx rate
for data packet in radiotap header due to packetcapture_hdr rate
is hardcoded as '0'.

This change calculates the data rate of legacy packets using mcs
reported in tx completion.

Change-Id: I2a651b8fb36947672bd30f8a635f0e643219e520
CRs-Fixed: 3442376
parent 42415784
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -292,8 +292,8 @@ pkt_capture_process_tx_data(void *soc, void *log_data, u_int16_t vdev_id,
	/* nss not available */
	pktcapture_hdr.nss = 0;
	pktcapture_hdr.rssi_comb = tx_comp_status.ack_frame_rssi;
	/* rate not available */
	pktcapture_hdr.rate = 0;
	/* update rate from available mcs */
	pktcapture_hdr.rate = tx_comp_status.mcs;
	pktcapture_hdr.stbc = tx_comp_status.stbc;
	pktcapture_hdr.sgi = tx_comp_status.sgi;
	pktcapture_hdr.ldpc = tx_comp_status.ldpc;