From 0e2de2d0a339f18309597481fd291605dd8a02b3 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Thu, 14 Jan 2021 18:22:40 -0800 Subject: [PATCH] qcacld-3.0: Fix the fixed rate disable cmd setting value Correct the fixed rate disable setting parameter value. Change-Id: I6d7130015053a7bebac99517f32520e324887f93 CRs-Fixed: 2868210 --- core/hdd/src/wlan_hdd_main.c | 2 +- core/hdd/src/wlan_hdd_wext.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index f4fc6e1a2d2b..39879f427a07 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3296,7 +3296,7 @@ int hdd_set_11ax_rate(struct hdd_adapter *adapter, int set_value, return -EIO; } - if (set_value != 0xff) { + if (set_value != 0xffff) { rix = RC_2_RATE_IDX_11AX(set_value); preamble = WMI_RATE_PREAMBLE_HE; nss = HT_RC_2_STREAMS_11AX(set_value); diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index d95ea8353e3d..d78261b8bd83 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -4013,7 +4013,7 @@ static int hdd_we_set_11n_rate(struct hdd_adapter *adapter, int rate_code) hdd_debug("Rate code %d", rate_code); - if (rate_code != 0xff) { + if (rate_code != 0xffff) { rix = RC_2_RATE_IDX(rate_code); if (rate_code & 0x80) { preamble = WMI_RATE_PREAMBLE_HT; @@ -4066,7 +4066,7 @@ static int hdd_we_set_vht_rate(struct hdd_adapter *adapter, int rate_code) hdd_debug("Rate code %d", rate_code); - if (rate_code != 0xff) { + if (rate_code != 0xffff) { rix = RC_2_RATE_IDX_11AC(rate_code); preamble = WMI_RATE_PREAMBLE_VHT; nss = HT_RC_2_STREAMS_11AC(rate_code) - 1;