Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3353574rdh; Thu, 28 Sep 2023 09:11:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0vV36ymg0dPWf2YP+NdUx93TJ+Ln1eKTkrMmEwdFkUEJlRJpEf33XRKgSxbDReCLWB6kn X-Received: by 2002:a25:d28e:0:b0:d7e:b88b:1de8 with SMTP id j136-20020a25d28e000000b00d7eb88b1de8mr1629528ybg.9.1695917505505; Thu, 28 Sep 2023 09:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695917505; cv=none; d=google.com; s=arc-20160816; b=XH+jqbdgGVR76NmWDLUCiRIpEeZzXRwx3QhMdg5SWFpnwNK+nO1dm9syxYPOC45K1a KFnK03BvYSqGvcErOmhtRcXx890ySRWZqmnsPh2xNV8Jz8ie2IduShtJantQ4io5X94k 4VEzc6xso1j+aS+sbwLFsZJ1yxJWEIZFO2BPr13zgUqpQLIGrFQjzwKR+eZp+1EbrBPj ThSHSu3okWn0zOCVzp2ORZCHafQ+No/u9EdZsXl66nBdo6eQIEOu642KE1ogukKgPCpj lYlzqdFD57qk7UA6Qp+/a3ug9TkjHTHTR9aa4lQljeHU5YPIN715iS5YZTonMmbc99jo 1uIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=/4aULD9OOvM9Isx5FX84PqCf553/sjTfkekqxAeNsLo=; fh=zLVo77eW1dcO3ZoPVZkz0WBqBvPCOzSbzBFLHpxu4xg=; b=MyzGQY42QsfGYXaFLm037iHVkQd6NVgAIadVxexB9qPeBkBMzEC1ryEgF/C9u37hIZ GxAoXdYdG/TCIpA0WED1mIRgcZjF2wedU/PYbDcNK5zIyQ7DMBtCjnxw1pFD3qMQYlh2 P7/uKUiZSbJrjI3fOMZpEDKOLSdcytp37HyFaPdT/OWx5dUM59KaZYKUO8fKagCPkYn6 GebDRYicoOQ2U2z+w0+ujbRO/bjuS8pBDoCvXAFyK1Zp7jqYMThLkAbGUPdOVlTtcWe9 yiJK3dBK5qW4Kqi2gSFvDE1p6fk8cWOgCS25rimdF2J3DiBtnNuRLgtGjk83t5Qs7sxw NnmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kIJMKyLG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id v190-20020a6389c7000000b00578e6f108c6si19768098pgd.173.2023.09.28.09.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 09:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kIJMKyLG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2590681489C7; Thu, 28 Sep 2023 08:15:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231593AbjI1PPv (ORCPT + 54 others); Thu, 28 Sep 2023 11:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231535AbjI1PPq (ORCPT ); Thu, 28 Sep 2023 11:15:46 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D248119D for ; Thu, 28 Sep 2023 08:15:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3B1BC433C7; Thu, 28 Sep 2023 15:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695914144; bh=XOhBYn/JHHhfAw/p/+BQBzEcxPWQepN23p/3A8jF5aY=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=kIJMKyLGP8czi/FsD3bViZ8B8OSpGrvB01SnA1BHWrNlzNePGrS2cCyQpCmYULvu8 sh4TPZWekcNvRbfGE/fTXYs4c6Co3JHxGSDqNyX5IFpU7IF299tCtvjzf8IoOt2aG6 +GViy5wYKkDMeaXJ/xjdsyV7nI3956vtN0LNBfLorxAa0JchlWBmT7r/XaPhvsnim1 lW/0Ed4OE1Ow6HoRz8qlGTkdIOEWtzuG5W7aa4+rr5oABlc4MCl/vGyWpUx0JPLITg I/n6p5NS3KGGwEY+l1S86hn7PzIVKd4w+XeysJaWMXip/JmwaAbMyvyitVqEkUV4j6 9ZQwH+1mi8yMQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v3 1/1] wifi: ath11k: mac: fix struct ieee80211_sband_iftype_data handling From: Kalle Valo In-Reply-To: <20230927142708.2897504-2-kvalo@kernel.org> References: <20230927142708.2897504-2-kvalo@kernel.org> To: Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169591414195.3019228.2015665207547569831.kvalo@kernel.org> Date: Thu, 28 Sep 2023 15:15:43 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:15:55 -0700 (PDT) Kalle Valo wrote: > Commit e8c1841278a7 ("wifi: cfg80211: annotate iftype_data pointer with > sparse") added sparse checks for struct ieee80211_sband_iftype_data handling > which immediately found an issue in ath11k: > > drivers/net/wireless/ath/ath11k/mac.c:7952:22: warning: incorrect type in argument 1 (different address spaces) > drivers/net/wireless/ath/ath11k/mac.c:7952:22: expected struct ieee80211_sta_he_cap const *he_cap > drivers/net/wireless/ath/ath11k/mac.c:7952:22: got struct ieee80211_sta_he_cap const [noderef] __iftype_data * > > The problem here is that we are accessing sband->iftype_data directly even > though we should use for_each_sband_iftype_data() or similar. Fortunately > there's ieee80211_get_he_iftype_cap_vif() which is just what we need here so > use it to get HE capabilities. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 > > Reported-by: Johannes Berg > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 9e61589ac3c2 wifi: ath11k: mac: fix struct ieee80211_sband_iftype_data handling -- https://patchwork.kernel.org/project/linux-wireless/patch/20230927142708.2897504-2-kvalo@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches