OSDN Git Service

ath10k: revalidate the msa region coming from firmware
authorGovind Singh <govinds@codeaurora.org>
Wed, 31 Jul 2019 11:42:20 +0000 (17:12 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 17 Sep 2019 14:10:28 +0000 (17:10 +0300)
commitc41305993ff5a399775da54232b30ff2d6c9576e
tree92e09887d336bec9abc364a94cbb69c05be7ccae
parent9c44bf4c12550f1c3c1be0671e559477e70ab350
ath10k: revalidate the msa region coming from firmware

driver sends QMI_WLFW_MSA_INFO_REQ_V01 QMI request to firmware
and in response expects range of addresses and size to be mapped.
Add condition to check whether addresses in response falls
under valid range otherwise return failure.

Testing: Tested on WCN3990 HW
Tested FW: WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/qmi.c