Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2419148rwd; Mon, 15 May 2023 11:22:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47ZCZasojE0mQIrBFkqSwKcjBeKXueDp23KGGDB+bV2yz6SX2IApaZbO2pSC4g2sM8q4L0 X-Received: by 2002:a17:90a:a0c:b0:24d:e956:f4df with SMTP id o12-20020a17090a0a0c00b0024de956f4dfmr34841185pjo.11.1684174975932; Mon, 15 May 2023 11:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684174975; cv=none; d=google.com; s=arc-20160816; b=HuwmcbADkQuOlpt/sd174PcGSh0iczEeZ85Kr9Mgzmd55jivdpRejnedNtlJWWeh+2 k+AH4LCg0NMKIlgsMHQQne/Ak40c3W5hoEy0W45AlTydcHNnx2QlNTkB1SP3WGg7P16h afHLVoEO7/RkAR0znlLEI3xTl/I2/SKVs1ele36O7CQ8A7I5JBwjjqR8K3P1a/bLQUjx 6gKVSUJn1VPnh9X2YYYyNtUSdLHy1KGfqsqtBKcjfAG2DQrIY0jTTPwjBmvuC5DaZAFr oWX5aWfXhFV5DeoFV1WF+gdNiTML1RFTRi4c5qBM0X+0fIqP9oTyAbtXs8h82KKNM/Sk pCQw== 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=e/mO3jEkfXDj/egkVl1yeRu1ORiXL2K6oC9GFIriqTQ=; b=gf8yPuMy94B/xfuMBmCoZM6YB4RVBRd6tTzod2EfKLWWrkVFR4dxEVsIcBLqHHRH3u 0E8hEZ6lZMqUoDBLd7y19xlXDXNcvXxIzAsswJ/Y1W7LkZAcW0bwNdS2TEV6NcQpM0fb EX/iks3Y4bxOzCVwfkPa/V98R/RsEl5hOy9KFWWg6+5lSU/bNl/XkMe2VmRnyzj99R2P nSbmi/bK5Whsyu3Dgna+RgB2QT+jcbghifOA5HLuzHJ1OFB8Dsj2r8uNtqEs32uchY5Y wKU/Xp6eJokoa30mILZAu8i/o9pmPpkmVULUe31+DhzUhsW1QpM5A/EC/KX2C1qhfNnw pPOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sTxOklfM; 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 67-20020a630246000000b0052cbd7cff1esi16036251pgc.806.2023.05.15.11.22.48; Mon, 15 May 2023 11:22:55 -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=sTxOklfM; 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 S244687AbjEOSVq (ORCPT + 61 others); Mon, 15 May 2023 14:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244470AbjEOSV3 (ORCPT ); Mon, 15 May 2023 14:21:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 551F81A3AD for ; Mon, 15 May 2023 11:20:29 -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 A1DEF63163 for ; Mon, 15 May 2023 18:19:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AE59C433D2; Mon, 15 May 2023 18:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684174781; bh=sPGj3wUvKkGvX6ucvXxr19BMmg8jC165fTb+gTv88BU=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=sTxOklfMjCLWl8G7wJVMdBk7Q1VEBwMnTosD06SMuPhinu2B9DTNvcvrn6CX2vEID 70MaCuxxHghRrLP4PmdlNo7lRJoPagjy9Jcdy3v3a7HVZZ4x2wtYx+yBP0hnK+alYS GhHnD/79iWyuUdjOtyIXSMrM9eZ2sXxTMfYwH5YCbe4c1760yZx6ImusQJU9yg5mC8 j9Zh/sF7kihAsj0HyIJ9shi+LYU0i388LIHy8sLrNrQiu+5P/eUwE8e7a0mxAwsnTs 0P6K516ITbsARbQu50vBNMLOPbUPdFa60HBAeo8N3U66n7pVAJi/18O6zzYB7kDwR4 LGqtBePxum1qg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [v3] wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value From: Kalle Valo In-Reply-To: <20230512012055.2990472-1-luyun_611@163.com> References: <20230512012055.2990472-1-luyun_611@163.com> To: Yun Lu Cc: Jes.Sorensen@gmail.com, Larry.Finger@lwfinger.net, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <168417477523.32723.7861980499011954948.kvalo@kernel.org> Date: Mon, 15 May 2023 18:19:38 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Yun Lu wrote: > From: Yun Lu > > When using rtl8192cu with rtl8xxxu driver to connect wifi, there is a > probability of failure, which shows "authentication with ... timed out". > Through debugging, it was found that the RCR register has been inexplicably > modified to an incorrect value, resulting in the nic not being able to > receive authenticated frames. > > To fix this problem, add regrcr in rtl8xxxu_priv struct, and store > the RCR value every time the register is written, and use it the next > time the register need to be modified. > > Signed-off-by: Yun Lu > Link: https://lore.kernel.org/all/20230427020512.1221062-1-luyun_611@163.com Patch applied to wireless.git, thanks. 20429444e653 wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value -- https://patchwork.kernel.org/project/linux-wireless/patch/20230512012055.2990472-1-luyun_611@163.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches