Commit 5d07b668 authored by Teemu Paasikivi's avatar Teemu Paasikivi Committed by John W. Linville
Browse files

wl1271: Checking of rx descriptor status fixed

Fixed checking of status of the received packet. On wl1251 status is in the
flags field of the descriptor, on wl1271 there is a separate status field.
Signed-off-by: default avatarTeemu Paasikivi <>
Reviewed-by: default avatarJuuso Oikarinen <>
Signed-off-by: default avatarLuciano Coelho <>
Signed-off-by: default avatarJohn W. Linville <>
parent a4102645
......@@ -142,14 +142,9 @@ static void wl1271_rx_status(struct wl1271 *wl,
if (desc->flags & WL1271_RX_DESC_ENCRYPT_MASK) {
if (likely(!(desc->flags & WL1271_RX_DESC_DECRYPT_FAIL)))
if (likely(!(desc->status & WL1271_RX_DESC_DECRYPT_FAIL)))
status->flag |= RX_FLAG_DECRYPTED;
/* FIXME: Flag should be also set when using 5 GHz band.
* At the moment chip reports MIC failed on all packets,
* so flag is silently discarded.
if (unlikely(desc->flags & WL1271_RX_DESC_MIC_FAIL))
if (status->band != IEEE80211_BAND_5GHZ)
if (unlikely(desc->status & WL1271_RX_DESC_MIC_FAIL))
status->flag |= RX_FLAG_MMIC_ERROR;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment