From b47ae637aa48511131de26e917147e28fc7ef1af Mon Sep 17 00:00:00 2001 From: Bapiraju Alla Date: Tue, 1 Sep 2020 12:38:06 +0530 Subject: [PATCH] qcacld-3.0: Remove unnecessary error prints in get channel callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove error prints in get_channel callback. These prints are filling up the kmesg and don’t provide any info. Change-Id: I224b53ebe73c803b2ff9c2e9512af9eab53f8d79 CRs-Fixed: 2767148 --- core/hdd/src/wlan_hdd_cfg80211.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index bfa2c5d1f30b..be7352739876 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -24124,10 +24124,8 @@ static int __wlan_hdd_cfg80211_get_channel(struct wiphy *wiphy, (adapter->device_mode == QDF_P2P_CLIENT_MODE)) { struct hdd_station_ctx *sta_ctx; - if (!hdd_adapter_is_connected_sta(adapter)) { - hdd_err("STA not connected"); + if (!hdd_adapter_is_connected_sta(adapter)) return -EINVAL; - } sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter); if (sta_ctx->conn_info.dot11mode < eCSR_CFG_DOT11_MODE_11N) @@ -24139,10 +24137,8 @@ static int __wlan_hdd_cfg80211_get_channel(struct wiphy *wiphy, ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter); - if (!test_bit(SOFTAP_BSS_STARTED, &adapter->event_flags)) { - hdd_err("SAP not started"); + if (!test_bit(SOFTAP_BSS_STARTED, &adapter->event_flags)) return -EINVAL; - } switch (ap_ctx->sap_config.SapHw_mode) { case eCSR_DOT11_MODE_11n: @@ -24158,7 +24154,6 @@ static int __wlan_hdd_cfg80211_get_channel(struct wiphy *wiphy, break; } } else { - hdd_err("Invalid device mode"); return -EINVAL; }