OSDN Git Service

ath11k: Fix single phy hw mode
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Wed, 4 Nov 2020 17:35:31 +0000 (23:05 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 08:04:05 +0000 (10:04 +0200)
driver not able to bootup in the single radio configured board.
single phy hw mode is converted to invalid hw mode and sent to FW
through wmi init cmd. In that case driver is not receiving wmi
ready event which leads to driver bootup fail. single phy hw mode
is a valid for single radio configured board. so removed the
conversion logic.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2

Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1604511331-22477-1-git-send-email-periyasa@codeaurora.org
drivers/net/wireless/ath/ath11k/wmi.c

index 8049c96..40032c2 100644 (file)
@@ -3486,9 +3486,6 @@ int ath11k_wmi_cmd_init(struct ath11k_base *ab)
        init_param.hw_mode_id = wmi_sc->preferred_hw_mode;
        init_param.mem_chunks = wmi_sc->mem_chunks;
 
-       if (wmi_sc->preferred_hw_mode == WMI_HOST_HW_MODE_SINGLE)
-               init_param.hw_mode_id = WMI_HOST_HW_MODE_MAX;
-
        if (ab->hw_params.needs_band_to_mac) {
                init_param.num_band_to_mac = ab->num_radios;
                ath11k_fill_band_to_mac_param(ab, init_param.band_to_mac);