]> git.karo-electronics.de Git - karo-tx-linux.git/commit
b43: fix b43_plcp_get_bitrate_idx_ofdm return type
authorLorenzo Nava <navalorenx@gmail.com>
Sat, 28 Mar 2009 01:45:06 +0000 (01:45 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:56:36 +0000 (10:56 -0700)
commit9e0ed472981a24acaea2f10b1c17238ccd898bc7
tree6d8b7bd84d0eca3bbab3544882682be4b31daf36
parentd5496f8996e53b6a6841c9bf1889d04dbcfc55b3
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.

Signed-off-by: Lorenzo Nava <navalorenx@gmail.com>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/b43/xmit.c