From: Lorenzo Nava Date: Sat, 28 Mar 2009 01:45:06 +0000 (+0000) Subject: b43: fix b43_plcp_get_bitrate_idx_ofdm return type X-Git-Tag: v2.6.27.22~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b35d63e5d76dae5b1c5f796a78df6e8fc2b76850;p=pandora-kernel.git b43: fix b43_plcp_get_bitrate_idx_ofdm return type upstream commit: a3c0b87c4f21911fb7185902dd13f0e3cd7f33f7 This patch fixes the return type of b43_plcp_get_bitrate_idx_ofdm. If the plcp contains an error, the function return value is 255 instead of -1, and the packet was not dropped. This causes a warning in __ieee80211_rx function because rate idx is out of range. Cc: stable@kernel.org Signed-off-by: Lorenzo Nava Signed-off-by: Michael Buesch Signed-off-by: John W. Linville Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed