Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3129319pxb; Mon, 6 Sep 2021 13:06:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzya8h5lEKp66TIlbJ/5KOLtHPQhzS8682qjJ4Qo+XqyunL/Q89ixA3yi5GfJmNQrVbIRXr X-Received: by 2002:a02:7f47:: with SMTP id r68mr1270877jac.54.1630958814184; Mon, 06 Sep 2021 13:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630958814; cv=none; d=google.com; s=arc-20160816; b=yEAjmHjWYx+4yekATGCpjMd0iH6ugkdNpxVOVjtxfNE506P4RzgAOweZzOPjMFKtD8 rY8AbIIvy8bsJbuUR21xhGHwhJBkYva58iDTLcTCCB2VThOxD+mi6kJRTGH9F+7eRnfr cn1sXbnu6YI10ZfhRCFjFC+MZkJUHAs6joReziRGPLjqVqxB/wq2FutdHbXkAInqxUjv PJ+9M7uTQOfuxyBMfK5L/OZXDlzYj7LzgysyrOu3Xoihi/EMlOV6ibF0xLdCg6l3a6sY lp+KWQ8GVLg9ITDlQwIpgkx6KL5QfQUDuxo8T1SkDdFHzJ9snq+pf1NcFTWeSLTMKRML /3uA== 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=/E76js6TBfOzgnGGToEEuG6uYwpd6xQ5NNXwfApcz3s=; b=BJGkyOYg9Cw5yoqaoab379MstmV1WwiouhjQgDAtm/Mns+v+IRWblaCr9IU+kf8vRA 41mYRU+BplrJ7S6uSHAX85H7mcFnHcnaEnpfXow3it890Y7fLavgjBitfD9feqQglg0k xZ0K4/+y29ihK4aeuSXiyitc5YVYK40yO4G3JOqVJrsZ1nJ9LABqjX7+afE2uRlsMkRa 3FbK0LBLHQRPnQHg0GsNDL8XQ84rQvD8bwP/wP/I+Zf8ibm5nfB3L2ZSSVuDZdG9QI6o I15gbtCC9eZZN7BeK2zW6PeSJHU6c3N6/A66/iEdtZQV9ZngoCBd9Lz2dBkfFl8CdIe9 L9Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pHntj7U+; 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 g1si7226411jab.42.2021.09.06.13.06.42; Mon, 06 Sep 2021 13:06:54 -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=pHntj7U+; 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 S1343769AbhIFTGS (ORCPT + 99 others); Mon, 6 Sep 2021 15:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343616AbhIFTER (ORCPT ); Mon, 6 Sep 2021 15:04:17 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0573FC061796 for ; Mon, 6 Sep 2021 12:03:11 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id t19so15107993ejr.8 for ; Mon, 06 Sep 2021 12:03:10 -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=/E76js6TBfOzgnGGToEEuG6uYwpd6xQ5NNXwfApcz3s=; b=pHntj7U+622VQ1Ck+CSoBmqqj70/AtGiWhqIZIQi4IL9mk6YRKcB6howwXloJTYt1t zpPPJ0M7zLQGtLA9h+FDh++6yKg1k7K5MxD5GavQQzVnOJPUYdtqgXAwYs6GQvv/xrXz OzU8zgARlQCDYi3+ldpyoKi81HqdOhSZjYId2ABg6ZvDEZRmKkj1DCqIJf2RS/jlja33 p7wPrOPwoZzMgHSSc20wPhzzSJrNKY1YYeK9wTL716LplE1f8MxsZZtpB/oBemUKivgP cO4VmEutWQtV1McFO2zxQ3yqCpT1ywGkmCNRJp4dfWaN4AuxoZqhKHZYVy7h/GHovRYQ mn6w== 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=/E76js6TBfOzgnGGToEEuG6uYwpd6xQ5NNXwfApcz3s=; b=Ah/Gm4txjKAXvyIelxm89NJGZ8c5HBpbxigAQSKjuKFE9cQXFb0FZc94IlzeRHJfzc 5CmNrS4QOtCGwvSvYgudmQtIUlM5ns8oUa4D4IxzDyg+mo41LjscIfaFOYDDdosNXCvb 5H9mxhBGNNFbFD0GIKnztYeE1jIoMfBXvohj5HGtqFlaPOdfeK2SsOO2b9zM1huz+1rs HtREKT1wohx0JgQ0mIO/VBkrnssh5hweA3E5PV5+RmSAY7hdnJ2geiWXKIhGUkEznT/U 9rIQuQ2Z9eeSagHnC6eanXBYyEDfTDan8/DJ0tXZ+lb1OJtEFpE1KkvfETZTkBVYhIJA Dl7w== X-Gm-Message-State: AOAM532BCX0l1RwZQ1IqUaRl+JC67RlhMgKBBFHOAmLTD5aSv1f41Q71 9zd2lZsfD+R5J84u5goWwXI= X-Received: by 2002:a17:907:2492:: with SMTP id zg18mr15611309ejb.233.1630954989610; Mon, 06 Sep 2021 12:03:09 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:96c0:3b88::8fe1]) by smtp.gmail.com with ESMTPSA id k15sm4372018ejb.92.2021.09.06.12.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:03:09 -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 33/40] staging: r8188eu: remove AntDivCompareHandler from hal_ops Date: Mon, 6 Sep 2021 21:02:16 +0200 Message-Id: <20210906190223.11396-34-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 AntDivCompareHandler from hal_ops and remove its wrapper rtw_hal_antdiv_rssi_compared(). Call AntDivCompare8188E() directly instead. Signed-off-by: Michael Straube --- drivers/staging/r8188eu/core/rtw_mlme.c | 3 ++- drivers/staging/r8188eu/hal/hal_intf.c | 8 -------- drivers/staging/r8188eu/hal/rtl8188e_hal_init.c | 1 - drivers/staging/r8188eu/include/hal_intf.h | 8 -------- 4 files changed, 2 insertions(+), 18 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c index d330f58ab3ad..848b1d4bf398 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme.c +++ b/drivers/staging/r8188eu/core/rtw_mlme.c @@ -14,6 +14,7 @@ #include "../include/wlan_bssdef.h" #include "../include/rtw_ioctl_set.h" #include "../include/usb_osintf.h" +#include "../include/rtl8188e_dm.h" extern unsigned char MCS_rate_2R[16]; extern unsigned char MCS_rate_1R[16]; @@ -469,7 +470,7 @@ void update_network(struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src, u8 sq_final; long rssi_final; - rtw_hal_antdiv_rssi_compared(padapter, dst, src); /* this will update src.Rssi, need consider again */ + AntDivCompare8188E(padapter, dst, src); /* this will update src.Rssi, need consider again */ /* The rule below is 1/5 for sample value, 4/5 for history value */ if (check_fwstate(&padapter->mlmepriv, _FW_LINKED) && is_same_network(&padapter->mlmepriv.cur_network.network, src)) { diff --git a/drivers/staging/r8188eu/hal/hal_intf.c b/drivers/staging/r8188eu/hal/hal_intf.c index 1bec02b1dede..e723742dab51 100644 --- a/drivers/staging/r8188eu/hal/hal_intf.c +++ b/drivers/staging/r8188eu/hal/hal_intf.c @@ -206,14 +206,6 @@ void rtw_hal_bcn_related_reg_setting(struct adapter *adapt) adapt->HalFunc.SetBeaconRelatedRegistersHandler(adapt); } -void rtw_hal_antdiv_rssi_compared(struct adapter *adapt, - struct wlan_bssid_ex *dst, - struct wlan_bssid_ex *src) -{ - if (adapt->HalFunc.AntDivCompareHandler) - adapt->HalFunc.AntDivCompareHandler(adapt, dst, src); -} - int rtw_hal_iol_cmd(struct adapter *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt) { diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c index 62fd62ced0e5..84449d8111c0 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c @@ -1773,7 +1773,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) pHalFunc->run_thread = &rtl8188e_start_thread; pHalFunc->cancel_thread = &rtl8188e_stop_thread; - pHalFunc->AntDivCompareHandler = &AntDivCompare8188E; pHalFunc->read_bbreg = &rtl8188e_PHY_QueryBBReg; pHalFunc->write_bbreg = &rtl8188e_PHY_SetBBReg; pHalFunc->read_rfreg = &rtl8188e_PHY_QueryRFReg; diff --git a/drivers/staging/r8188eu/include/hal_intf.h b/drivers/staging/r8188eu/include/hal_intf.h index 929e861cc81b..2c6a3d1f0077 100644 --- a/drivers/staging/r8188eu/include/hal_intf.h +++ b/drivers/staging/r8188eu/include/hal_intf.h @@ -156,10 +156,6 @@ struct hal_ops { void (*run_thread)(struct adapter *adapter); void (*cancel_thread)(struct adapter *adapter); - void (*AntDivCompareHandler)(struct adapter *adapter, - struct wlan_bssid_ex *dst, - struct wlan_bssid_ex *src); - s32 (*hal_xmit)(struct adapter *padapter, struct xmit_frame *pxmitframe); s32 (*mgnt_xmit)(struct adapter *padapter, @@ -255,10 +251,6 @@ void rtw_hal_write_rfreg(struct adapter *padapter, enum rf_radio_path eRFPath, u32 RegAddr, u32 BitMask, u32 Data); -void rtw_hal_antdiv_rssi_compared(struct adapter *padapter, - struct wlan_bssid_ex *dst, - struct wlan_bssid_ex *src); - int rtw_hal_iol_cmd(struct adapter *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt); -- 2.33.0