Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp79550yba; Mon, 20 May 2019 05:20:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqytutDCn5mJFgsjsmDPmEMNK35+tv502iOGJNBoNgF/D7RTLj9OuYEilYB3pJggmAfn4YQ3 X-Received: by 2002:a62:1b0c:: with SMTP id b12mr5904281pfb.230.1558354851062; 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=ChQvg8lOZ0yPeKhJXbWVOS4lhcp23/g56lIhYOOIxnmMX/VZEBBCDZhGeca8jdXHOu /rgrena38mqo9j/jZwd0Xg4KLP5ut8CSmGpumwLOQiBxT39L6hq5mqGq7ABVvnsyrYpU /9Gg6F626ml+4GWRQft4M7EHfK9J8vRuyyj3Eii1oqGVjYPbGf0mo36qpbXcCv4IgYJo ZKuLyThiCEnNVJ5G8/xeENhGGIcxkg/u2kF6iwVy4JUgW5aN+sotmwrdiGciHh10rJtu dcGkt1AA0+X+ax8I32XBqlAu+KmGM7XuE9KfO1U2QLAsipH1DJ/4Q+Jhv0C2wqqpNMZA U9oQ== 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=i8zdpZcp4kY+xrKvXByrtkAA2MYtzmZU8aJgKR8Zi70=; b=e1QTpp/xN2DX+KcNfpmCLismI13v/b0bNsb/xsPIPWSXmomQsYTK5et8kQeC2XyJ0s Onr73te/0mOTCdKLt6tM7jgYzD4jtTnyAtPESRlh3dXrWBqWHHsl5wvj49RA+7ZC23vS LOM2xyQCHLFFzcVaJFxkL/WUXNXuz2GpXKuEeJYdIfzXqheF6vKUFbezJMLNje1ZyNpk xEzd+LIV5yUTk1Rf0awH88jex8/AQze0VVo4p76I7ev08GY85JpF2MGQF4xcSN6o8kSQ 49ZuH8tNPJCkF5Txmy4JbXgTG2B10s8MtLeXF71jrQGc0tzJUfybjCPouEe/G90GHaJQ 4b1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=MhM+jsmt; 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 z19si18425228pgi.180.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=MhM+jsmt; 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 S1732368AbfETMA4 (ORCPT + 99 others); Mon, 20 May 2019 08:00:56 -0400 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:35384 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730727AbfETMAz (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 4C8B730C08F; Mon, 20 May 2019 05:00:53 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 4C8B730C08F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1558353653; bh=qLgeRUgG74OOJPHvet1nvjlzYIxEnqIoFdGG1pCujsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MhM+jsmtnFGgWNxCSEJNqWOGbe3Pt+B8ybDwZDAEoVShIJ09Nz87dcoEIZyhF3ld0 /AdXktH/mS/bSLjy4Rg8hThHCNdD3gW9QJipCKxTZ8As/G6lrmi3HlnneeC0nc6Ic7 aIeK37KFY+dYcvOxmKR0ItY8BKzJeyWJH9Uk9RD8= 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 A6E9D60D71; Mon, 20 May 2019 05:00:53 -0700 (PDT) Received: by bld-bun-01.bun.broadcom.com (Postfix, from userid 25152) id EFBB2B03088; 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 6/8] cfg80211: use same IR permissive rules for 6GHz band Date: Mon, 20 May 2019 14:00:43 +0200 Message-Id: <1558353645-18119-7-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 The function cfg80211_ir_permissive_chan() is applicable for 6GHz band as well so make sure it is handled. Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Leon Zegers Signed-off-by: Arend van Spriel --- net/wireless/chan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/wireless/chan.c b/net/wireless/chan.c index 7dc1bbd..7c9d204 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c @@ -894,7 +894,8 @@ static bool cfg80211_ir_permissive_chan(struct wiphy *wiphy, if (chan == other_chan) return true; - if (chan->band != NL80211_BAND_5GHZ) + if (chan->band != NL80211_BAND_5GHZ && + chan->band != NL80211_BAND_6GHZ) continue; r1 = cfg80211_get_unii(chan->center_freq); -- 1.9.1