qcacmn: Fix FCS error flag set in radiotap header
Fix FCS error flag set in radiotap header
Change-Id: I55210587d07f3deabebb4dc65caa835127a6b8e5
CRs-Fixed: 2213773
diff --git a/qdf/linux/src/qdf_nbuf.c b/qdf/linux/src/qdf_nbuf.c
index a43b238..ada601a 100644
--- a/qdf/linux/src/qdf_nbuf.c
+++ b/qdf/linux/src/qdf_nbuf.c
@@ -4010,6 +4010,10 @@
/* IEEE80211_RADIOTAP_FLAGS u8 */
rthdr->it_present |= cpu_to_le32(1 << IEEE80211_RADIOTAP_FLAGS);
+
+ if (rx_status->rs_fcs_err)
+ rx_status->rtap_flags |= IEEE80211_RADIOTAP_F_BADFCS;
+
rtap_buf[rtap_len] = rx_status->rtap_flags;
rtap_len += 1;