Skip to contentSkip to conversation

mac80211: add LDPC encoding to ieee80211_parse_tx_radiotap

PATCH New Philipp Borgers 1 participant 1 message Dec 19, 2020 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: add LDPC encoding to ieee80211_parse_tx_radiotap

This patch adds support for LDPC encoding to the radiotap tx parse function. Piror to this change adding the LDPC flag to the radiotap header did not encode frames with LDPC.

---
 net/mac80211/tx.c | 4 ++++
 1 file changed, 4 insertions(+)
net/mac80211/tx.c +4 -0
index 8ba10a48ded4..7e84dad88b4e 100644
@@ -2132,6 +2132,10 @@ bool ieee80211_parse_tx_radiotap(struct sk_buff *skb,
 			if (mcs_known & IEEE80211_RADIOTAP_MCS_HAVE_BW &&
 			    mcs_bw == IEEE80211_RADIOTAP_MCS_BW_40)
 				rate_flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
+
+			if (mcs_known & IEEE80211_RADIOTAP_MCS_HAVE_FEC &&
+			    mcs_flags & IEEE80211_RADIOTAP_MCS_FEC_LDPC)
+				info->flags |= IEEE80211_TX_CTL_LDPC;
 			break;
 
 		case IEEE80211_RADIOTAP_VHT:
Signature · 1 line
2.29.2