Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp79551yba; Mon, 20 May 2019 05:20:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMzk9gx9f0GLXhwV3bvLX3k+9dFrIuQ5hQxQ+5IOZsGL8hJCQMm5EvdnZ9lbTXL2nm31SM X-Received: by 2002:a65:57ce:: with SMTP id q14mr61814785pgr.109.1558354851087; Mon, 20 May 2019 05:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558354851; cv=none; d=google.com; s=arc-20160816; b=N9AmkzNTdMkmq73lVlGtrA1EI5Mvd3b7eAOavsmpzAeMmyxLAUgkzLmn+QpU7L2O7s sV5n/BMrMfBSzERSB4XrQaWxIaLUAdKGxedz4zVwvDR+gZ5RE3joINKmkdIsqY3Iyb8C UPe0sjMMyRqMkKkZLWPaR5ZwEFMuH36ASbgUYHt4Aq7vSHHzfhA8T2U/n+mXdVIRNyV8 2Yq8YvJ1ndUrNtA2iQPgMQBREKrif7t8nDjUSk6gPyKa2sAmMlnIRV/MPKyRF7aZ4a8P xjrhT5YDXCZiKb8sEF0KaqWJj9B2i/dCJpQajrN9DFXKE76jvGxgBsv3ZlFhalTtDZN5 xVPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=ZJ/S1XhuZj52kfnKL/+t0I8IcpzHpi+d95xFGFyyZhI=; b=QRqm/uxdroLfSvKs4VR5vBMUF7b4j5GgU9X+7/bLwkOyXhcvIFiCWCWu84DEEktgBE sKmZO4HYKouVnY/BhmjUdgUoWyUzskIrwzmDP4tJ1j30iaCtvckYZYj9vF6FIf5hriVP VbJ+uOMjDfzcn7+TmfVuaekL8WOzk+7opQwrgcql1ioT+M0dVdB7HVI6EW7k0Mj5OVHx BDCb7NroUW15Ceq7UloloIEf9x9b+86bG+h3AXvePehV218cGhoLrd8by7FLyO33qOZ/ VCfiienpFl1iMoTkjRlRNRLnPqO6ZBQTKXiluz9GV/juB1HGKQig/H/am2DIuJF3Cxez zuhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=DP7FgX6h; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v27si17119809pgk.257.2019.05.20.05.20.36; Mon, 20 May 2019 05:20:51 -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=@broadcom.com header.s=dkimrelay header.b=DP7FgX6h; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732450AbfETMA6 (ORCPT + 99 others); Mon, 20 May 2019 08:00:58 -0400 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:35394 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732284AbfETMAz (ORCPT ); Mon, 20 May 2019 08:00:55 -0400 Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.224.233]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 9719030C09C; Mon, 20 May 2019 05:00:53 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 9719030C09C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1558353653; bh=mkJu/zZfZN0zQxn0odqdvcOs5IezpaVsorLvkTkOAr0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DP7FgX6hIAKTI6CltdvSG0EuYNK9sy6dD9vKNMjcDWH7fxU0fVGL5twzp/b73W7HT pV5yMSpGfRnIXN93DPCJVOPkKwAs6ezagmsxvYHg/R3QgbMmX56H4yAzvj0uOERYiP DH9asygQNB83kaGoIBmkuLj1HE3TZU/flTN9PeZk= Received: from bld-bun-01.bun.broadcom.com (bld-bun-01.bun.broadcom.com [10.176.128.83]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id 560AF60D6F; Mon, 20 May 2019 05:00:54 -0700 (PDT) Received: by bld-bun-01.bun.broadcom.com (Postfix, from userid 25152) id F233BB030A9; Mon, 20 May 2019 14:00:50 +0200 (CEST) From: Arend van Spriel To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Arend van Spriel Subject: [RFC 5/8] cfg80211: add 6GHz in code handling array with NUM_NL80211_BANDS entries Date: Mon, 20 May 2019 14:00:42 +0200 Message-Id: <1558353645-18119-6-git-send-email-arend.vanspriel@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1558353645-18119-1-git-send-email-arend.vanspriel@broadcom.com> References: <1558353645-18119-1-git-send-email-arend.vanspriel@broadcom.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org In nl80211.c there is a policy for all bands in NUM_NL80211_BANDS and in trace.h there is a callback trace for multicast rates which is per band in NUM_NL80211_BANDS. Both need to be extended for the new NL80211_BAND_6GHZ. Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Leon Zegers Signed-off-by: Arend van Spriel --- net/wireless/nl80211.c | 1 + net/wireless/trace.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index fffe4b3..c0224fc 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -627,6 +627,7 @@ static int validate_ie_attr(const struct nlattr *attr, nl80211_match_band_rssi_policy[NUM_NL80211_BANDS] = { [NL80211_BAND_2GHZ] = { .type = NLA_S32 }, [NL80211_BAND_5GHZ] = { .type = NLA_S32 }, + [NL80211_BAND_6GHZ] = { .type = NLA_S32 }, [NL80211_BAND_60GHZ] = { .type = NLA_S32 }, }; diff --git a/net/wireless/trace.h b/net/wireless/trace.h index 2abfff9..a7f39a8 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h @@ -2446,10 +2446,11 @@ sizeof(int) * NUM_NL80211_BANDS); ), TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " - "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 60GHz=0x%x]", + "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 6GHz=0x%x, 60GHz=0x%x]", WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mcast_rate[NL80211_BAND_2GHZ], __entry->mcast_rate[NL80211_BAND_5GHZ], + __entry->mcast_rate[NL80211_BAND_6GHZ], __entry->mcast_rate[NL80211_BAND_60GHZ]) ); -- 1.9.1