Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp959775rwr; Thu, 27 Apr 2023 10:15:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6R2rG9e6+vXfM2szu0Xu4BEPk47wc5wEC4u841QFtfytefFd7QXCY0h5bmltIpOlCOeOAc X-Received: by 2002:a05:6a00:2356:b0:640:defd:a6bd with SMTP id j22-20020a056a00235600b00640defda6bdmr3193043pfj.12.1682615747938; Thu, 27 Apr 2023 10:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682615747; cv=none; d=google.com; s=arc-20160816; b=g/JtTu7UhgeeLC9ufyE8Lqjp90U8ZreSUpNGEvPXxFlOPi6ZpWNg7nA08U3MQBjI4w D+R5FzrOFikl3tCvPOnMbtvYxCHCE+59CGv4yNz+Bx0Ip1aNFsrnDSdtKuzTK0fyF2Bz VyJoBNT0UYBbT4quBXFGQRgHo6eY5S3fLYm1KszgiEq7ncJM15Khea6nYDgzuuze6AZq DOCxjuWpGQ/J1fiS5vgLYDuaBr1MF2vGYlRfPIFOeiVap0+sdiEK+fMg7dcEFXO5Gfxu xjyyFcVeDpxkRBliRbfcF89I4r6ZvGDD2U7Eq2iUoBrrQcvD9lNy15TpW+IXjaithEVH PPZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=74EPGNwikeuann9xM5Apbvxi0i4zuR5wbNUm9rP3II8=; b=clH3f3BNrFMR3nJyB8rX7NLeBbBYY+j0+0nKjTkT8fZDvOrfWt9W/o328HXOW+XJku P2fAet18txGHiDAkTZJdXAnU4qwOiaqQ0Tw3co5n46psjZWSm+2q4y0ndlg2hfn/nqbi Ma5SPwkxx7iCeODyninBBW0stZfLJmHFToszyBcFORWG4SQgHjSXp6XPUKYkpO68rH1X 8S4Sm6SPhqQS6T+4pD55W6CK+H0Fq7ASQALoPpZsxyqqJtb2EugM5BRtiBvgW0poqiKQ iZVh5cXjMX1Gf/N7watw2nDCFXzuvBRZ015fn9sgBRLQPz+N4z+IftmH9cJuEyLo3jZk oA0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nqQLPJrK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020aa7970c000000b0063bba11c4a0si19406991pfg.59.2023.04.27.10.15.40; Thu, 27 Apr 2023 10:15:47 -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=@gmail.com header.s=20221208 header.b=nqQLPJrK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244232AbjD0RBN (ORCPT + 62 others); Thu, 27 Apr 2023 13:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244226AbjD0RBM (ORCPT ); Thu, 27 Apr 2023 13:01:12 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51CBA1710; Thu, 27 Apr 2023 10:01:11 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-2f7a7f9667bso5531982f8f.1; Thu, 27 Apr 2023 10:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682614870; x=1685206870; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=74EPGNwikeuann9xM5Apbvxi0i4zuR5wbNUm9rP3II8=; b=nqQLPJrKEW0nciyyLpopZssw1HoaO7EOomcRMYq/Qjr/lgkhZbBZUEkGQNK66IFV2t jpj93puwT1lPuDhXYUeBnN5tQbwj6CglIe7Lr3dHvepWE/La7gV/guhND/SKO9rtvz24 I0yRr4Per9RKJUxSJkRSQ/u2dTAeoe7LypcFTQw5LMsuEogIP6b4XOyrKLkBQ++09Zt4 tWtYSwmuI6iJXNHhRIb40pirgKuSuHazqE1zJh/ZW7Z4eKF3p8OXDe9HegWE1sfdbl3p jmbYAOGXanDpE2Qy0b2zpDWw+bnlxEJ3dcaahgGVUt/N31RxayKMorOnutXcdbS8m7wk xuAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682614870; x=1685206870; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=74EPGNwikeuann9xM5Apbvxi0i4zuR5wbNUm9rP3II8=; b=NmKwMVFVzyna7goVSe26IUOghFoqKGalLyuPtJXqVlf330qQ+TdkIt093MZyGeekOZ Wg+95/umP0TTu7HNalU/jqw1P0DcgTEIcmZmxBP+Dp+DbazS/MaaV5uO05D/ZL37N2Sa VPfNaL2mDwEb6U2CjcIf0gqqdX60Svq2OXN98xbRpi1Q+a753xAb34ei1CIS7uJYMV+0 TIqXZ2NInJMMSe9t7fbu9QMgw9B3ll1Ae84QWrI6u6CwDig1MNKcp1u2zLKuKzIXdmqI jrn3boC0oJ+BE/qssqNU0gQ87engmV4lSYiWuE/QhluhevU3N9UJxN1oLiiojV8CkMaa b7iA== X-Gm-Message-State: AC+VfDx/B9oD38wnG8aPp1JuT87lFFAkgY44ceeXr3P3CVLk3DySBjV6 s3gQ+JmMVCaqaLn749JEqCA= X-Received: by 2002:a5d:6a8f:0:b0:2fb:2a43:4aa1 with SMTP id s15-20020a5d6a8f000000b002fb2a434aa1mr1797409wru.42.1682614869620; Thu, 27 Apr 2023 10:01:09 -0700 (PDT) Received: from [192.168.1.50] ([81.196.40.55]) by smtp.gmail.com with ESMTPSA id a18-20020a056000101200b002e61e002943sm19011813wrx.116.2023.04.27.10.01.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Apr 2023 10:01:09 -0700 (PDT) Message-ID: <3854af21-822d-75f4-0e74-e1998143d59f@gmail.com> Date: Thu, 27 Apr 2023 20:01:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value To: Yun Lu , Jes.Sorensen@gmail.com Cc: kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org References: <20230427020512.1221062-1-luyun_611@163.com> Content-Language: en-US From: Bitterblue Smith In-Reply-To: <20230427020512.1221062-1-luyun_611@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 On 27/04/2023 05:05, 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 writen, and use it the next > time the register need to be modified. > Can this bug be reproduced easily? Is it always the same bits which are mysteriously cleared from REG_RCR?