rt2x00: Don't check for preamble in RXdone
PATCH 21/24 rt2x00: Don't check for preamble in RXdone
Quoted 1 line
From
0ad766f217ff7be662dd1da4b55dc19de4ac0018Mon Sep 17 00:00:00 2001
From: Ivo van Doorn <[email protected]>
Date: Tue, 31 Jul 2007 16:05:20 +0200
Subject: [PATCH 21/24] rt2x00: Don't check for preamble in RXdone
Don't return rate->val2 to mac80211 as the rate value for a received frame. Not only will this falsely identify frames received at 1Mbs and 11Mbs as preamble. But it will also confuse mac80211 who will only search for rate->val.
Signed-off-by Ivo van Doorn <[email protected]>
--- drivers/net/wireless/rt2x00dev.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-)
drivers/net/wireless/rt2x00dev.c +1 -7
@@ -288,13 +288,7 @@ void rt2x00lib_rxdone(struct data_entry *entry, char *data, val =DEVICE_GET_RATE_FIELD (rate->val,PLCP );if (val == signal) { -/* -* Check for preamble bit. -*/ -if (signal &0x08 ) - val = rate->val2; -else - val = rate->val; + val = rate->val;break ; } }
Signature · 1 line
1.5.2.4