From 9516c11ecdb9e795d05e2e7b4b44f3c61f9d85a8 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 24 Oct 2018 12:23:58 -0700 Subject: [PATCH] qcacld-3.0: Fix channel width logs when updating phymode In wlan_hdd_update_phymode() there are two separate calls to ucfg_mlme_get_vht_channel_width(). In both cases the return status is checked, and in case of error the following messages is logged: "Failed to set channel_width" Since ucfg_mlme_get_vht_channel_width() is a "getter" and not a "setter" change the log to: "Failed to get channel_width" Change-Id: Ifed249e78e4a64d76eae9310da42ee490756337e CRs-Fixed: 2338478 --- core/hdd/src/wlan_hdd_wext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 93b0a8ace89d..897116dad2e2 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -3703,7 +3703,7 @@ int wlan_hdd_update_phymode(struct hdd_adapter *adapter, int new_phymode) status = ucfg_mlme_get_vht_channel_width(phddctx->psoc, &vhtchanwidth); if (!QDF_IS_STATUS_SUCCESS(status)) - hdd_err("Failed to set channel_width"); + hdd_err("Failed to get channel_width"); hdd_debug("ch_bond24=%d ch_bond5g=%d band_24=%d band_5g=%d VHT_ch_width=%u", ch_bond24, ch_bond5g, band_24, band_5g, vhtchanwidth); @@ -3890,7 +3890,7 @@ int wlan_hdd_update_phymode(struct hdd_adapter *adapter, int new_phymode) status = ucfg_mlme_get_vht_channel_width(phddctx->psoc, &vhtchanwidth); if (!QDF_IS_STATUS_SUCCESS(status)) - hdd_err("Failed to set channel_width"); + hdd_err("Failed to get channel_width"); break; }