From: Lennert Buytenhek Date: Tue, 12 Jan 2010 12:48:56 +0000 (+0100) Subject: mwl8k: properly set receive status rate index on 5 GHz receive X-Git-Tag: v2.6.34-rc1~233^2~556^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=854783444bab0024556c0aefdb0a860f2f1da286;p=pandora-kernel.git mwl8k: properly set receive status rate index on 5 GHz receive The mwl8k firmware uses indices into the 2.4 GHz band rate table for the receive descriptor channel field even if the packet was received on a 5 GHz channel, while mac80211 expects an index into the 5 GHz band rate table when packets are received on the 5 GHz band, which presents a mismatch as the 5 GHz band rate table lacks the five non-OFDM rates that the 2.4 GHz rate table starts with. To handle this properly, we need to substract 5 from the rate index field if the packet was received on a 5 GHz channel (and was not received at an MCS rate). Signed-off-by: Lennert Buytenhek Signed-off-by: John W. Linville --- Reading git-diff-tree failed