mwifiex: correct histogram data with appropriate index
authorXinming Hu <huxm@marvell.com>
Fri, 18 May 2018 07:38:54 +0000 (15:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:31 +0000 (07:50 +0200)
commit945e6ce33d80cd637e6e9f24871c926581bac2c9
tree0fff615998a7ff38ab9e8bca17de5167bc4637ab
parenta30ff89c34b8b6b952a8ceb9bf68027f19e28be8
mwifiex: correct histogram data with appropriate index

[ Upstream commit 30bfce0b63fa68c14ae1613eb9d259fa18644074 ]

Correct snr/nr/rssi data index to avoid possible buffer underflow.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/marvell/mwifiex/util.c