From: Bob Copeland Date: Tue, 3 Mar 2009 02:55:18 +0000 (-0500) Subject: ath5k: warn and correct rate for unknown hw rate indexes X-Git-Tag: v2.6.30-rc1~642^2^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b726604706ad88d8b28bc487e45e710f58cc19ee;p=pandora-kernel.git ath5k: warn and correct rate for unknown hw rate indexes ath5k sets up a mapping table from the hardware rate index to the rate index used by mac80211; however, we have seen some received frames with incorrect rate indexes. Such frames normally get dropped with a warning in __ieee80211_rx(), but it doesn't include enough information to track down the error. This patch adds a warning to hw_to_driver_rix for any lookups that result in a rate index of -1, then returns a valid rate so the frame can be processed. Changes-licensed-under: 3-Clause-BSD Signed-off-by: Bob Copeland Cc: stable@kernel.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed