From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDCDDECAAA1 for ; Sun, 30 Oct 2022 14:28:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229730AbiJ3O2t convert rfc822-to-8bit (ORCPT ); Sun, 30 Oct 2022 10:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiJ3O2r (ORCPT ); Sun, 30 Oct 2022 10:28:47 -0400 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773EC211 for ; Sun, 30 Oct 2022 07:28:46 -0700 (PDT) Received: from omf15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 07927A04BD; Sun, 30 Oct 2022 14:28:44 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA id 22ADE18; Sun, 30 Oct 2022 14:28:24 +0000 (UTC) Message-ID: Subject: Re: [PATCH 2/2] staging: r8188eu: remove get_da From: Joe Perches To: Martin Kaiser , Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Date: Sun, 30 Oct 2022 07:28:41 -0700 In-Reply-To: <20221029171011.1572091-3-martin@kaiser.cx> References: <20221029171011.1572091-1-martin@kaiser.cx> <20221029171011.1572091-3-martin@kaiser.cx> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Stat-Signature: uxh9eifab6njfoysu3ntwaouysfb6fcw X-Rspamd-Server: rspamout07 X-Rspamd-Queue-Id: 22ADE18 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19tf9x7p6jWCbqsmvZ3+oLcIrpPI3DRclo= X-HE-Tag: 1667140104-145811 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2022-10-29 at 19:10 +0200, Martin Kaiser wrote: > Replace the last get_da call with ieee80211_get_DA and remove the get_da > function. [] > diff --git a/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c b/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c [] > @@ -125,7 +126,7 @@ void update_recvframe_phyinfo_88e(struct recv_frame *precvframe, struct phy_stat > get_bssid(&padapter->mlmepriv), ETH_ALEN)); > > pkt_info.bPacketToSelf = pkt_info.bPacketMatchBSSID && > - (!memcmp(get_da(wlanhdr), > + (!memcmp(ieee80211_get_DA(hdr), > myid(&padapter->eeprompriv), ETH_ALEN)); trivia: As both of the addresses returned are minimum __aligned(2), these memcmp uses could be ether_addr_equal Look for ETH_ALEN $ git grep ETH_ALEN drivers/staging/r8188eu/ Perhaps see if the memcpy/memcmp uses with ETH_ALEN could be converted to ether_addr_copy/ether_addr_equal or any of the other is__ether_addr calls.