wcn36xx: Convert to using wcn36xx_smd_config_bss_v0()
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 10 Sep 2020 15:06:30 +0000 (16:06 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 21 Sep 2020 13:17:11 +0000 (16:17 +0300)
A previous patch added wcn36xx_smd_config_bss_v0() this patch converts the
version 0 data-path in wcn36xx_smd_config_bss() to use
wcn36xx_smd_config_bss_v0().

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200910150631.2178970-7-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/smd.c

index 57833ee..5ae6a2c 100644 (file)
@@ -1731,9 +1731,7 @@ int wcn36xx_smd_config_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif,
        if (!wcn36xx_is_fw_version(wcn, 1, 2, 2, 24)) {
                ret = wcn36xx_smd_config_bss_v1(wcn, vif, sta, bssid, update);
        } else {
-               PREPARE_HAL_BUF(wcn->hal_buf, (*msg));
-
-               ret = wcn36xx_smd_send_and_wait(wcn, msg->header.len);
+               ret = wcn36xx_smd_config_bss_v0(wcn, vif, sta, bssid, update);
        }
        if (ret) {
                wcn36xx_err("Sending hal_config_bss failed\n");