wil6210: add verification for cid upper bound
authorAlexei Avshalom Lazar <ailizaro@codeaurora.org>
Wed, 18 Dec 2019 18:10:13 +0000 (20:10 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 19 Dec 2019 16:16:07 +0000 (18:16 +0200)
commit5c5d88a29dd4fe8154c8d262163a96d0add70917
tree9629731ff2642779d13352b45a3fb12c6615c60d
parentc715b38473c842db34c408ede2d5727d2b50cf1c
wil6210: add verification for cid upper bound

max_assoc_sta can receive values (from the user or from the FW)
that are higher than WIL6210_MAX_CID.
Verify that cid doesn't exceed the upper bound of WIL6210_MAX_CID.

Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/wil6210.h