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

Commit e72698f8 authored by Chun-Yeow Yeoh's avatar Chun-Yeow Yeoh Committed by Kalle Valo
Browse files

ath10k: set the mactime of ieee80211_rx_status



Retrieve the mactime of ieee80211_rx_status based on received
data frame. The value is obtained from the htt_rx_indication_ppdu
structure and only available in 32-bit.

kvalo: white space fixes

Signed-off-by: default avatarChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 76f90024
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1181,6 +1181,8 @@ struct htt_rx_info {
		u32 info1;
		u32 info2;
	} rate;

	u32 tsf;
	bool fcs_err;
	bool amsdu_more;
	bool mic_err;
+1 −0
Original line number Diff line number Diff line
@@ -996,6 +996,7 @@ static void ath10k_htt_rx_handler(struct ath10k_htt *htt,
			info.rate.info0 = rx->ppdu.info0;
			info.rate.info1 = __le32_to_cpu(rx->ppdu.info1);
			info.rate.info2 = __le32_to_cpu(rx->ppdu.info2);
			info.tsf = __le32_to_cpu(rx->ppdu.tsf);

			hdr = ath10k_htt_rx_skb_get_hdr(msdu_head);

+6 −0
Original line number Diff line number Diff line
@@ -258,6 +258,12 @@ void ath10k_process_rx(struct ath10k *ar, struct htt_rx_info *info)
	status->band = ch->band;
	status->freq = ch->center_freq;

	if (info->rate.info0 & HTT_RX_INDICATION_INFO0_END_VALID) {
		/* TSF available only in 32-bit */
		status->mactime = info->tsf & 0xffffffff;
		status->flag |= RX_FLAG_MACTIME_END;
	}

	ath10k_dbg(ATH10K_DBG_DATA,
		   "rx skb %p len %u %s%s%s%s%s %srate_idx %u vht_nss %u freq %u band %u flag 0x%x fcs-err %i\n",
		   info->skb,