Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4839179yba; Tue, 30 Apr 2019 05:19:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC8VB0KfpWjndomLI3fKPgXQVnDdB+pdeOl/jaOLnD/DPb8lItLGBRYUup9RG0ZSAIBw5y X-Received: by 2002:a63:fe0a:: with SMTP id p10mr64665063pgh.86.1556626778335; Tue, 30 Apr 2019 05:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556626778; cv=none; d=google.com; s=arc-20160816; b=t93ArkwFIkW8ed78edjR7D3UZclpbA8RK9SF/IPqzn5O5VQJ21eU56QuUwiCJk6dtB 2ZBjkj9SuNFbPNFRoIxuB01D8iqnYPJ2HxCiJlYXgqUHjdhA1oo+OdJh0LbqJOQlR6eR e4foZtryfl5tjT99OE2UBNQNMHSHPbeoFhcRPLa2uegiafbh6bjxYiL1RvJMQm+lLI1q TlOlYlZ+HzWyrp6+S5ouC45mI/Tbfr1O2piwdqc89FCV/zBp0pYNmamP+Lq+QpemBZHI cCvuSyuslK4tKbPLq51HgGNCvczFO3cttC3p/UxJxydZsFs6u0+KCbi0LA+zkv8WuJOv uLOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=nmUAPRJxBmoqrSlAbzwMs9zWU00fM/jdKo9+EG/vZC4=; b=znJ69r4I9m9EUfdU79Vp0ceg+hyMg+lNcwWR2weKS/icMQ2lkmH2WKKwn3rqYSG5oa 4K4J5zS61YGSYV9ATvI9ZsC4Fnrj2m/MocSKVJ/ud8c//KWeJDztY6afVti4s2h7BlHk ddSfwstKSeVD3+3vOemITzBhBpa+PkBcEaeZS3yzQMzxgBGJyopd+FhWE8z+TyeW3rPe dmS94z6MZ1lRFSpob3x7di0882Y29us1Zobs3uB+6YA3LWVkilbJrNOKtXjUwFkYNtXw 2id3TmRGG+NqQT9QT6P//BtsH5TvaUOqxluTvD1rOJBZBsOa/l3VNLszsWyq7doxXUVM k3Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Obmc8mmL; dkim=pass header.i=@codeaurora.org header.s=default header.b=Obmc8mmL; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si36321252pll.344.2019.04.30.05.19.17; Tue, 30 Apr 2019 05:19:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Obmc8mmL; dkim=pass header.i=@codeaurora.org header.s=default header.b=Obmc8mmL; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727422AbfD3MQb (ORCPT + 99 others); Tue, 30 Apr 2019 08:16:31 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33700 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfD3MQb (ORCPT ); Tue, 30 Apr 2019 08:16:31 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CD9196029B; Tue, 30 Apr 2019 12:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556626590; bh=rnSRYT4eh/SMsw0h371bavfrU4OTDmEoj5s5HdfzUD4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Obmc8mmL21e+0gZImhXkRNusm5Wi6R3ObeVGG2bMsZpNMD58zb+RbsOg3mP14Q3BF S3NAmDho4dLvkR7wOJUbhN7GwdCh4vPKO7uuYHPGze2VyuNJvDOs0tIbABz7IK+p3u MwCxInxDMNT3gudYr69IlLFYqaZm/nGNYbq8tIUM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id F342D6029B; Tue, 30 Apr 2019 12:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556626590; bh=rnSRYT4eh/SMsw0h371bavfrU4OTDmEoj5s5HdfzUD4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Obmc8mmL21e+0gZImhXkRNusm5Wi6R3ObeVGG2bMsZpNMD58zb+RbsOg3mP14Q3BF S3NAmDho4dLvkR7wOJUbhN7GwdCh4vPKO7uuYHPGze2VyuNJvDOs0tIbABz7IK+p3u MwCxInxDMNT3gudYr69IlLFYqaZm/nGNYbq8tIUM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F342D6029B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Cc: , , , , , , , Subject: Re: [PATCH v9 01/14] rtw88: main files References: <1555653004-1795-1-git-send-email-yhchuang@realtek.com> <1555653004-1795-2-git-send-email-yhchuang@realtek.com> Date: Tue, 30 Apr 2019 15:16:25 +0300 In-Reply-To: <1555653004-1795-2-git-send-email-yhchuang@realtek.com> (yhchuang@realtek.com's message of "Fri, 19 Apr 2019 13:49:51 +0800") Message-ID: <87ftpzpu1y.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org writes: > From: Yan-Hsuan Chuang > > main files for Realtek 802.11ac wireless network chips > > Reviewed-by: Stanislaw Gruszka > Signed-off-by: Yan-Hsuan Chuang [...] > +static inline u8 *get_hdr_bssid(struct ieee80211_hdr *hdr) > +{ > + __le16 fc = hdr->frame_control; > + u8 *bssid; > + > + if (ieee80211_has_tods(fc)) > + bssid = hdr->addr1; > + else if (ieee80211_has_fromds(fc)) > + bssid = hdr->addr2; > + else > + bssid = hdr->addr3; > + > + return bssid; > +} I wonder should something like this be in include/linux/ieee80211.h? -- Kalle Valo