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
This commit is contained in:
Jeff Johnson 2018-10-24 12:23:58 -07:00 • committed by nshrivas
commit 9516c11ecd

View file

@ -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;
}