Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11722937rwl; Tue, 3 Jan 2023 03:55:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXsPHIXPQllY0jIwmJ7XK5kCMhxJX3r+68uKOf67orcJHFAOahsrFdekcYXzAvnIqFHKprme X-Received: by 2002:a17:907:6f09:b0:7f7:a985:1849 with SMTP id sy9-20020a1709076f0900b007f7a9851849mr38341858ejc.24.1672746926833; Tue, 03 Jan 2023 03:55:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672746926; cv=none; d=google.com; s=arc-20160816; b=t8iJqVFIQ06PpZJ6uYaV/boXPZI8epgsbKZ0JyxmOLjfTSymV+adHw66K1JjSmLUAT 6GRkrTe2ywXIWeiO6NF6wDo28jv0a8LPYSZcgDd+x8fvC6zyDl9coPyLBOtWcvvDOClV eFNBRsZwpkx0XV3w1u46p+yGq6W7DSv8mtM5gt45+gqoOH3oa3DbREs+foVNveWMPRgz WY/nHVSNrMbx+vUNndBtTqpe/bjXpDWV1yVaTsbcrNHrvm0ctM+zHVHxG2oN41NEVdD0 bFfHGQCOEVYqZSrz+1kG094ZwtTI7qN4/7A2WS4214k2L4r9VHXJN6S4CcsYnlsfRdnQ d8hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=Kv503vmOJu99o9LeVBvN/5RuZbOJ1NMvm1NZwsk+2Qc=; b=0rGld2c1UkA/t+I/w5CX4pwEJykhINEPmTTjF9lcXcphLWLx5P8yvBrOE3ill4CFJM 7ELCPogdZ+wwjcmpDCmecTQC79KztS/oMeC9kH39gLzUPubWmrTt2e3VtplWz2MqAjpt XxvZii6EjbLzcGaMKsjLUCp34sOQHjpBDS6NxTSsB2WR5ggAzSHDE5d/qsnR0PcInfB/ aN7Bppw8HEkuToPFWXMMipp6/ppnNs3Xey9lpdM3AFM/Wg+7kfRlLK+OQ/IZuRR21C5z tYO1VEFFwQ/9Qz4o/iwq00T5lGFzt6QVdo22EFE6lW8p5sbZ1W93/O/DcPDBQhjG/DW2 Ml0g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz32-20020a1709077da000b0084514612c23si10319776ejc.648.2023.01.03.03.55.09; Tue, 03 Jan 2023 03:55:26 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237314AbjACLvp (ORCPT + 67 others); Tue, 3 Jan 2023 06:51:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237434AbjACLvX (ORCPT ); Tue, 3 Jan 2023 06:51:23 -0500 X-Greylist: delayed 304 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 03 Jan 2023 03:51:22 PST Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC0EF35 for ; Tue, 3 Jan 2023 03:51:21 -0800 (PST) Received: from [192.168.1.139] ([37.4.248.41]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MVMqF-1pLITi3WnX-00SPAk; Tue, 03 Jan 2023 12:46:13 +0100 Message-ID: Date: Tue, 3 Jan 2023 12:46:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: brcmfmac: Unexpected cfg80211_set_channel: set chanspec ... fail, reason -52 To: Johannes Berg , Arend van Spriel , Arend van Spriel , Franky Lin , Hante Meuleman Cc: linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com References: <2635fd4f-dfa0-1d87-058b-e455cee96750@i2se.com> <1f428e2b-f73f-64ff-02d3-eefbcd11db89@broadcom.com> Content-Language: en-US From: Stefan Wahren In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:HtqqSzkLGXeqeqA4H2KAfYv6flXgOU1w8cpa8fcHTRRVQWVOOMZ M4ecDpmGLgHhh3LAeUgORJywe8dHtWpifmCYCxx2uEV3tvAjQvPVNRjDP+KWHrhow5N2nVU JG2P5l3AkLyF3f6LrtUYd/ElcWHKMdIptqoJHITgdYd7kXgXinXX5amXewKF7qJIUB3g3+Y n/j0ltNCkfNg5pNFj57nQ== UI-OutboundReport: notjunk:1;M01:P0:MiMJMTVRqRQ=;ImBjK9tNOgXUnKYBHMmIj/j0gLp p+2VyTHXMhKrIve/2Kb1CAS1v4XRqm0+e0qZQx3+qzFUoBY+7oBA6ULDcSK1zZaO0DDQJn0ke x+JJKbFeEE9wrnOxGL5AFhkfPiHOE7V50s6nFyM+vAZHBf+cvsnAx5M2x/bIJU2O/98dy6n1I D7WuR+lDgAzrK6GLlVbg9dOWpmESjauvzlB2sgm2kf2vODpP5m+toHboZ03o65dAclaHdihEg ArcLWAG5ZyvFFAHaGwOhIg+iTn+kMXc4TlMauCj0jLKY7kDept6vZmdYBZhkognNj6y4zNipP qV81fftbPM23GRxMrD8nAihxHdQNkSfntdM48QenV0me082wJcgKJJDtSus3L3M56cEO4Qovi Xkiz2ixf8nT/yx2tAzV6aBK8YMT4dscP7jwxEDS4ByqxETNN09Rkk++mPom0orFdh6kWoOvSB 36Ge1EytUPCd6W1xYUBfyzl4vZv3wTGHDBtc3ZvPDvcE1q6B8czK4VEVb7RF2ll7buYZIScRy fqIVobZgLexomNVkcEtHxp/YlhAnzz8LiltF6kcYGGFSLFJxcBwIhyqNjbWK9joraoxVjHYh0 052VH0Pt5dvxsB8UCNjffdT87YtSeqp3/5FuOEsJ7HuuxqHSdxzT/6Dzqt0DNWY6qkkGjxjfd PPzC+k6imBhOTTBrwris1wykLE6/RVKXwm1Fc5T0xg== X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Hi, Am 03.01.23 um 08:07 schrieb Johannes Berg: > Hi, > > >>> [  104.897615] brcmfmac: cfg80211_set_channel: set chanspec 0x100e fail, >>> reason -52 > [...] > >>> All of these 10 errors are repeated every 60 sec. >> Catching up after the holidays ;-) Above chanspec values are invalid. >> 0x100e = channel 14/bw 20MHz. The 'iw list' output shows all these >> channels are disabled. So who/what is trying to set these channels. >> Scanning sets the channel in firmware. Is this initiated from hostapd? > Yeah, what userspace is running here? i'm using Raspberry Pi OS. It's a debian based distribution optimized for Raspberry Pi. I suspect this comes from a lxpanel widget which allows to select a SSID from available wifi networks. ps commands also shows a running wpa_supplicant. > Looks like cfg80211_set_channel() > is only used for survey? > > Couple of observations on the side: > * might be nice to have some "brcm" indication in that name :P > * dump_survey should just dump data, not actually implement the data > collection, I think? > > >> Maybe trying ACS? >> > Seems it must be something like that. > >> As these are marked as disabled user-space should not >> use them. What I don't understand is why these pass the cfg80211 layer >> so adding Johannes here. >> > Well that goes back to my earlier observation above: dump_survey() > should just dump all *available* data, not actually try to *collect* > data. So if userspace requests data for a channel that's disabled, > that's actually OK, but you shouldn't _have_ any data for that channel > since it's disabled. Also nl80211 won't send the data out if it exists, > but there's no check to see if asking the driver makes sense since if > it's a channel that exists, it should be valid to ask the driver if it > has data - it just shouldn't have any. > > The way it works in mac80211 is that survey data is collected during > scan, I think? > > johannes