ath10k: improve 11b coex
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 2 Mar 2015 10:21:17 +0000 (11:21 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 7 Mar 2015 08:00:12 +0000 (10:00 +0200)
This improves coexistance with 11b legacy devices
on wmi-tlv and qca6174.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c

index 638bf32037c5403a332f9f046634e816c143d9e1..ff30e825ffd7a6b0046bceaf6a9922da50535f58 100644 (file)
@@ -3744,6 +3744,13 @@ static void ath10k_bss_info_changed(struct ieee80211_hw *hw,
                if (ret)
                        ath10k_warn(ar, "failed to recalculate rts/cts prot for vdev %d: %d\n",
                                    arvif->vdev_id, ret);
+
+               vdev_param = ar->wmi.vdev_param->protection_mode;
+               ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param,
+                                               info->use_cts_prot ? 1 : 0);
+               if (ret)
+                       ath10k_warn(ar, "failed to set protection mode %d on vdev %i: %d\n",
+                                       info->use_cts_prot, arvif->vdev_id, ret);
        }
 
        if (changed & BSS_CHANGED_ERP_SLOT) {