ath11k: Refactor the fallback routine when peer create fails
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Mon, 10 Jan 2022 14:24:14 +0000 (16:24 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 11 Jan 2022 14:39:15 +0000 (16:39 +0200)
commitfbed57d897f6ea065c45806959337a6f28d2a94d
treea1b919f7f9cb42c1600c6dd1315e1077142e3e37
parent9f4ecacf2fa47b8aadd9bca2e88cde01856de028
ath11k: Refactor the fallback routine when peer create fails

When there is an error in peer create process from
ath11k_peer_find(), the code attempts to handle a fallback
for peer create. When this fallback fails, the driver returns
the fallback return code rather than actual error code
(-ENOENT). So refactor the fallback routine to return
the actual error code.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01067-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/1640244819-21183-1-git-send-email-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath11k/peer.c