Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1846397pxf; Sat, 3 Apr 2021 02:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG6V4+roPz1a1cqwIn0eIKHq8e+DOFnOSXML/qGeiVFNXEdFilwGW64Pawhu/mtnRXGggl X-Received: by 2002:a05:6402:4301:: with SMTP id m1mr20725423edc.210.1617441452948; Sat, 03 Apr 2021 02:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617441452; cv=none; d=google.com; s=arc-20160816; b=bvYpgx5qCrHnb0L+1zfkpijV1hL4skdBX3i7qJ827ENAsI0qGmsbOpTLZ1xE6Vl2j4 8HGzt/m5xC24gfim9/fqm2nLIi0z7Y5p8+/PAbafqhdngahEqVVFXHJ1RdMDpzik/Dfg gvvfei8Re7ns9SCIIfVWZSPGgVAr67CYuaKoes6fBCUq2rsJrtU2RhRU7wmA2/njCbQI nLDUw/akt+ou5pCJVJRe0BnqgYLXFjOV954JcJm+AX/axmUCs9Ur57qfKeGO3yH2SUGu IQYX7a7/eZzCqVWvLlWDgESi7ckS6Uhe5968TufO57m/+H7luGRIK5uaERMsDmRIzOWX CMBQ== 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=VvuuEureNU3oy8/9kJePFCu8L8A8KCsYNCioM10oyOsWRnPtBtjbcjEhB1RoPPgC6V a8dY8p7wjhR1pZXzuTgWYiMkR83XaGZsfzZ8FBq/OSwA9gGWZXKfVIrtxyLoSzc/L84G x7TB9JePfwM44cyZ+MT/W+DEulZsbniZtNV1teIVmRduhiVt2yQDojq6kwRgkpawEGlq EMS3kUlx+EXiTIrv5z+R8oz9uUMtDA3HMfo+zQlPLpGVtj1mN/90pR+f3V7rSymAm2Kj CvmkCcBcHTZh7OcL3RR72rDAhfAMqrJ3B3mPMjzo2UK87ZtLaadsvC2z7vFdzMPRx7ul ql2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YFnbMxef; 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 dc11si7979836edb.17.2021.04.03.02.17.11; Sat, 03 Apr 2021 02:17:32 -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=YFnbMxef; 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 S236822AbhDCJPy (ORCPT + 99 others); Sat, 3 Apr 2021 05:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236654AbhDCJPC (ORCPT ); Sat, 3 Apr 2021 05:15:02 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB740C0613AC for ; Sat, 3 Apr 2021 02:14:57 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id v4so6513390wrp.13 for ; Sat, 03 Apr 2021 02:14:57 -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=YFnbMxef0+5bejXzU3w63BSRKYgI2x2w1jHZ+Xv5iewILD53KwgbSvXkN65ds5KuaX CWQ8+hziBpNtljbLUchnyO26Hy1hImnHFttrWZfLZYfp/xKQd0NiKq7GoNeHhVMYhFmN Jk5pYA3CjSmi2q/e8antXqXlxpZ18AFCQQSzHJyhLHVStu6+c9OSco+g6mjJyq43kB1I VR0QZaNVe6RQDytDL1UuwojM+LRKqN25FHWmaf3hEn/06g7IqJgyrbRQY/XHvfbQ1dyr ln5j0ZWbDCdNDSMXqd198BTlK/W7DroTBtfFyKgY489nRyI1YrhtBd/oV7yWbaj/cCGx MrQw== 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=POKNhOA2sl1gZ+UmrtQPhYohKtkT0/54H2U2wFrjJQfdVRg6PHC4Xk16Q+APztQ6r1 /AGCDgvcOd7okZ6YH0fN3wJV4VBpWv+YwpNytMQjFZ8HZa2DWvPF365m6YLdRRF6XGd6 Ni+fh/lACGhM8/KtnWQnnsFdLqIk73Mm26eLXJgMhJlOWYAgw1SOQVcHG3QbKFzbd5R2 349Rfwn8zA191U9dHxDnvVuNgTQ2JVg5/QpM43NZ4xEla/k+8ENhVJZoYGPE1PNkkjat 9ZCgAtxw1Ilg5BnoMbN1eK8iHY+smSDBHuEVK29B+u/gUHlYDHPZ8lyXY4PGnyAUpM3X 03mA== X-Gm-Message-State: AOAM533yXngSA5wpOzU+Af5cQnw3k3U7qS8wsBb4BpViCwQcStQFKAZP D/q3UdFjlxqbozv3M+c04Vc= X-Received: by 2002:a5d:6cc3:: with SMTP id c3mr3967397wrc.179.1617441296579; Sat, 03 Apr 2021 02:14:56 -0700 (PDT) Received: from agape ([5.171.72.64]) by smtp.gmail.com with ESMTPSA id h6sm5784372wrr.21.2021.04.03.02.14.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 02:14:56 -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 v3 27/30] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_wlan_util.c Date: Sat, 3 Apr 2021 11:13:49 +0200 Message-Id: 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