staging: brcm80211: bugfix for div by zero in minstrel_ht_tx_status
authorRoland Vossen <rvossen@broadcom.com>
Tue, 12 Apr 2011 12:34:41 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Apr 2011 23:32:28 +0000 (16:32 -0700)
commite9c661e08c2a6015c1b7cba1cecefa27a089df71
treebb326898b1a0fb04ca1012a7885c2a46f0dca646
parenta1c5ad817d9316926372a4a708027edda80146e4
staging: brcm80211: bugfix for div by zero in minstrel_ht_tx_status

Caused by brcmsmac.ko suppling a 0 value to Mac80211. Mac80211 subsequently
divides by this number. Bug only occurred on AMPDU traffic. This is a fix
for https://bugzilla.kernel.org/show_bug.cgi?id=32032, titled
'Divide error in minstrel_ht_tx_status followed by hang', reported by
Wouter Cloetens.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c