Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1178565pxb; Sun, 10 Oct 2021 23:29:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkcDpHkWKlj8aemzbViVn87aeuFItxEgnpJ1LcTDbYV1BGJlIHG5WoocM86CV0a+ip8uHt X-Received: by 2002:a17:90b:388c:: with SMTP id mu12mr28348812pjb.146.1633933787918; Sun, 10 Oct 2021 23:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633933787; cv=none; d=google.com; s=arc-20160816; b=YnmrVTJyqV9aiX87kBzPu80ofWkOAqSfO8zbxOP48z1lEyFZV5Utf5kzrubFF7TBgK DBLwWBSyApemaraiwbBjM0KfqNx5cKVOeD7uzP/c46yTN44dHXWFmrczJ4iqa4+k6bSC TesMXnRR0x2pl+ZhNZGzgr7z2QnULbIgHo0bNQwvXBKsiIzi1VW+sZdHg+Wd8UStPsZ6 vM776e0NavYZmdGKzd7hdKsyoXU+NN7zbbL14YjnHtuiacYyMiMD5GHvRCjPgcsMAVjk b95ft/3wXOFSYts06VKfXN5w0Pjp9nZDnw7DPXpVomRpTZ0yL02k1xIhifqrbLf5FY8N WjZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=PuKFXpZ5yIKUfFnyn3NCW0SRGP3tPAEcee0I2yEU7Us=; b=zxNSle4i2iy+Q23u56aXe1rMAQcpSq4HK5Y284qHvYnWakNCLrgNSUg/j1Cd7m7BZU 3288kXzr/Jx/wID0LwLC7pc5YcxQDsfpmzu71fgg72T4y7+BJdU10tKQJ04+xNhE5v+V DjOPgVTd29BAbDaBG97LOqvpvIi/WEwMjPLjo8za9ebYfPJtxJJ52poo9II9FmKnR1LM 5eYOVo2vZOw7j30HNvCz+WJdRbc7+8h4fs3aOpf6L2/FSeTplOpeeGnXU34blGS0bw0t urmc52sdttTW67ptSCqXhQyr1Jwjv5lgsM8ymWprSDJKpAq864q7E1L2DOh9jVP/FNN2 Yxdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="xEi/BQJZ"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si8963062pgm.547.2021.10.10.23.29.37; Sun, 10 Oct 2021 23:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="xEi/BQJZ"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234093AbhJKGaA (ORCPT + 76 others); Mon, 11 Oct 2021 02:30:00 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:36206 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234080AbhJKG37 (ORCPT ); Mon, 11 Oct 2021 02:29:59 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633933680; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=PuKFXpZ5yIKUfFnyn3NCW0SRGP3tPAEcee0I2yEU7Us=; b=xEi/BQJZQtRmvl7l0hYoUjixEkqHe/v/grtUWU3nvrZXsk0FTVE2fWnD6qK0OmS71xnJHI7y sJjA2iunqgxUkGrGxXkUv4ICEz4EjbE84fYovpG8kO5b50nLMHXAjEtIsNa/VrT7ULiYy4ud dagiNTAm0LfJI4UrN4HGP9tg2Cs= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 6163d96fab9da96e64399794 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 11 Oct 2021 06:27:59 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 15E76C43460; Mon, 11 Oct 2021 06:27:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id D1F1AC4338F; Mon, 11 Oct 2021 06:27:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org D1F1AC4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: Christian Lamparter Cc: linux-wireless@vger.kernel.org, ath9k-devel@qca.qualcomm.com Subject: Re: [PATCH v1] ath9k: support DT ieee80211-freq-limit property to limit channels References: <20211009212847.1781986-1-chunkeey@gmail.com> Date: Mon, 11 Oct 2021 09:27:55 +0300 In-Reply-To: <20211009212847.1781986-1-chunkeey@gmail.com> (Christian Lamparter's message of "Sat, 9 Oct 2021 23:28:47 +0200") Message-ID: <87zgrg3wk4.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Christian Lamparter writes: > The common DT property can be used to limit the available channels > but ath9k has to manually call wiphy_read_of_freq_limits(). > > Signed-off-by: Christian Lamparter > > --- > > I would have put this into ath9k_of_init(). But it didn't work there. > The reason is that in ath9k_of_init() the channels and bands are not yet > registered in the wiphy struct. So there isn't any channel to flag as > disabled. I think this is good info to have in the commit log, so in the pending branch I did that. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches