ath10k: do not limit RTS threshold value to 2347
authorVivek Natarajan <nataraja@qti.qualcomm.com>
Wed, 26 Nov 2014 07:06:12 +0000 (09:06 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 1 Dec 2014 06:55:13 +0000 (08:55 +0200)
Increase the rts threshold from the legacy value of 2347 to support higher
threshold limit.

Signed-off-by: Vivek Natarajan <nataraja@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wmi.h

index e475cc4095b62a2e1a72e880029837f4c6340490..c4005670cba2e6ac934e8804629735e7b9180792 100644 (file)
@@ -422,15 +422,11 @@ static int ath10k_mac_set_kickout(struct ath10k_vif *arvif)
        return 0;
 }
 
-static int  ath10k_mac_set_rts(struct ath10k_vif *arvif, u32 value)
+static int ath10k_mac_set_rts(struct ath10k_vif *arvif, u32 value)
 {
        struct ath10k *ar = arvif->ar;
        u32 vdev_param;
 
-       if (value != 0xFFFFFFFF)
-               value = min_t(u32, arvif->ar->hw->wiphy->rts_threshold,
-                             ATH10K_RTS_MAX);
-
        vdev_param = ar->wmi.vdev_param->rts_threshold;
        return ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, value);
 }
index 1b7141a6c0309b1eabe48bd997a66c231e1e0baa..eb756efe17ae0d17aee66a508800e66ed7ffc27c 100644 (file)
@@ -4552,7 +4552,6 @@ struct wmi_dbglog_cfg_cmd {
        __le32 config_valid;
 } __packed;
 
-#define ATH10K_RTS_MAX         2347
 #define ATH10K_FRAGMT_THRESHOLD_MIN    540
 #define ATH10K_FRAGMT_THRESHOLD_MAX    2346