summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_main.c
diff options
context:
space:
mode:
authorRakesh Pillai <pillair@codeaurora.org>2019-03-08 16:56:06 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 15:12:29 +0200
commit0a9f7e7fc5a2444c7fb4a42794a64476ba8c5f7e (patch)
tree705b099ea9825c3b7e07e690be2038ed6033c306 /drivers/net/ethernet/intel/i40e/i40e_main.c
parentee849d9c0691bf9eb41371715629d746d399dc14 (diff)
downloadlinux-stable-0a9f7e7fc5a2444c7fb4a42794a64476ba8c5f7e.tar.gz
linux-stable-0a9f7e7fc5a2444c7fb4a42794a64476ba8c5f7e.tar.bz2
linux-stable-0a9f7e7fc5a2444c7fb4a42794a64476ba8c5f7e.zip
ath10k: fix channel info parsing for non tlv target
commit 6be6c04bcc2e8770b8637632789ff15765124894 upstream. The tlv targets such as WCN3990 send more data in the chan info event, which is not sent by the non tlv targets. There is a minimum size check in the wmi event for non-tlv targets and hence we cannot update the common channel info structure as it was done in commit 13104929d2ec ("ath10k: fill the channel survey results for WCN3990 correctly"). This broke channel survey results on 10.x firmware versions. If the common channel info structure is updated, the size check for chan info event for non-tlv targets will fail and return -EPROTO and we see the below error messages ath10k_pci 0000:01:00.0: failed to parse chan info event: -71 Add tlv specific channel info structure and restore the original size of the common channel info structure to mitigate this issue. Tested HW: WCN3990 QCA9887 Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1 10.2.4-1.0-00037 Fixes: 13104929d2ec ("ath10k: fill the channel survey results for WCN3990 correctly") Cc: stable@vger.kernel.org # 5.0 Signed-off-by: Rakesh Pillai <pillair@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_main.c')
0 files changed, 0 insertions, 0 deletions