Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3121079pxb; Mon, 6 Sep 2021 12:53:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUjAyKs7AeQO9vZ/g2VXBCfYkAnfLYZoI4I03ADKlnNcoSRfzBBr0xLetBMUGDDt8XQ3hF X-Received: by 2002:a92:c08a:: with SMTP id h10mr5032506ile.202.1630958005959; Mon, 06 Sep 2021 12:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630958005; cv=none; d=google.com; s=arc-20160816; b=tb/i5Lws6ZbaJG9o7ICcqYn6ZAcJ8P1XzzmX+1iHU6hWU+u8HOf714YL5QIdyvJz7L Z/w25sSz4cYjs57FQY75H5OIw/tCv8qaikJV16RqwDaeNZHpcc2WLrMg+ywfpbMVq+Vz suX7ZPvo/tfL6H9Lz8oVEu0gcIM4BtLQwQZRUAwtCfrw9mRm0/X2J6bRscgtVRQB3xcq 4sJqZce/PYAPJkT8kwY7pF/KIYKsjV0Aq/PenkJ0wzO3ulG7o5Ee7gU/SWABnZDDcGua PXJfSYBFvnKiPXp+Y7CR9FgVCwRri2CUq4tvnrArK070l4FkJ1IkGT/UE0gG8vBKEhgi pUhg== 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=HM0U8aFAgyxYkE6pP3iIT4ysY9lJ8YRKLSjNY12/S5U=; b=EJ/k5zXvY72ogGnV68QBobfQo0kRfkRPQEGDV7ey5bK8Rhf3ImHPNBc6wNaRJKYmwY axOkctP5vlue74GmK+yYkMiM57BmjgtBpXTT2PA6Uta4z0TKDDPa7cnFSTFKqPh8v6s/ ruw5h/CJF5LjDchU7NwpuNybI4KuZ6p1pkyPq9AF1hdgZ3Otmi6sP9rlzg1RQCfn6cNa Thlp9sSCzTBHvDufbkS5Tll2faZidbXHInkR3BAfoAcu4sXb1ZdfwT/BghRe4p14No6x AQrmQVd2iOwVDuJiQfz4sKDpe33kYk7KET7kFtSO2PpyBFnGe1YUVif4LzCqA/6f0Auv fd7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k+ERlf7N; 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 s19si7857588ioj.101.2021.09.06.12.53.15; Mon, 06 Sep 2021 12:53:25 -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=k+ERlf7N; 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 S1344465AbhIFTFq (ORCPT + 99 others); Mon, 6 Sep 2021 15:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343661AbhIFTEU (ORCPT ); Mon, 6 Sep 2021 15:04:20 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E3B1C0613C1 for ; Mon, 6 Sep 2021 12:03:15 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id ia27so15092779ejc.10 for ; Mon, 06 Sep 2021 12:03:15 -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=HM0U8aFAgyxYkE6pP3iIT4ysY9lJ8YRKLSjNY12/S5U=; b=k+ERlf7N6CImlG/BnP9qmfyvgRtud9iTlFQfbcI6AaMa+VImVY70nKv2BFqt4hqmFr IwGQulK6D/SJKsR2Wtp+3J6F40udNd4QyN/lGzrgy4Ehvvb8a6YQUXmXT3KVtQEiYSMH f1VggSixvNT3luCI4Zn7WD1jWgnAXdzKXagCwcqFh1jdrn7Cyn2e1Ks/zCNcJVp9aMoh zWqFwlen1h8qz4DgtaJQFQoaOBGadg9Q0Hg97tZc9CQH+32LkLL6z7yZtkCbnAraLPvw 2zgdj1j1UtkYQt25H8TH87rX2hKyuZF+DepVezAmEtG1IiGTT1eMid9J8enu4F1qeinn aYHA== 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=HM0U8aFAgyxYkE6pP3iIT4ysY9lJ8YRKLSjNY12/S5U=; b=Vlb92oymD1OIEBJbtQCGKtOWDbNSUG+lW6JSGqRjBzbh0V81GpcrS9r1g+mvWmFiCr yulAfqmykFnfLS3CJbIIWFyT3BIk12WNX5KibFI2NVWH9l9vgfqRPyVsfErH+t4SqyqY rUAT/64D3mUPb7XVPMWaPNpIJGqdEypZnf1V3hl8Eai9IzXlobs7Yg9g+ssDq9qD5IeQ izZrThI82oUlWikfNpLXdGYqwXRQAZUT5LBybjImSjXOlpQfpJuwpeAd23TIaFt3yhnT PysFKIVixkwqP1tcp7BwxTiuQVcyOOu+nTJIq4YiJLVZkG3FO2Nzrwf/bJwwwbOhtdH7 ckmg== X-Gm-Message-State: AOAM5335MzQvoL9uFW+GWi61g3NUz19TCXGsivrY9n3JBQ9T7EMeZODl YS041ZOO/C3W0x6+368nkjI= X-Received: by 2002:a17:906:130a:: with SMTP id w10mr14763960ejb.89.1630954993916; Mon, 06 Sep 2021 12:03:13 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:03:13 -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 39/40] staging: r8188eu: remove SetBeaconRelatedRegistersHandler from hal_ops Date: Mon, 6 Sep 2021 21:02:22 +0200 Message-Id: <20210906190223.11396-40-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 SetBeaconRelatedRegistersHandler from hal_ops and remove its wrapper rtw_hal_bcn_related_reg_setting(). Call SetBeaconRelatedRegisters8188EUsb() directly instead. Signed-off-by: Michael Straube --- drivers/staging/r8188eu/core/rtw_wlan_util.c | 2 +- drivers/staging/r8188eu/hal/hal_intf.c | 6 ------ drivers/staging/r8188eu/hal/usb_halinit.c | 3 +-- drivers/staging/r8188eu/include/hal_intf.h | 5 ++--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_wlan_util.c b/drivers/staging/r8188eu/core/rtw_wlan_util.c index cd4f1ae61dca..c2f664bdb979 100644 --- a/drivers/staging/r8188eu/core/rtw_wlan_util.c +++ b/drivers/staging/r8188eu/core/rtw_wlan_util.c @@ -1525,7 +1525,7 @@ void correct_TSF(struct adapter *padapter, struct mlme_ext_priv *pmlmeext) void beacon_timing_control(struct adapter *padapter) { - rtw_hal_bcn_related_reg_setting(padapter); + SetBeaconRelatedRegisters8188EUsb(padapter); } static struct adapter *pbuddy_padapter; diff --git a/drivers/staging/r8188eu/hal/hal_intf.c b/drivers/staging/r8188eu/hal/hal_intf.c index 17ac271e2417..d38a8134b243 100644 --- a/drivers/staging/r8188eu/hal/hal_intf.c +++ b/drivers/staging/r8188eu/hal/hal_intf.c @@ -180,12 +180,6 @@ void rtw_hal_write_rfreg(struct adapter *adapt, enum rf_radio_path rfpath, bitmask, data); } -void rtw_hal_bcn_related_reg_setting(struct adapter *adapt) -{ - if (adapt->HalFunc.SetBeaconRelatedRegistersHandler) - adapt->HalFunc.SetBeaconRelatedRegistersHandler(adapt); -} - 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/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c index 2c010f12118a..4d60b5156995 100644 --- a/drivers/staging/r8188eu/hal/usb_halinit.c +++ b/drivers/staging/r8188eu/hal/usb_halinit.c @@ -2147,7 +2147,7 @@ static void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_l psta->init_rate = init_rate; } -static void SetBeaconRelatedRegisters8188EUsb(struct adapter *adapt) +void SetBeaconRelatedRegisters8188EUsb(struct adapter *adapt) { u32 value32; struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv; @@ -2231,7 +2231,6 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt) halfunc->SetHalDefVarHandler = &SetHalDefVar8188EUsb; halfunc->UpdateRAMaskHandler = &UpdateHalRAMask8188EUsb; - halfunc->SetBeaconRelatedRegistersHandler = &SetBeaconRelatedRegisters8188EUsb; halfunc->hal_xmit = &rtl8188eu_hal_xmit; halfunc->mgnt_xmit = &rtl8188eu_mgnt_xmit; diff --git a/drivers/staging/r8188eu/include/hal_intf.h b/drivers/staging/r8188eu/include/hal_intf.h index 9b0a44659f57..668a21cbe71e 100644 --- a/drivers/staging/r8188eu/include/hal_intf.h +++ b/drivers/staging/r8188eu/include/hal_intf.h @@ -149,7 +149,6 @@ struct hal_ops { void (*UpdateRAMaskHandler)(struct adapter *padapter, u32 mac_id, u8 rssi_level); - void (*SetBeaconRelatedRegistersHandler)(struct adapter *padapter); s32 (*hal_xmit)(struct adapter *padapter, struct xmit_frame *pxmitframe); @@ -205,6 +204,8 @@ int rtl8188e_Efuse_PgPacketWrite(struct adapter *pAdapter, u8 offset, u8 word_en void hal_notch_filter_8188e(struct adapter *adapter, bool enable); +void SetBeaconRelatedRegisters8188EUsb(struct adapter *adapt); + uint rtw_hal_init(struct adapter *padapter); uint rtw_hal_deinit(struct adapter *padapter); void rtw_hal_stop(struct adapter *padapter); @@ -232,8 +233,6 @@ void rtw_hal_update_ra_mask(struct adapter *padapter, u32 mac_id, u8 level); void rtw_hal_clone_data(struct adapter *dst_adapt, struct adapter *src_adapt); -void rtw_hal_bcn_related_reg_setting(struct adapter *padapter); - u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask); void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data); -- 2.33.0