Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2595679pxf; Sun, 4 Apr 2021 07:13:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwy9nitsZqyvLSva/x8UAeDAnjs0NLF0SY2gaH8Php94sFbRFiwlOmdf4mgnkDdCIroOKGr X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr26647894edd.327.1617545609150; Sun, 04 Apr 2021 07:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617545609; cv=none; d=google.com; s=arc-20160816; b=mVlml4Bmt0nGqg+lmgXrywLE7nM+w1zootBwCSxQdu2Hcp+B5ovlJIiM7Ofi0/SoBH Zl5uzy80II0zdVRjkPblG065idEy3f0Or0Dl/57MCN855qhP8ZxU/FjVgj9HxamJgNoo NOT221DA9JmouBFV/bYL4x9tBwCNVC/ecqQXvtfzVX9+Bbc6r5RLdk6GuZtMmxbEOchP x/TLkZdd0nLJnfLOqfO43f4/vXG/jnrDeLyIJ4WK3LwgF0yUmtUaWA+gNd06ols4r96D LLJwuHb420bhppgcU8/XwaBc+2poP//Egs7f0u3mAlOXyfd7maZ6Z8diLa0XTlYK/GSP x7Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mTpgTYAuNOGpQA/JBeXTXo9cQF6qwIy+jwlVbtJcu90=; b=cd9WRPZvfXgqlxmDN5FbmDUcxwKZ3mAnwPWyv/YtpyHk3PI/5sSZI/FgCafnI3QxT+ cWA/aCoCr126W72GKSaV9ivPW6dxYrdZ2nioZvUwQO9m0ggBz8Rtan8AG1R6d1jUo87p XFCBYzM0W931Etsy4WmOfoUS8Z/JnXnFSQ8k45CPWA2ZXmgnZ71u1skqS9+Y8JGhK2UH n/WCeJ5pH6d4OzhBIR4zmXAPUe2HYOQK5FyWqTxoLoDVuMHH6x4yo1SrTd6HumTFs4qD umnQ36auTrxhBsbLpu8Ogtm8SkfRC9netK5SFifFgehjMX0l2KQ/HPTU1DaNwI2aN99L 5PiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qQbl4UI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du4si11076130ejc.94.2021.04.04.07.13.06; Sun, 04 Apr 2021 07:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qQbl4UI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231574AbhDDOLi (ORCPT + 99 others); Sun, 4 Apr 2021 10:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbhDDOKl (ORCPT ); Sun, 4 Apr 2021 10:10:41 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 540BFC0617AA for ; Sun, 4 Apr 2021 07:10:36 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id u5-20020a7bcb050000b029010e9316b9d5so4468967wmj.2 for ; Sun, 04 Apr 2021 07:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mTpgTYAuNOGpQA/JBeXTXo9cQF6qwIy+jwlVbtJcu90=; b=qQbl4UI2W6jGE73wKsgB8ldVfdbJRQAqsnirW/uLq08nZykavlZcHyyjLRe9Pw8VSY P+D9kYyavbuCNfh5BI29geSdEyjDxK4vvbotG2EqkhXAzWz24dkKtGxbfTM6OQPeDtPR 9eBk6l0vbBKbWHsdbeEFJpoyYDv6LLG+90Fdb5Jf6xhpXN2ADXkR4x2IfquCDOQ383Pa cg4QSE+N0q4OZi8PbbRFpeXgQbTjggNlEqfkJyaq0tdGFw82xQ50RTl04pqzwf/LpBWJ vBhR+/pR94KWpb0JOotclnXlqEUKkvmA0RorRMHTzcUFVCBXaMR1bC1B4rLw40XMTM/G IvzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mTpgTYAuNOGpQA/JBeXTXo9cQF6qwIy+jwlVbtJcu90=; b=BnHSGBvit07h7sTEIynd8oMKUiaR5fYSGUECyZuUsBqxMU5QagsvdeNLfEEJ7veNMa vZXlFHudK51fnh0VeDNtDTj7/nT4HDBcPyoXgw7TFimfTc04cLKY4y3AxaUmrS7HV4X8 bOs6LuPyMM6n62nvFp89iOLbSxssTjpd7DtMHJzO/a5U6PWv/pzVwWJFRzSw4b6Kq5Hk +VnKilPPs6iXrTtdCB6d60zIvyVBFGeoDIK0jZ+0Ll21OUhbJu+PK959YftGJpYn6gdb tvkW72soSo+jbwdVPDCpTLApaWP+bcbBqmRoYEqDO5OwZY+kcy6UHGDh6IU+O5yOmwBF LsoQ== X-Gm-Message-State: AOAM5329dLAwNpfmthffF1gxyGZGIhyiQpvGQLEeH+7kk+lJ48QUCPhi tKkeR/iwgDtoWpndpGnphpw= X-Received: by 2002:a05:600c:35c1:: with SMTP id r1mr21499668wmq.143.1617545435085; Sun, 04 Apr 2021 07:10:35 -0700 (PDT) Received: from agape ([5.171.81.112]) by smtp.gmail.com with ESMTPSA id k127sm2975533wmf.19.2021.04.04.07.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 07:10:34 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH v4 27/30] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_wlan_util.c Date: Sun, 4 Apr 2021 16:09:43 +0200 Message-Id: <406adfd834b55ea5694dfb3c33c36fe0754edbb3.1617545239.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove all of the RT_TRACE logs in the core/rtw_wlan_util.c file as they currently do nothing as they require the code to be modified by hand in order to be turned on. This obviously has not happened since the code was merged. Moreover it relies on an unneeded private log level tracing which overrides the in-kernel public one, so just remove them as they are unused. Signed-off-by: Fabio Aiuto --- .../staging/rtl8723bs/core/rtw_wlan_util.c | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c index 760b0ea4e9bd..f6a7993005ab 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -1334,11 +1334,6 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) memcpy(bssid->Ssid.Ssid, (p + 2), ssid_len); bssid->Ssid.SsidLength = ssid_len; - RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("%s bssid.Ssid.Ssid:%s bssid.Ssid.SsidLength:%d " - "cur_network->network.Ssid.Ssid:%s len:%d\n", __func__, bssid->Ssid.Ssid, - bssid->Ssid.SsidLength, cur_network->network.Ssid.Ssid, - cur_network->network.Ssid.SsidLength)); - if (memcmp(bssid->Ssid.Ssid, cur_network->network.Ssid.Ssid, 32) || bssid->Ssid.SsidLength != cur_network->network.Ssid.SsidLength) { if (bssid->Ssid.Ssid[0] != '\0' && bssid->Ssid.SsidLength != 0) { /* not hidden ssid */ @@ -1355,9 +1350,6 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) else bssid->Privacy = 0; - RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, - ("%s(): cur_network->network.Privacy is %d, bssid.Privacy is %d\n", - __func__, cur_network->network.Privacy, bssid->Privacy)); if (cur_network->network.Privacy != bssid->Privacy) { DBG_871X("%s(), privacy is not match\n", __func__); goto _mismatch; @@ -1382,25 +1374,17 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) if (encryp_protocol == ENCRYP_PROTOCOL_WPA || encryp_protocol == ENCRYP_PROTOCOL_WPA2) { pbuf = rtw_get_wpa_ie(&bssid->IEs[12], &wpa_ielen, bssid->IELength-12); if (pbuf && (wpa_ielen > 0)) { - if (_SUCCESS == rtw_parse_wpa_ie(pbuf, wpa_ielen+2, &group_cipher, &pairwise_cipher, &is_8021x)) { - RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, - ("%s pnetwork->pairwise_cipher: %d, group_cipher is %d, is_8021x is %d\n", __func__, - pairwise_cipher, group_cipher, is_8021x)); - } + rtw_parse_wpa_ie(pbuf, wpa_ielen + 2, &group_cipher, + &pairwise_cipher, &is_8021x); } else { pbuf = rtw_get_wpa2_ie(&bssid->IEs[12], &wpa_ielen, bssid->IELength-12); if (pbuf && (wpa_ielen > 0)) { - if (_SUCCESS == rtw_parse_wpa2_ie(pbuf, wpa_ielen+2, &group_cipher, &pairwise_cipher, &is_8021x)) { - RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, - ("%s pnetwork->pairwise_cipher: %d, pnetwork->group_cipher is %d, is_802x is %d\n", - __func__, pairwise_cipher, group_cipher, is_8021x)); - } + rtw_parse_wpa2_ie(pbuf, wpa_ielen + 2, &group_cipher, + &pairwise_cipher, &is_8021x); } } - RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, - ("%s cur_network->group_cipher is %d: %d\n", __func__, cur_network->BcnInfo.group_cipher, group_cipher)); if (pairwise_cipher != cur_network->BcnInfo.pairwise_cipher || group_cipher != cur_network->BcnInfo.group_cipher) { DBG_871X("%s pairwise_cipher(%x:%x) or group_cipher(%x:%x) is not match\n", __func__, pairwise_cipher, cur_network->BcnInfo.pairwise_cipher, -- 2.20.1