Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp884223rwl; Wed, 12 Apr 2023 05:36:42 -0700 (PDT) X-Google-Smtp-Source: AKy350aTLamPFqEIbY98EQNUqfAbzZ27BOpArnw2uRnxDHvY6w3hb3UUTXSmzAwSRmsTUZ4IRvW2 X-Received: by 2002:a17:90b:3a8e:b0:240:d093:7274 with SMTP id om14-20020a17090b3a8e00b00240d0937274mr9094358pjb.14.1681303002401; Wed, 12 Apr 2023 05:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681303002; cv=none; d=google.com; s=arc-20160816; b=SWllRFL1l7QcIUwgyJvkicmJGaAIW7dh2bRtC5MKXIsG/a/lw8AbjCCJvcKeVQuueq D1Q8Ztxy3x0kNZNeFwn76VzyBQHmqcDFud2vETRDk2SNAcAzX08ZJI3gz2EbrkM30sgb w1MOa2RM1GVr5Jot02HE9rdfpI1Ogr5JZFcvGBMY5O4to+PwZp+N3tHbBczBgv+by4mU GCi7EZyHx5EQ/bGLo5yXBFaT1ROSYCvJJa8xLgjTfLfpg99hTvkOEiJYLAAiguTqumAQ n71Gzsf+U/ZDrVYQ0TfhpY8GR8+9PMPqS2ZRsM7uWRiBf2oSXALHtMrnxmQoQJcuqRiK exJA== 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=B3ylxxEYenMZV/OxGPREDLGpIVret1650OKjf0UzJU4=; b=k4nB+D5hbfqRAi9FeE2xqMdsxUKOCJ1O+YaKXpoeYUeNAUe6haAnIMQ2KGgYKH8HQU +aqQ7uDB8/3GXmgYrvZbVkiF+eMaT+ewjqnK3zfZxdMgsjMVUv5gnsyQeCdaHtwWh8di EOczUPVM+/Etkpd9Q/c2afx0+29mCeQLVOg4RwauV17b4ggt47iuj5BMNg/GRTDLAGOD pnbqHE0NbrjRNGfvbn91AgvtgWE2Dxgp3K9ydBEKRYiil7w4725MUAwPrrkg9p/MfY9O p0BruVHEJMXGD4Jkn/fu/PiduhoNKBVkZnQuz9xV56X9TX8dnZ3fp/4vCf+69hsZoCc1 d6fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HpzuFygy; 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 c1-20020a655a81000000b0051308dbae18si16626061pgt.549.2023.04.12.05.36.32; Wed, 12 Apr 2023 05:36:42 -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=HpzuFygy; 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 S231596AbjDLMfm (ORCPT + 61 others); Wed, 12 Apr 2023 08:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbjDLMfi (ORCPT ); Wed, 12 Apr 2023 08:35:38 -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 DF0DE2697 for ; Wed, 12 Apr 2023 05:35:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 77F1D61074 for ; Wed, 12 Apr 2023 12:35:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E05C7C4339B; Wed, 12 Apr 2023 12:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681302923; bh=HiL2c2oRI1zUxgCvwNyxNuNlqz0eZMXJvMXuUdbJuTw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HpzuFygyzZAcNZHqJO5sautUbDDt78mf48zJ/oW/G6l4Ai8RT1h/3+86BZX4Eoe0Z LHR3x23NgeLgatly53PnhlxjCY7lX0TMaBDGYN9liGwkX4ojA93ThmiK5VyKvXkBs8 9jVERiAtGzXcZ51dpCk7LZXRAHb2vc32vWgWby7rObN3/qeUBDmvPnCZkHu7g/FVUm TNZTLXxCyMJAqd8IzVjhNgPLfZxyH/91eCcBl5rjqeQzHj216lOwapZz2AYfEDZtuL sXO0RKftpLAhp+pqM1OWqWISwh3U0iK5C8Gbo8CB9whFhRle7dkr1dln1ZHXyKfSbL GjrUhT6+eJImw== From: Kalle Valo To: Ping-Ke Shih Cc: , , Subject: Re: [PATCH 2/7] wifi: rtw88: add port switch for AP mode References: <20230401124410.33221-1-pkshih@realtek.com> <20230401124410.33221-3-pkshih@realtek.com> Date: Wed, 12 Apr 2023 15:35:18 +0300 In-Reply-To: <20230401124410.33221-3-pkshih@realtek.com> (Ping-Ke Shih's message of "Sat, 1 Apr 2023 20:44:05 +0800") Message-ID: <87bkjt8eih.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Ping-Ke Shih writes: > From: Po-Hao Huang > > Switch port settings if AP mode does not start on port 0 because of > hardware limitation. For some ICs, beacons on ports other than zero > could misbehave and do not issue properly, to fix this we change AP > VIFs to port zero when multiple interfaces is active. > > Signed-off-by: Po-Hao Huang > Signed-off-by: Ping-Ke Shih [...] > +static void rtw_port_switch_iter(void *data, u8 *mac, struct ieee80211_vif *vif) > +{ > + struct rtw_iter_port_switch_data *iter_data = data; > + struct rtw_dev *rtwdev = iter_data->rtwdev; > + struct rtw_vif *rtwvif_target = (struct rtw_vif *)vif->drv_priv; > + struct rtw_vif *rtwvif_ap = iter_data->rtwvif_ap; > + const struct rtw_hw_reg *reg1, *reg2; > + > + if (rtwvif_target->port != RTW_PORT_0) > + return; > + > + rtw_info(rtwdev, "AP port switch from %d -> %d\n", rtwvif_ap->port, > + rtwvif_target->port); This looks more like a debug message. In normal operations (after the initialisation) the drivers should be quiet and only print messages when something unexpected happens. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches