>From 0ad766f217ff7be662dd1da4b55dc19de4ac0018 Mon Sep 17 00:00:00 2001 From: Ivo van Doorn <IvDoorn@xxxxxxxxx> 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 <IvDoorn@xxxxxxxxx> --- drivers/net/wireless/rt2x00dev.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/rt2x00dev.c b/drivers/net/wireless/rt2x00dev.c index 42308ed..8e860a8 100644 --- a/drivers/net/wireless/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00dev.c @@ -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; } } -- 1.5.2.4 - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html