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 BC5C5C38145 for ; Tue, 6 Sep 2022 09:45:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232318AbiIFJpe (ORCPT ); Tue, 6 Sep 2022 05:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiIFJpe (ORCPT ); Tue, 6 Sep 2022 05:45:34 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE1970E5D for ; Tue, 6 Sep 2022 02:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=jg/ofF9XJhqwR26TdOCE7VGtjcrhOtTmyZohe4yqJWg=; t=1662457532; x=1663667132; b=K383aSkAJyPnG0qvY8BQHXfRqDwlHwuTnkzF6HR039IA1uf fuIgHAPbjPNOV8lti9clFTC0S/vWfmWwl7qrP8V3BSV7RliVxObPSGY3MDvz4uiTAzWS6YnWgOnGq 5ScLrEaN3nxSw18dgAigdLi83xe6HTO52rwKBNZxQdoNWHR7d6OuTo463ufCsd/azATjjI5O8BBXb jc0zTziV5glWvSshgxLYKHF6/LAF77MJllu0n/omAxK7Pr48Qo+WhUBIuwT02sSq/B3AuLH7+he66 SFuNtMhqXjU088GYEY6ZbLMUpP1wcLaPNVoP4jA0G9xIodNYe+SVd7NvA7YoiUQw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1oVV98-009Moh-05; Tue, 06 Sep 2022 11:45:30 +0200 Message-ID: Subject: Re: [PATCH v3 06/12] mac80211: support ieee80211_ext format From: Johannes Berg To: Kieran Frewen Cc: linux-wireless@vger.kernel.org, quic_jjohnson@quicinc.com Date: Tue, 06 Sep 2022 11:45:29 +0200 In-Reply-To: <20220906044812.7609-7-kieran.frewen@morsemicro.com> References: <20220906044812.7609-1-kieran.frewen@morsemicro.com> <20220906044812.7609-7-kieran.frewen@morsemicro.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2022-09-06 at 16:48 +1200, Kieran Frewen wrote: >=20 > + if (ieee80211_is_s1g_beacon(fc)) maybe use "if (ext_hdr)" here so it's easier to understand? Even for static checkers :) > + rx.sta =3D sta_info_get_bss(prev, ext_hdr->u.s1g_beacon.sa); > + else > + rx.sta =3D sta_info_get_bss(prev, hdr->addr2); > rx.sdata =3D prev; > ieee80211_rx_for_interface(&rx, skb, false); > =20 > @@ -4999,6 +5007,10 @@ static void __ieee80211_rx_handle_packet(struct ie= ee80211_hw *hw, > } > =20 > if (prev) { > + if (ieee80211_is_s1g_beacon(fc)) > + rx.sta =3D sta_info_get_bss(prev, ext_hdr->u.s1g_beacon.sa); > + else > + rx.sta =3D sta_info_get_bss(prev, hdr->addr2); >=20 here too, I guess johannes