Skip to content

Commit 204a7db

Browse files
AviSternjmberg-intel
authored andcommitted
mac80211: Fix incorrect condition when checking rx timestamp
If the driver reports the rx timestamp at PLCP start, mac80211 can only handle legacy encoding, but the code checks that the encoding is not legacy. Fix this. Fixes: da6a435 ("mac80211: separate encoding/bandwidth from flags") Signed-off-by: Avraham Stern <avraham.stern@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 769dc04 commit 204a7db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/ieee80211_i.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ ieee80211_have_rx_timestamp(struct ieee80211_rx_status *status)
15311531
return true;
15321532
/* can't handle non-legacy preamble yet */
15331533
if (status->flag & RX_FLAG_MACTIME_PLCP_START &&
1534-
status->encoding != RX_ENC_LEGACY)
1534+
status->encoding == RX_ENC_LEGACY)
15351535
return true;
15361536
return false;
15371537
}

0 commit comments

Comments
 (0)