Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp831300rwo; Wed, 2 Aug 2023 05:04:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlGDH7lMeCQII4kQIGyUGDiUyc4CfRwd3q18M9NJeXd781t+zpXYrcvnsr5TfZ0XXIbQmcTV X-Received: by 2002:aa7:dd0a:0:b0:522:1d30:efce with SMTP id i10-20020aa7dd0a000000b005221d30efcemr4290280edv.22.1690977868932; Wed, 02 Aug 2023 05:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690977868; cv=none; d=google.com; s=arc-20160816; b=Zb+zcd12n/ucXRmu4zoDUAviHXYtyX/qpD0oJfN//G2/0lmyZ5TLFscrmPFA4uu+u4 nabutCx1FWZVfmOqLQDZtBO+Lt+Rc9x4N/hRrXxxSf5had1ix/gOnOpwIKegYv0UZ0rW H/FrB7Yww44Cma/1scyJNrICcfx2H7oDRYImW3RwY/aRDTZW4VrvcIbnGt1iht351gXc To51giqDnKFM1H8FaVaj7F+b47iZjpxLX/M0jTgr9WWUUiO6bSrOYz9UQZPp5wtV78/5 cYowGUe+F9PPpBiUBsZfE8zJci9c/8cs/s827mMl5EO2ZmGw7ZpuIc0MVf0Ygyw2WXdV nCuw== 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:dkim-signature; bh=5VHRrUDF+cbKXIsGo2wAlukk4tQJU5hAX7GdM6ZIqOw=; fh=rGEXwBaxCYau5ZdGJimQSMVIpHf6XOv6XoiZCkc5FJo=; b=apHoK8N0A59oOmcI4GgdNcHQTt4JRSnMERKBLsBbNRrhgu7KIpvwCUoEZ2+Nh+21Ai 0FVKTImPIcLjklY94mIDhzcr1TzkLRnQ7VRYLATRUUednpfCYydlvydY9rXVL3nbbOJw bJbKTsn2LsanRqYCK5OjUo8HxafrgoUzUu4uRyMpOEraRXDkXdyOZrd4Kzp+Iv0gFYA2 jgm+uHur0JrX1Sag9rOCKeFOAIG31vOdqihbKQiIifGfC82Dcs6tpyrI4TdMaP9qwAu3 tlBQ3WI2toVJcd1D5fmbWuWjMqclOSwExPJBPG1FhU/uxNBOnTmQ9XPMLe1FiwRl9ICP D1OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VXp9XxDo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020aa7c152000000b00522d912cd61si3157195edp.175.2023.08.02.05.03.54; Wed, 02 Aug 2023 05:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VXp9XxDo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbjHBLog (ORCPT + 58 others); Wed, 2 Aug 2023 07:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbjHBLof (ORCPT ); Wed, 2 Aug 2023 07:44:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 394BB213D for ; Wed, 2 Aug 2023 04:44:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C259961939 for ; Wed, 2 Aug 2023 11:44:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AA57C433C8; Wed, 2 Aug 2023 11:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690976674; bh=gCzHrGsl2mzOFtgFir6MlbRDFwpswOAJQ2dRzzMSFkQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VXp9XxDowNRdyq0bcXm5SET3I5X50WQl4W3PZExnvUrRb9sVY6s32N8Hc8TC3CB2I q/A+jkwLwfUtvF8UaSBHheaeKXvjd2VRTMW/DOJz6OYOxRlbjyFUDomL5m7fUMwLlz bz4iBpUGEneSGrABXTs3ICUZFp3T/Jt2AY2dJTFlJ1uYx3xI/EVqsXC40ggNzIvwwR 0Cs3tBcjLa5Z7mpeNXhTuJf2yho/Cpt0E4Vn5BNz2ocCoo4UAdyeoro8j+k11NRDM+ 333r9X/BS6ZzdaSiKt4xZcqO27MdGj/od6bhDrGi4TjFBkPF/pz8WUQFJGt8jpCxyd 9U0Rd3pDch+oQ== From: Kalle Valo To: Wen Gong Cc: , Subject: Re: [PATCH v4 4/5] wifi: ath11k: update regulatory rules when interface added References: <20230607094810.26707-1-quic_wgong@quicinc.com> <20230607094810.26707-5-quic_wgong@quicinc.com> Date: Wed, 02 Aug 2023 14:44:31 +0300 In-Reply-To: <20230607094810.26707-5-quic_wgong@quicinc.com> (Wen Gong's message of "Wed, 7 Jun 2023 05:48:09 -0400") Message-ID: <87zg39vfc0.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Wen Gong writes: > When wlan boot up, WMI_REG_CHAN_LIST_CC_EXT_EVENTID is sent from > firmware at an early stage, the interface mode is not decided at > this point, then ath11k select reg rules of AP mode as default. > > After interface is created, it is exactly decided AP/station mode, > then ath11k need to update reg rules to the exact one. > > Tested-on: WCN6855 hw2.0 PCI > WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 > > Signed-off-by: Wen Gong [...] > --- a/drivers/net/wireless/ath/ath11k/hw.c > +++ b/drivers/net/wireless/ath/ath11k/hw.c > @@ -897,6 +897,12 @@ static u32 ath11k_hw_wcn6750_get_tcl_ring_selector(struct sk_buff *skb) > return skb_get_hash(skb); > } > > +bool ath11k_hw_supports_6g_cc_ext(struct ath11k *ar) > +{ > + return (test_bit(WMI_TLV_SERVICE_REG_CC_EXT_EVENT_SUPPORT, > + ar->ab->wmi_ab.svc_map)) && ar->supports_6ghz; > +} This is more like a firmware feature, maybe move to mac.c? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches