Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1355712imc; Sun, 17 Mar 2019 11:33:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7vKebl9VjV7ifHlQRMc1SgiOjsUIXcvOtK2bVVRZcfn4Qj5kFlaHWNyQJvIUZX6Z5WGvt X-Received: by 2002:a65:6651:: with SMTP id z17mr13273853pgv.95.1552847587028; Sun, 17 Mar 2019 11:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552847587; cv=none; d=google.com; s=arc-20160816; b=jCggxHdAMNoh7891lAF5NebZhUKnB3NfAVtJZzraAuchWkYlq1V6Hlftl6j8Y2RE/O eT5yRxOfKOI54jeY9VLnpivlp8+7vOdxeMfkSPrOvwSrr8K7K6GbYnHlfb8MMThznLj7 QiJ8M4XKBynnSMuOWfk79V10jx7llvjDnB1wu6zuWw0jijjOCzp5Q5Btmt68Co+2YL4g Ysyod9MPb8oQUHA1WIe+5Qp6KBIV6wVBtosVApA5hlY5vybdhen3j53qhbsFcRwenknx DrF6XyL4UFWZtZg5mDvTanZuxkTLfFjuWJFNJeKHHXPs8DHmkFuR/a5c/fMQKwkE5e7m NLQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :reply-to:references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tOpOKBKHJJ0wFO54WQ8Dh4eqDCPLR/zymW7IUVlHAO4=; b=hzqI6DJa+gXJO+Wbgomx/rfD2JgjBaxWEOqCE7dtVVms0laan9t11KjLwH4MgzUj4r Z4wYh+0CyVcT57zURRoWVBgWzWcMMbvK8Fb+yThiY5YpOSsdL2Cq07P911ynRw5JC8Wm Z33fPOOIzLnZ1E1xPF9CW5wYZdPfTQvA8U8xIICc1+RBzD6i594w+TLR5DQ5N00uXvsu vQ3l/GzXdqvc7+Kjq7t83MUbJ3hr9FzaG4gfq5hZ804c/Na/qEkQgyyHiOUgpApk3L4V XHgscxcyQIHanmRwVfRnFuu6RqssVedg8WZ8lQN/Zla2mX9CgoaSi6ZPswb4beuTcs1e D3Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=neWTKteH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x26si7608257pfn.260.2019.03.17.11.32.52; Sun, 17 Mar 2019 11:33:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=neWTKteH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727570AbfCQSb4 (ORCPT + 99 others); Sun, 17 Mar 2019 14:31:56 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35618 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727495AbfCQSbz (ORCPT ); Sun, 17 Mar 2019 14:31:55 -0400 Received: by mail-wm1-f65.google.com with SMTP id 81so3235610wme.0 for ; Sun, 17 Mar 2019 11:31:54 -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:reply-to :mime-version:content-transfer-encoding; bh=tOpOKBKHJJ0wFO54WQ8Dh4eqDCPLR/zymW7IUVlHAO4=; b=neWTKteH9bbHtC89qhsfX327rL+upavau/XItMQmBPGrgAdO9Xj8Xy6HpqKsDJ2pGr Eii2iaTZ6fwctdAwRUTBiQh3astWlYtiJBm064NoGiOS/znRzrGZhT+i8wTFq3hHaorg nHDOLqgOifXESK9Pe5frIKySP3FL7F9vjJrg+XO/T3/LcTibpo+4VTBErd9vZvAuZd7k bpNxqfaTLpcZfQula701+ps3Qrymdzc0FD3+Znws4wtXJwkpExljJnK7Q/jXsovkIeEW nySzSclfDWpV314Q+BkooM9ZQgkUvqU7dqfl3un9jE3DFI3txt5D62nYA8nHiFkJl0VW lHVQ== 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:reply-to:mime-version:content-transfer-encoding; bh=tOpOKBKHJJ0wFO54WQ8Dh4eqDCPLR/zymW7IUVlHAO4=; b=gJgIddIrXdnQ8zQbDKKb+bZGMAndf21qyopLAaAPEvGVsxKPMaJkpmIAqYRAjGBkuz jXlg2nc/aLJgkyajeQXFnrzhk3e6t/vqePx7kNZXxzKpn97WYw19tPix1MwKJgA5jP1o EeXxQIgD4zZnE2E5lZhdGJkqPw0XpkzSvOkfRadgoAYuR6c/Wlc1X4JkIvqFaQINE/8J xYXiKrNq86CIC7UDtZYNOD4zHaQvqXgi+9UlKyRQA2+L6lVVYZR/u2oyLEGWBRXVSLS7 rZ6a2fupVQp/QnSEo1625FTs6Jds1BMhrxzZFlkpnaPWz8Sex1lTlD69EgfkhDGw2NVe WASw== X-Gm-Message-State: APjAAAVznBque3qe9eGu89JXwO4JZPi0geaze4F2sH45UKIwQYgxJHsu opnGtu1hRA1kJ2HIwgxkEJPNux8gL28= X-Received: by 2002:a1c:234d:: with SMTP id j74mr8051351wmj.130.1552847513552; Sun, 17 Mar 2019 11:31:53 -0700 (PDT) Received: from p200300EEEE2F.fritz.box (p200300C9871AF900B43796A8F69485B6.dip0.t-ipconnect.de. [2003:c9:871a:f900:b437:96a8:f694:85b6]) by smtp.gmail.com with ESMTPSA id q5sm8415358wrn.43.2019.03.17.11.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Mar 2019 11:31:53 -0700 (PDT) From: Emanuel Bennici To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Joe Perches , Nathan Chancellor , Kees Cook , Hans de Goede , Arnd Bergmann , Hardik Singh Rathore Subject: [PATCH 10/10] staging: rtl8723bs: Remove Dead Code in core/rtw_mlme.c Date: Sun, 17 Mar 2019 19:31:13 +0100 Message-Id: <20190317183115.32393-10-benniciemanuel78@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190317183115.32393-1-benniciemanuel78@gmail.com> References: <20190317183115.32393-1-benniciemanuel78@gmail.com> Reply-To: benniciemanuel78@gmail.com MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Functions `void rtw_surveydone_event_callback`, `void rtw_indicate_connect`, `void rtw_stadel_event_callback` and `void _rtw_join_timeout_handler` are using the Macro CONFIG_INTEL_WIDI which doesn't exists anymore. Signed-off-by: Emanuel Bennici --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 32 ----------------------- 1 file changed, 32 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index 406e313477aa..79adc6f1e53a 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -943,13 +943,6 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf) || _SUCCESS != rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid, 1, NULL, 0) ) { rtw_set_to_roam(adapter, 0); -#ifdef CONFIG_INTEL_WIDI - if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) { - memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN); - intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL, 0); - DBG_871X("change to widi listen\n"); - } -#endif /* CONFIG_INTEL_WIDI */ rtw_free_assoc_resources(adapter, 1); rtw_indicate_disconnect(adapter); } else { @@ -1108,14 +1101,6 @@ void rtw_indicate_connect(struct adapter *padapter) } rtw_set_to_roam(padapter, 0); -#ifdef CONFIG_INTEL_WIDI - if (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) { - memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN); - intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_WK, NULL, 0); - DBG_871X("change to widi listen\n"); - } -#endif /* CONFIG_INTEL_WIDI */ - rtw_set_scan_deny(padapter, 3000); RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("-rtw_indicate_connect: fw_state = 0x%08x\n", get_fwstate(pmlmepriv))); @@ -1703,11 +1688,6 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf) roam = true; roam_target = pmlmepriv->roam_network; } -#ifdef CONFIG_INTEL_WIDI - else if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_CONNECTED) { - roam = true; - } -#endif /* CONFIG_INTEL_WIDI */ if (roam == true) { if (rtw_to_roam(adapter) > 0) @@ -1732,11 +1712,6 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf) } spin_unlock_bh(&(pmlmepriv->scanned_queue.lock)); -#ifdef CONFIG_INTEL_WIDI - if (!rtw_to_roam(adapter)) - process_intel_widi_disconnect(adapter, 1); -#endif /* CONFIG_INTEL_WIDI */ - _rtw_roaming(adapter, roam_target); } @@ -1833,13 +1808,6 @@ void _rtw_join_timeout_handler(struct timer_list *t) } break; } else { -#ifdef CONFIG_INTEL_WIDI - if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) { - memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN); - intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL, 0); - DBG_871X("change to widi listen\n"); - } -#endif /* CONFIG_INTEL_WIDI */ DBG_871X("%s We've try roaming but fail\n", __func__); rtw_indicate_disconnect(adapter); break; -- 2.19.1