ath10k: Fix the invalid tx/rx chainmask configuration
authorMaharaja Kennadyrajan <mkenna@codeaurora.org>
Tue, 21 Apr 2020 18:58:32 +0000 (00:28 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 23 Apr 2020 04:49:25 +0000 (07:49 +0300)
commitaac392d8553f3fcc8dd42fc8f7af8eb0593ce9ca
tree0de21a4082db15900b15c17113dafa49c86f0180
parentdd7fc5545bbafdbd6c1efdc996b61883b285bdc5
ath10k: Fix the invalid tx/rx chainmask configuration

The driver is allowing the invalid tx/rx chainmask configuration
(other than 1,3,7,15) set by the user. It causes the firmware
crash due to the invalid chainmask values.

Hence, reject the invalid chainmask values in the driver by not
sending the pdev set command to the firmware.

Tested hardware: QCA9888
Tested firmware: 10.4-3.10-00047

Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1587495512-29813-1-git-send-email-mkenna@codeaurora.org
drivers/net/wireless/ath/ath10k/mac.c