Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp348635rdb; Tue, 5 Dec 2023 07:10:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEE9jL17yGstTJltDXfjvT1fds+5kBQvvLoGz7C1chF6dpsSx6+Frkmu3VNj2TKX1oprDmH X-Received: by 2002:a17:902:ea0c:b0:1d0:c442:d784 with SMTP id s12-20020a170902ea0c00b001d0c442d784mr1079128plg.39.1701789007949; Tue, 05 Dec 2023 07:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701789007; cv=none; d=google.com; s=arc-20160816; b=ao4d1mJWtRfVpt3rRldwpVyQeeQbxF0Dkl+7OaeYG3CqpigUHndVfFdleqQCfo3aPh IzjS1q2ysSOJbHM6LxblGeLjmDpnZZS+YwalPxrvgDpw4PGu9AKRd9wDXjVDgTB+wPk+ s8c1UvqN9J4dKpvGL80dZjbM/DL3fiTdZcPXB0WcS1BbW4UdS55q8FH5HvS6jnjUpqoX pmrVpiEUWHBBr/CNmpMToUQXzaUcCeytQp0kPM2tZASc6szmV/qMDczAFKxtmJszgAa4 wQ/F2pP9DlV783WtZzf9NAzY043Rzk14wDxXCvrZKI8ks83KRQkTcEtKpc3Cxg9AM3fV 158A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=pTuX19aeLOz99DEmFUcIkOqVFefXlP4bcoq0pwzcRyE=; fh=+B39J27GC0ldRvcC9cXT9HuwLoG252QR41Wdf+xN3Fg=; b=bNV/fjcyStHNjxkxjO1VSksW3Uv76DCAbXfdaAWsADeENu/7AMBD+9Yse1Q+SFQHHj hYs4X/fqAcH7BtTRB6wMVO7SpN53dKb4LnScYrisfrshNg5vq81uEBHJirKaWN0NIKar G+A6KxxGCQ6trsAw6TQej7MibTwF2hshAcV6gd9D2zcwJRyw1bJPoIXGngNVGommoseA yGW0Lq7QzUV32e04sMEayySSFY2xymLuuIjKXSE/ZUfAqzhcVVhH6j7qW21jS9WlpATa RS5aKGKjSkvF6OH0dT4mqIdbCvCJDy/hE9IRIIkJd03fkq2/Z1SDjyJeJqZ2tqih+SrP Mbnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p2bHu2G/"; spf=pass (google.com: domain of linux-wireless+bounces-426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k63-20020a632442000000b005bdfe7528c9si6056852pgk.726.2023.12.05.07.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 07:10:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p2bHu2G/"; spf=pass (google.com: domain of linux-wireless+bounces-426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 44C21B20EA1 for ; Tue, 5 Dec 2023 15:10:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44E4167E88; Tue, 5 Dec 2023 15:10:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p2bHu2G/" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26C2555C1F for ; Tue, 5 Dec 2023 15:10:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAD14C433C7; Tue, 5 Dec 2023 15:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701789000; bh=YpmLEyUZCZpUEOzslM23kiDsHRP5zwc+nXw2molgSLw=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=p2bHu2G/hNeE3aWt/FUmXv2emFu3yXIztnALlPyTeBsZieTbj9HEH5iyLg9kKm6Z/ auZcN3cNcKiRe06W/n5DjLwLzla8cStz+ZJNSyDS10ApGiDtZD1oOU97h6YAZfpyX4 tYHLjge0rde5ZcJQHm+1KBW0tb+KjmlkxRbAsUvR0Pl6EWgdqhyaznXXZ6E2v+1AEw Xi1ZFFj4nUJYneLbi2KeUM4RPz3cYkwif5D3LNZeDn4ENykYxp3PBzHbj3GDLKOR51 1TmVWBeu0zRmDvK92HhBYwteSNRlgJTu5mJFgoVN2k+J3lWKGPnr4JpbGh8y1/EpSS bcQtYCVDBdJ3Q== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: ath12k: fix and enable AP mode for WCN7850 From: Kalle Valo In-Reply-To: <20231121022459.17209-1-quic_kangyang@quicinc.com> References: <20231121022459.17209-1-quic_kangyang@quicinc.com> To: Kang Yang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170178899778.2418939.15506998345561558345.kvalo@kernel.org> Date: Tue, 5 Dec 2023 15:09:59 +0000 (UTC) Kang Yang wrote: > For AP mode, the peer is created earlier in ath12k_mac_op_add_interface() but > ath12k_mac_op_assign_vif_chanctx() will try to create peer again. Then an > error will return which makes AP mode startup fail. > > Kernel log: > > [ 5017.665006] ath12k_pci 0000:04:00.0: failed to create peer after vdev start delay: -22 > > wpa_supplicant log: > > Failed to set beacon parameters > Interface initialization failed > wls1: interface state UNINITIALIZED->DISABLED > wls1: AP-DISABLED > wls1: Unable to setup interface. > Failed to initialize AP interface > wls1: interface state DISABLED->DISABLED > wls1: AP-DISABLED > > So fix this check and enable AP mode for WCN7850, as now AP mode works normally. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Kang Yang > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. ed7e818a7b50 wifi: ath12k: fix and enable AP mode for WCN7850 -- https://patchwork.kernel.org/project/linux-wireless/patch/20231121022459.17209-1-quic_kangyang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches