Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp764525rwj; Sat, 29 Oct 2022 10:25:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yPsT3oRnlxlqXtwWHY5vNcchH3Tod1LJbySH0bjyaDOpIPOQ8yiCLMQzd3tQy0sIyD140 X-Received: by 2002:a65:6e81:0:b0:460:7b7a:af13 with SMTP id bm1-20020a656e81000000b004607b7aaf13mr4706621pgb.364.1667064312883; Sat, 29 Oct 2022 10:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667064312; cv=none; d=google.com; s=arc-20160816; b=dbGxGQG/XFiD6GrkblVc3mdzqN9ljwKyVMi0q2Pau+IRWchBFSKFfL1z8VP18Kam5I WaqXbFzED5+JXreC/zJlbZsMDDgRsMuqgla/nKEYAJcC0Yu2lMrGfN7Ar34Sh7pi1bur muRrwq0zus3E8QBQb54sEKHsoIcfe6mlvg9iorvuoVUfXuULo0PcGZoXGwiq1lT5aJ0O z8QefMWPmbN1N0wTl4Cd9pTgkIpZUBuo8hD/OdvqI4gTaAuSOZ/KdkiH5QwD7HifYKwJ /6uP3wxLJf3WORaGecW21XEkkpuP14DznuDFWYkTIKO234reJTSCE/qG9vn6cWv1teVp Rm+A== 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=0fadT0cdu/iex2zpq/vX/siIKyL3tyteuFdKS5ODSqc=; b=y6qPI24N0Dd4dgqOPoE1eDOYyQbMjelSUtqS1Nz6J1ugyJ64L04Nv8YWKHsIWV+egS s5WYciZ/MKAvorFjf0b50Wp8vGnq6PM4sfTw24qtMmeWJWLM4WULrhNvyiVMcl/hbWTg Yx8ZqLETIfFG7sJAzkyKwIJegC/mQE/svGx3ocdU1xvAfjdOU7Is82AY0S9Dw+xFiJpr yyFLZf/Tt5nisuT4c6WIq517MU27VnVlIR3Yx8gQyWF+mtqsFihhH1Sri5MoC6kUmU+l pZzkDd+Jn5sNwrpC87v0Irc3Loa2KBDmavZk7AilXYDo9JABodSG1QbWwXgbi5Aa6xSN 63jg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd10-20020a17090b4cca00b001fe280041e8si2474899pjb.37.2022.10.29.10.25.00; Sat, 29 Oct 2022 10:25:12 -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 S229588AbiJ2RKo (ORCPT + 99 others); Sat, 29 Oct 2022 13:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJ2RKk (ORCPT ); Sat, 29 Oct 2022 13:10:40 -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 AE69526563 for ; Sat, 29 Oct 2022 10:10:38 -0700 (PDT) Received: from dslb-188-097-213-253.188.097.pools.vodafone-ip.de ([188.97.213.253] 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 1oopLt-0006xg-TQ; Sat, 29 Oct 2022 19:10:33 +0200 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 1/2] staging: r8188eu: replace get_da with ieee80211_get_DA Date: Sat, 29 Oct 2022 19:10:10 +0200 Message-Id: <20221029171011.1572091-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221029171011.1572091-1-martin@kaiser.cx> References: <20221029171011.1572091-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Replace a call to the driver-specific get_da function with ieee80211_get_DA from ieee80211.h. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index ffb708f242e6..127dbc4e8b9a 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -798,11 +798,12 @@ static void OnAuthClient(struct adapter *padapter, struct recv_frame *precv_fram unsigned char *p; struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info; + struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)precv_frame->rx_data; u8 *pframe = precv_frame->rx_data; uint pkt_len = precv_frame->len; /* check A1 matches or not */ - if (memcmp(myid(&padapter->eeprompriv), get_da(pframe), ETH_ALEN)) + if (memcmp(myid(&padapter->eeprompriv), ieee80211_get_DA(hdr), ETH_ALEN)) return; if (!(pmlmeinfo->state & WIFI_FW_AUTH_STATE)) -- 2.30.2