ath11k: refine the phy_id check in ath11k_reg_chan_list_event
authorCarl Huang <cjhuang@codeaurora.org>
Mon, 17 Aug 2020 10:31:53 +0000 (13:31 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 18 Aug 2020 09:46:55 +0000 (12:46 +0300)
commit84eee3c845d377cbe1cae722e8f83344107d709f
tree0affa01bc0292ae8c520f8a8409dcf368aed4943
parent4152e4206cc5a9dcfd575fc8342e04faa2d9ec53
ath11k: refine the phy_id check in ath11k_reg_chan_list_event

For QCA6390, it processes the reg chan list event only for phy0,
and it goes to fallback if the phy_id is not valid. For a valid
phy_id but not 0, just discard the event.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2

Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1597555891-26112-5-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/wmi.c