wil6210: fix invalid sta statistics update
authorDedy Lansky <dlansky@codeaurora.org>
Fri, 22 Feb 2019 14:21:03 +0000 (16:21 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Feb 2019 09:24:50 +0000 (11:24 +0200)
commita380eb5736c04942c158b22af04467eb21c27045
tree14d914f6085c892c7f68a2b2bacf9005a50149e5
parent6d1ba32c8070bf9e4088b16d3af1eb2b6f05543c
wil6210: fix invalid sta statistics update

Upon status ring handling, in case there are both unicast and
multicast (cid == max) status messages to handle, wrong sta statistics
might get updated.
Fix this by setting stats to NULL upon invalid cid
(e.g. == max_assoc_sta).

Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/txrx_edma.c