Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3091438pxb; Mon, 6 Sep 2021 12:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWJYJ4Vc3QmNDFjlEhnc2jnbnuxIzFgcf0+D3MxC5eDQfpL8OB/aIf7Pm+6J79CSnIvZX2 X-Received: by 2002:a5e:d80a:: with SMTP id l10mr10484122iok.36.1630955128379; Mon, 06 Sep 2021 12:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630955128; cv=none; d=google.com; s=arc-20160816; b=FQ5uhHdfFgXjVJ+R4yP8aPJeWR9v1ap3pGR3jDG5x6SokX0BJqnPdzQJtL4z0eTcPN 7uxRDcpDdSdjlmJPzQKdY+Z7baAdH/FE8SmRENJY2Y5Dy9UqhmHjKvb/eJbqrjPBA9IG F727muKM3XHUl/O1M6ZDLrTjExjZ8sCpLRHsp3COiEs6PZOh1VRG2Hnr2M5SxqBKk+JM oD+3Cf4JwAfXcCniUoyCEPL/kUUnUssTjph3/a8GvAUwXdQrGo6xFffxPED4oEvVlru7 qwoizCxFqs++Z7wKC5GRh1T4tp33GMbh7KOe2qsFs/0I36Ufkd4DDW5qo35FTNB+HFh9 t61g== 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=K8j2ZRB4ao6UP+171+LDKHORW3G/O4Ani+xbmAGpa/c=; b=pof7k08+4RSzzO7xRpQEkj/OKYSRP4oNhFKvy6nNd1NTSsZnEG0kxCazosZtMx2ypc xNN958vYAQZVSowwsLUhGJGp3mDfVR949/ZnyNuv3BpQwlQ6oM7vGZRrrGIfyO01D9+8 zf4DVsIKowVdzbsQzp8LL1KOyS01bjdtEg14kxhSZI1uUqAH7FRCKr6YiWhY3gbIs7LS f9YKCwBdmCZT5ga34AaYRnU9lE0ZnFtOC+oI6RWXkiaXfz5o9naOrJWyAAXQJQ8izfN3 EPSTgUGCe2Og0UGGShAwX4U0CCDapdrp1D+8Tc8XWQ/quk7PVjnQr8EOtSMkpvZU2hOz +bTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BrC5fqyD; 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 n14si1358073ile.112.2021.09.06.12.05.16; Mon, 06 Sep 2021 12:05:28 -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=20210112 header.b=BrC5fqyD; 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 S1344479AbhIFTFQ (ORCPT + 99 others); Mon, 6 Sep 2021 15:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245419AbhIFTEF (ORCPT ); Mon, 6 Sep 2021 15:04:05 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B17DEC061757 for ; Mon, 6 Sep 2021 12:03:00 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id bt14so15153517ejb.3 for ; Mon, 06 Sep 2021 12:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K8j2ZRB4ao6UP+171+LDKHORW3G/O4Ani+xbmAGpa/c=; b=BrC5fqyDl0qqJsfb18clx3IgHFTzjWpJFUvb6jxrnbYUmqiSRf4XULAG7TYIlSOoYm XnfnM9BYG6Tp0UGwxl4+ElDTmHA65zQU5LfJ2NM7Msboqwvop2Tb4Ht18GuX/SFiPWb2 8qkP6Ch5HRZrDeaVtXKPjQKY0x+dwmVUxvm/maeYbmBCDCAdDu2ee3d7pe6Ax6B8VUHJ /UCYIaUCZymiRl5qwxFn7Ua7kS5seGCzmc0T9g9cx9dqnyTt3NzQ+vfJzUL5CJaXLX4E FQnrmkJA0suTlF9r2/IcyQCMkAHTZ3ptKtCVKu0CzQlMCp/rF0ep7/FlvK/5ictq9Zkw +7dA== 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=K8j2ZRB4ao6UP+171+LDKHORW3G/O4Ani+xbmAGpa/c=; b=fwhx3R+MSmTZZAr1Jj00IhFkNCdrlyKAekbLypDkFSqhoL1VrmLbz4GlXkiW8wGwyE scKjmWJ0MLFKHV58DX37peZS6xe7kCXUAroBnXMveOnMuxKkkkWOOMZYpRAZyafM3fWo etGVHgfC5DVQ8YU/Phwxq5FusupEXJ5XJZUJK11CG7BawsVXSsWaITtOLdGmlA0MtyGT 8VFY4etcwG90kwYDZ/YUMNmAgHFZ4mN9UhAgjekLUX9E1M4fo4F5C9BhFMXAV+fMJ9/9 aO0aHTrWrQgxl6ty2jd/0m0hOpcjMoUMC3f9c3OhYZO+AOnHJWUqJZfPqnZdkkmkc1sM gTyg== X-Gm-Message-State: AOAM533GmxV34GenRHmyjih96HZY5+GzFE7l9Ssmd09xPHGLCJhi1wcG gLMU9Zp0o+TtOR/Jvqixvuc= X-Received: by 2002:a17:906:130a:: with SMTP id w10mr14762951ejb.89.1630954979346; Mon, 06 Sep 2021 12:02:59 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:96c0:3b88::8fe1]) by smtp.gmail.com with ESMTPSA id k15sm4372018ejb.92.2021.09.06.12.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:02:59 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, martin@kaiser.cx, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH v3 19/40] staging: r8188eu: remove sreset_linked_status_check from hal_ops Date: Mon, 6 Sep 2021 21:02:02 +0200 Message-Id: <20210906190223.11396-20-straube.linux@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906190223.11396-1-straube.linux@gmail.com> References: <20210906190223.11396-1-straube.linux@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove sreset_linked_status_check from hal_ops and remove its wrapper rtw_hal_sreset_linked_status_check(). Call rtl8188e_sreset_linked_status_check() directly instead. Signed-off-by: Michael Straube --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 3 ++- drivers/staging/r8188eu/hal/hal_intf.c | 6 ------ drivers/staging/r8188eu/hal/rtl8188e_hal_init.c | 1 - drivers/staging/r8188eu/include/hal_intf.h | 2 -- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 57cf74d30984..2bdc1ed18149 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -10,6 +10,7 @@ #include "../include/wlan_bssdef.h" #include "../include/mlme_osdep.h" #include "../include/recv_osdep.h" +#include "../include/rtl8188e_sreset.h" static struct mlme_handler mlme_sta_tbl[] = { {WIFI_ASSOCREQ, "OnAssocReq", &OnAssocReq}, @@ -7400,7 +7401,7 @@ void linked_status_chk(struct adapter *padapter) if (padapter->bRxRSSIDisplay) _linked_rx_signal_strehgth_display(padapter); - rtw_hal_sreset_linked_status_check(padapter); + rtl8188e_sreset_linked_status_check(padapter); if (is_client_associated_to_ap(padapter)) { /* linked infrastructure client mode */ diff --git a/drivers/staging/r8188eu/hal/hal_intf.c b/drivers/staging/r8188eu/hal/hal_intf.c index b1a71a8fdf38..1840c4046859 100644 --- a/drivers/staging/r8188eu/hal/hal_intf.c +++ b/drivers/staging/r8188eu/hal/hal_intf.c @@ -221,12 +221,6 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *adapt, adapt->HalFunc.AntDivCompareHandler(adapt, dst, src); } -void rtw_hal_sreset_linked_status_check(struct adapter *adapt) -{ - if (adapt->HalFunc.sreset_linked_status_check) - adapt->HalFunc.sreset_linked_status_check(adapt); -} - u8 rtw_hal_sreset_get_wifi_status(struct adapter *adapt) { u8 status = 0; diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c index 9b44fd2d93d7..0ee7da10633a 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c @@ -1803,7 +1803,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->Efuse_PgPacketWrite = &rtl8188e_Efuse_PgPacketWrite; pHalFunc->Efuse_WordEnableDataWrite = &rtl8188e_Efuse_WordEnableDataWrite; - pHalFunc->sreset_linked_status_check = &rtl8188e_sreset_linked_status_check; pHalFunc->sreset_get_wifi_status = &sreset_get_wifi_status; pHalFunc->IOL_exec_cmds_sync = &rtl8188e_IOL_exec_cmds_sync; diff --git a/drivers/staging/r8188eu/include/hal_intf.h b/drivers/staging/r8188eu/include/hal_intf.h index 2f4bc16aeabd..baa08d9346f9 100644 --- a/drivers/staging/r8188eu/include/hal_intf.h +++ b/drivers/staging/r8188eu/include/hal_intf.h @@ -193,7 +193,6 @@ struct hal_ops { u16 efuse_addr, u8 word_en, u8 *data, bool bPseudoTest); - void (*sreset_linked_status_check) (struct adapter *padapter); u8 (*sreset_get_wifi_status)(struct adapter *padapter); int (*IOL_exec_cmds_sync)(struct adapter *padapter, @@ -270,7 +269,6 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *padapter, struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src); -void rtw_hal_sreset_linked_status_check(struct adapter *padapter); u8 rtw_hal_sreset_get_wifi_status(struct adapter *padapter); int rtw_hal_iol_cmd(struct adapter *adapter, struct xmit_frame *xmit_frame, -- 2.33.0