From patchwork Mon Oct 31 20:54:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13442 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2547584wru; Mon, 31 Oct 2022 14:08:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM751Dq6dbcUCbsKxixZ9PH6pmS7zqg8ILydZj/1dUJAwl67uAuZrpBe8ltIeTrb0ZrSWg8E X-Received: by 2002:a17:906:1ec5:b0:78d:b3d1:183b with SMTP id m5-20020a1709061ec500b0078db3d1183bmr15096270ejj.709.1667250483960; Mon, 31 Oct 2022 14:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667250483; cv=none; d=google.com; s=arc-20160816; b=0JU5BdNgatBLTJtcqfUAv/k7zgZoxwID24h+wSCxLR+ItWOG5JPGsd+QwK01VXKE5+ 6bqz2ltAzA9yOsuQezhOB3YNBs//L5YFX7ianoJvRiTL2XmX9t8seLqOhRC9QtBcgujb AypIzRZIzen/3blHBHkf2ePJcN+17v2HxxbPF2PZ5OOQVMOOgrgV2Jha/qub2gtcdFVb GMzjd7Twpo3LYpIXFfm4euYeMkYTehHxPer7EEm7Ls0PzI2H6NoW99ZUBfpnv7TouIFk L0QVtARiFNtrJf0CYVaNMCk85n8IU9zCI/KpaqBwjLiMqXcv5bleX9/UMYJBXgb9AUVg kmrA== 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; bh=c0LSCrQPgXIBrJgK5hfU4xeEIysf4FBSfhIFpAhh68c=; b=L4GmCNTcHpw8df8d1EmHK0aREySJDilBMSux1N1ZbdfQGAUOTAoXxEIAI8rcp/OxwI wBQFZHQpyRxnasuse+BpkwxpEc7sWm9z2Jw9UNTPDMQN/WSYEpvhJutdnI8pnBbK9X6Y /VDj8jPBdRKwATX1j1Ghr/tz1z9VeJYyErAytI5MrOQAANyY7XuIpI4JAUwzf34HzDYD jDYnG6txvwVNHELnTr5lU4lKRAlrj/s4WkXbpkDUR0IlLMvmr6VxKqOv/fn8Q5fHDpKB gwJ5PaB/dnVb3YG0B1cqZaV8cbS5vNQIF+OQEMFj4cjhh40SirkatVJD6s1rO8xZ4VPt 98WA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a17090658ca00b007a7d37e4684si9547313ejs.803.2022.10.31.14.07.39; Mon, 31 Oct 2022 14:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbiJaUzR (ORCPT + 99 others); Mon, 31 Oct 2022 16:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbiJaUzA (ORCPT ); Mon, 31 Oct 2022 16:55:00 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B872C12762 for ; Mon, 31 Oct 2022 13:54:59 -0700 (PDT) Received: from dslb-084-059-234-234.084.059.pools.vodafone-ip.de ([84.59.234.234] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1opbo8-0006z9-8f; Mon, 31 Oct 2022 21:54:56 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 3/3] staging: r8188eu: use ieee80211_get_SA Date: Mon, 31 Oct 2022 21:54:12 +0100 Message-Id: <20221031205412.124871-4-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221031205412.124871-1-martin@kaiser.cx> References: <20221031205412.124871-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748238843449645209?= X-GMAIL-MSGID: =?utf-8?q?1748238843449645209?= Use ieee80211_get_SA in update_recvframe_phyinfo_88e instead of the driver-specific get_sa function. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c b/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c index 4e9d8c8285c4..9a61eef8550b 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c @@ -135,7 +135,7 @@ void update_recvframe_phyinfo_88e(struct recv_frame *precvframe, struct phy_stat sa = padapter->mlmepriv.cur_network.network.MacAddress; /* to do Ad-hoc */ } else { - sa = get_sa(wlanhdr); + sa = ieee80211_get_SA(hdr); } pstapriv = &padapter->stapriv;