Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1009848rwd; Thu, 15 Jun 2023 05:19:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7quM9AH0UwWOXJ1LgR93RdGy7oFQt2F+ADgmC84entg6IrNuwqoBeuwBpsVcEeBN0owYwN X-Received: by 2002:a05:6a00:3a06:b0:666:7ec0:22d7 with SMTP id fj6-20020a056a003a0600b006667ec022d7mr4069529pfb.24.1686831585227; Thu, 15 Jun 2023 05:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686831585; cv=none; d=google.com; s=arc-20160816; b=yv1gP71nFq6uWSbdsjKAA/GqUbGT23n8OGYr8nxxNODcBJLRUPZeaLeWXPR5g8T76b TeWEyQaGwkahKQ4UF160MgkdnY82lsrg6zc+YyEdzQa1siqTrFdu5gvfzqqJNQI1TyRE nyE9qpQZCjE97fzhrV8INSLXHAQxoZzrknqN406fXFDJvzx4HfYwH7MF8iQ1QUazZFjj hI27U5fQ/EsgDqZ1vv1d6CaH1XLvAqG0WgaYxLIY29my7Kd7BLnq4RtBMoENsWDTRysY Nirtm7xnjCDf5m+C2vb7SGmGjeqTBO20z8Ulmmqy1+u5z6jhT/xtPj/TF2OQQ2w6iYnM g75Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gOMOo+YKtzap+eF5ADlyURsEM7amLJouLLPWFsBden0=; b=YQSAIX7nLuW6V1j5ZBC11gOCkNoNum9lQFItXOtZ7RMKkhxWXXgNLtUghOAxyxuNS2 rrLuj0PdBb/yZAx10txp1OCLU/0xHbxixP+HCxdjL5hXUUP2Y5W71tY0rYsHL4U2U9eN h4fv7wMCVQALYv5lebzMH3uibqiL2Z3Tg1s1lximqdxqJQKjJmZP70uxJ3E7klRiFqAK TxG8NKHO5Ub6Q1JAP0lhiuTQKzGX9UdHg+YyjYwCzIyVXds5oG/jFalUY5iFufkW4Jsu FoDW0uqLY+sQvRaBDSE/9gMnJdH4uEJH1+XVjUZZEb4POkNl57JOhUOGLKPwZOHys55q Titw== 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 k2-20020aa79722000000b0065ffc5b282asi12674755pfg.5.2023.06.15.05.19.37; Thu, 15 Jun 2023 05:19:45 -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; 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 S245178AbjFOMEl (ORCPT + 61 others); Thu, 15 Jun 2023 08:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244856AbjFOME3 (ORCPT ); Thu, 15 Jun 2023 08:04:29 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 789D7194 for ; Thu, 15 Jun 2023 05:01:44 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 35FBhv9oB013475, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 35FBhv9oB013475 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Thu, 15 Jun 2023 19:43:57 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 15 Jun 2023 19:44:16 +0800 Received: from [127.0.1.1] (172.16.16.227) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 15 Jun 2023 19:44:15 +0800 From: Ping-Ke Shih To: , CC: , Subject: [PATCH] wifi: rtw88: Fix action frame transmission fail before association Date: Thu, 15 Jun 2023 19:43:48 +0800 Message-ID: <20230615114348.7193-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.16.227] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 From: Po-Hao Huang For combo chips, antennas were controlled by bluetooth only during power on. If WiFi wish to do transmission, notification to the coexistence module are required. Previously we only do this before authentication. To allow transmission before auth, such as management TX, now we start the initiation of coexistence earlier so antennas are shared between WiFi and bluetooth after set_channel(), and frames could then be sent. Signed-off-by: Po-Hao Huang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw88/ps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/ps.c b/drivers/net/wireless/realtek/rtw88/ps.c index 53933fb38a330..43e80a3a8136d 100644 --- a/drivers/net/wireless/realtek/rtw88/ps.c +++ b/drivers/net/wireless/realtek/rtw88/ps.c @@ -18,6 +18,7 @@ static int rtw_ips_pwr_up(struct rtw_dev *rtwdev) if (ret) rtw_err(rtwdev, "leave idle state failed\n"); + rtw_coex_ips_notify(rtwdev, COEX_IPS_LEAVE); rtw_set_channel(rtwdev); return ret; @@ -63,8 +64,6 @@ int rtw_leave_ips(struct rtw_dev *rtwdev) rtw_iterate_vifs(rtwdev, rtw_restore_port_cfg_iter, rtwdev); - rtw_coex_ips_notify(rtwdev, COEX_IPS_LEAVE); - return 0; } -- 2.25.1