Message ID | 20221015152440.232281-4-martin@kaiser.cx |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp683950wrs; Sat, 15 Oct 2022 08:26:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4H7usP6CGfG6XRiTADTHYOKSNrwhqbd2/qg0SptfRX7ZK6rbCsVj12nDCPFlJdZS6IGjku X-Received: by 2002:a63:2483:0:b0:461:ab67:ccfb with SMTP id k125-20020a632483000000b00461ab67ccfbmr2864789pgk.341.1665847592164; Sat, 15 Oct 2022 08:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665847592; cv=none; d=google.com; s=arc-20160816; b=yGBZ2/AZy+8dyif6HeRP2Hp/9I1TWgYyOoDAEOMBVsH+AxYOyi+bSIDW1eHbrf3vWO 1WlkzzPDM9nX1MSDkDcsAWq8TnPJj92elk0Nt5TvhVlS+b2S9dAuaUEKowq4R+CAlhBs jA8aMtK2Wsm8URvpleoRhLzLsrp7BKRgC/sgYUlYa0il+gam+NdrHpcQDkwhb1xkH4tC ujuePkMt5LVLHi2HnpFpX1+x305RNexbr+RY9YUkMS+aJXbKEr46DjV7hqQLOTeocl2w DWZjEAkB272L6C533IEtkfhl3p5SupSfZMOalbp5Sw58XQ/jTeQOGx1zhco/VZtqLdNG dzVw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rB7LMUcvaWnEedKivvwD5nTa+uNG7X06O/VAU4cgWJM=; b=pHDdtG7PLVafIGJsnZ4UI4XH1OvAmn+Wd+Gwkyw6ry/NvAmT/9kHbsBlkm7vnyXInt A1IMvBnE3d3efda1DV+VPOIuoOrMiqZZY7bvFh4nqUFihrfTSXkXW3cSefodpHxhZlPM wtrV1yg1UX5X9uBuW1OpbuL6dbONmov4RiIfFOvtORqYhDGpeo3YFhllFmEXwvqv2tKN lI5igVIJky8c1D1+N5O/sJGsmT8GcTOrys/VC7443aUac/2EYdYaSaESwwUBcVCrcbGb 0e4TZqQz749mqXfZCsXJUhzRzbPqYqXFJIPtzQZlohYoiaC48HqHnSqIBFwp68AU3Db9 8tYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a056a00084a00b00561c2d86801si6539628pfk.315.2022.10.15.08.26.19; Sat, 15 Oct 2022 08:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbiJOPZO (ORCPT <rfc822;rhyswoolcott@gmail.com> + 99 others); Sat, 15 Oct 2022 11:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbiJOPZF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 15 Oct 2022 11:25:05 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC32633A11 for <linux-kernel@vger.kernel.org>; Sat, 15 Oct 2022 08:24:56 -0700 (PDT) Received: from ipservice-092-217-066-135.092.217.pools.vodafone-ip.de ([92.217.66.135] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <martin@kaiser.cx>) id 1ojj1v-000722-Kn; Sat, 15 Oct 2022 17:24:51 +0200 From: Martin Kaiser <martin@kaiser.cx> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Larry Finger <Larry.Finger@lwfinger.net>, Phillip Potter <phil@philpotter.co.uk>, Michael Straube <straube.linux@gmail.com>, Pavel Skripkin <paskripkin@gmail.com>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser <martin@kaiser.cx> Subject: [PATCH 3/9] staging: r8188eu: clarify the bBusyTraffic assignment Date: Sat, 15 Oct 2022 17:24:34 +0200 Message-Id: <20221015152440.232281-4-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221015152440.232281-1-martin@kaiser.cx> References: <20221015152440.232281-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746767804881521430?= X-GMAIL-MSGID: =?utf-8?q?1746767804881521430?= |
Series |
staging: r8188eu: clean up the OnDeAuth function
|
|
Commit Message
Martin Kaiser
Oct. 15, 2022, 3:24 p.m. UTC
bBusyTraffic is set only if we're not in WIFI_AP_STATE, i.e. in the else
branch. If we were not in WIFI_AP_STATE, we'd go into the if branch and
return _SUCCESS before making it to the bBusyTraffic assignment.
Move the assignment into the else branch to make this clearer.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
drivers/staging/r8188eu/core/rtw_mlme_ext.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 5c59fc91ecae..fd2daeca7112 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -1515,8 +1515,9 @@ unsigned int OnDeAuth(struct adapter *padapter, struct recv_frame *precv_frame) if (!ignore_received_deauth) receive_disconnect(padapter, GetAddr3Ptr(pframe), reason); + + pmlmepriv->LinkDetectInfo.bBusyTraffic = false; } - pmlmepriv->LinkDetectInfo.bBusyTraffic = false; return _SUCCESS; }