Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1846862pxf; Sat, 3 Apr 2021 02:18:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhV9rPip7m/xp91DsWTWgHBUZEnT6Ez8pJ9JXJ/SI3cKx72McScml57mTHdJCGV8kYRc7Q X-Received: by 2002:aa7:dd99:: with SMTP id g25mr19659106edv.230.1617441517619; Sat, 03 Apr 2021 02:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617441517; cv=none; d=google.com; s=arc-20160816; b=Kyk5FJ9m7/UJpfDvFUNj3Nrux+sGr2WMwcHOPJi4Wjd3AN1RvkwSW2Fd8ntjWxuC30 D/M40eO5KwIxDX/uXjSP1GXET1FNh0Orb8FM757ox1jm5+Lc04+DCQi8Wf0rEn52djBn QH+y0GrUbsiPnyQusLTsDu2OCcdPDDHORoJHtmBhYLwNw0UPGK/HgLRSstUCMjYHZPdO SsqhQ+Zhlfl9e+m4ETifBFkJVbnjy5m8yvQVD0Ft1ZXB28LlJD/XfcUuqNxARmo90cr5 NTMD3LxBcUZoSu4fmNWH/VAmHvxz3unlK3kv5xQl/liHURZlVjB8gTNJyypYpb+N96kF o0RA== 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=jqka6Hz1FxQMPoQbPXrc701wDNfbTNFu4/7wEF4BsEc=; b=A4we2Bug2LTDZtGSBYtMRIuzQYHHvrLDkilgnEXqGxylW6CcMlekbDQ3vAUGA9eNAG stN6ePIbpyV09VQIhLL6OLEZKd8OsUe4dO8Sl39hfTep6pTpr6uc1pXAbQbKbak3qr0W JcWZEyr8Z08cMM/UwLarVP4eTbQNnfi+TLovyHMKfBjSp+ko8MEFAZfbVlZIxgpaCrPG rQHdwknLXCf0fUBlGzkLVvTqbS4qgIQsnlSFQhlAasDcHSr+taWpeU4S7EMbeQ31AUin mRmtNau2+ByrxLJ5mZot7Yo8+iepzzlb4x9M2EpGwhXL9pKshI917SimnR/gvk10j4j8 Mqow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O6uIovmG; 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 gr2si8209608ejb.65.2021.04.03.02.18.15; Sat, 03 Apr 2021 02:18:37 -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=O6uIovmG; 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 S236765AbhDCJPX (ORCPT + 99 others); Sat, 3 Apr 2021 05:15:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236535AbhDCJOo (ORCPT ); Sat, 3 Apr 2021 05:14:44 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EDA7C0617A9 for ; Sat, 3 Apr 2021 02:14:42 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id v11so6527617wro.7 for ; Sat, 03 Apr 2021 02:14:42 -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=jqka6Hz1FxQMPoQbPXrc701wDNfbTNFu4/7wEF4BsEc=; b=O6uIovmGkrovINUyezKo1O6UwJYYmJj+P0r73iCon4N98+ygf/c4/mBXzUirK+vzDW ydMSzea0qACi04tfzftKl+2lPcj7BxLQwKjHpRaA6PM9ATL+ESrOzTACEAIwCvLHd20r aCjEJPTmQ1+NXLEDeUILuMXP5hDE3BtJWGoTjJrNY15BQu+H5VrHWnw61NmmVkoCJkuw EVXKKtwpHv0D5US3EiZCRdZpVqeO+0EH0TZrTmtoxG3uv+XbGE/Ly+BWCos/JsWkb3S7 9Qp/IfH0q03Kc0Wiac2ObpX+R2LwxjU4YUWvBhgkGKQcw14QwdLw7CFuMlJ1/gFttIve HDuw== 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=jqka6Hz1FxQMPoQbPXrc701wDNfbTNFu4/7wEF4BsEc=; b=foD8uaAMHDrt+lcxhop9EmqCoN0nuf5MpqjtD/akawMenGa92NaJxIilLr+cRe1v2e E3l7B2HFCLJwyV7Y/o4uEEeOOxQ8VZ41s+vE6/FuRJhgNXDATKGx1daq9MNDb/f8k3X0 4i7TsZMZbcsd7J5c1KyRgmy8+ZyRVSK6NmQfOy1UlcvszVG5ciD7wMnIpc6iMaTEtFPW c1PaMSXxGVY+51nH19aQdcfsoT5bLPL0mybvA1gdiyU8UjOV3vzERKTigBTsKVWt5CL9 +Gd1arHtVBQ90F7fVGbG+3z45trEQ++UWYWpeIBFVjuqt1uHQ3Eh2XJT34dwyxWakXds PPhQ== X-Gm-Message-State: AOAM533iuT1Jj/hyzCM0I8w2i4l+jTzF9z7R5YG12zwaY8x59DhhasQh BXvEDhAgxUwOY+13rgm1oZM= X-Received: by 2002:a5d:65cd:: with SMTP id e13mr19646303wrw.334.1617441281123; Sat, 03 Apr 2021 02:14:41 -0700 (PDT) Received: from agape ([5.171.72.64]) by smtp.gmail.com with ESMTPSA id b131sm14900853wmb.34.2021.04.03.02.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 02:14:40 -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 17/30] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_mlme_ext.c Date: Sat, 3 Apr 2021 11:13:39 +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_mlme_ext.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 --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 39 +++---------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 8aadcf72a7ba..9855a77a5188 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -526,14 +526,8 @@ void mgt_dispatcher(struct adapter *padapter, union recv_frame *precv_frame) struct dvobj_priv *psdpriv = padapter->dvobj; struct debug_priv *pdbgpriv = &psdpriv->drv_dbg; - RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, - ("+mgt_dispatcher: type(0x%x) subtype(0x%x)\n", - GetFrameType(pframe), GetFrameSubType(pframe))); - - if (GetFrameType(pframe) != WIFI_MGT_TYPE) { - RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("mgt_dispatcher: type(0x%x) error!\n", GetFrameType(pframe))); + if (GetFrameType(pframe) != WIFI_MGT_TYPE) return; - } /* receive the frames that ra(a1) is my address or ra(a1) is bc address. */ if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) && @@ -545,10 +539,9 @@ void mgt_dispatcher(struct adapter *padapter, union recv_frame *precv_frame) index = GetFrameSubType(pframe) >> 4; - if (index >= ARRAY_SIZE(mlme_sta_tbl)) { - RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("Currently we do not support reserved sub-fr-type =%d\n", index)); + if (index >= ARRAY_SIZE(mlme_sta_tbl)) return; - } + ptable += index; if (psta) { @@ -2675,8 +2668,6 @@ static int _issue_probereq(struct adapter *padapter, int bssrate_len = 0; u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; - RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_, ("+issue_probereq\n")); - pmgntframe = alloc_mgtxmitframe(pxmitpriv); if (!pmgntframe) goto exit; @@ -2743,8 +2734,6 @@ static int _issue_probereq(struct adapter *padapter, pattrib->last_txcmdsz = pattrib->pktlen; - RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_, ("issuing probe_req, tx_len =%d\n", pattrib->last_txcmdsz)); - if (wait_ack) { ret = dump_mgntframe_and_wait_ack(padapter, pmgntframe); } else { @@ -4441,8 +4430,6 @@ void start_create_ibss(struct adapter *padapter) /* issue beacon */ if (send_beacon(padapter) == _FAIL) { - RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("issuing beacon frame fail....\n")); - report_join_res(padapter, -1); pmlmeinfo->state = WIFI_FW_NULL_STATE; } else { @@ -4622,8 +4609,6 @@ static void process_80211d(struct adapter *padapter, struct wlan_bssid_ex *bssid memset(country, 0, 4); memcpy(country, p, 3); p += 3; - RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_, - ("%s: 802.11d country =%s\n", __func__, country)); i = 0; while ((ie - p) >= 3) { @@ -4813,9 +4798,6 @@ static void process_80211d(struct adapter *padapter, struct wlan_bssid_ex *bssid break; chplan_new[i].ScanType = SCAN_ACTIVE; - RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_, - ("%s: change channel %d scan type from passive to active\n", - __func__, channel)); } break; } @@ -6332,10 +6314,6 @@ u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf) #ifdef CHECK_EVENT_SEQ /* checking event sequence... */ if (evt_seq != (atomic_read(&pevt_priv->event_seq) & 0x7f)) { - RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, - ("Event Seq Error! %d vs %d\n", (evt_seq & 0x7f), - (atomic_read(&pevt_priv->event_seq) & 0x7f))); - pevt_priv->event_seq = (evt_seq+1)&0x7f; goto _abort_event_; @@ -6343,21 +6321,14 @@ u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf) #endif /* checking if event code is valid */ - if (evt_code >= MAX_C2HEVT) { - RT_TRACE(_module_rtl871x_cmd_c_, _drv_err_, ("\nEvent Code(%d) mismatch!\n", evt_code)); + if (evt_code >= MAX_C2HEVT) goto _abort_event_; - } /* checking if event size match the event parm size */ if ((wlanevents[evt_code].parmsize != 0) && - (wlanevents[evt_code].parmsize != evt_sz)) { - - RT_TRACE(_module_rtl871x_cmd_c_, _drv_err_, ("\nEvent(%d) Parm Size mismatch (%d vs %d)!\n", - evt_code, wlanevents[evt_code].parmsize, evt_sz)); + (wlanevents[evt_code].parmsize != evt_sz)) goto _abort_event_; - } - atomic_inc(&pevt_priv->event_seq); peventbuf += 2; -- 2.20.1