ath9k: Fix phyerr debug statistics
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Thu, 16 Feb 2012 06:22:25 +0000 (11:52 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Feb 2012 19:05:43 +0000 (14:05 -0500)
commitdbb07f00446f3c7557dbfefb6e16f15b96225da8
treedd0ed5b1eb52c09f9202406f678a65bf5b2074f8
parent4203214ee28d285c580263e2ea80848fd5e676f3
ath9k: Fix phyerr debug statistics

Validate the phyerr value against the max. size of the
statistics array properly.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/debug.c