Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp662871rwb; Sat, 17 Sep 2022 12:12:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73LeKG2UZGTjMP7hIKeMuoJoao6R9tW+1cwSCcEUPh4jC+zs6Fwqjs6cUZSyH2tqVahKhB X-Received: by 2002:a17:906:dacd:b0:780:a90c:e144 with SMTP id xi13-20020a170906dacd00b00780a90ce144mr6003462ejb.153.1663441976217; Sat, 17 Sep 2022 12:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663441976; cv=none; d=google.com; s=arc-20160816; b=zMGqL8aiNcN659+T1QQ/gj/mtYQhBu0pIdlPpx5+N23OE4SILMIxHBftY+MhYBYOHZ drm2mRgCf9L4F8TzBcla7ON1DdKOEUQBIAzgI2MMCe5HRupXj55fJwzw0P0BWvWUpFoV ikGtEXIeDixqqJz+rVg9SPw5Pu2uE2pn6DodR+tkfe7kR5JNpkHWvVe35Jv1f435Uwvg +OMsYdPm43CtZjDYGj1EiUo8Kc8vRpj+8n0NNto0EhAOY1XZLeh8tUb9vm3DJiOuA08v j8a74BMq5jWwupOSR6CWGz87tf5k0lAPZAAeZK25FvZhJkgx22H94JO7p+C7+OgIIhXO gpiw== 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:dkim-signature; bh=RM/MaJxI7eoH4wnvJNEXDmXgONuOyNDJ2jEkwiNVsis=; b=L4BDO4OS4pDs9m9SU5YB5DBLa0JaJOhl+KRmH3f3869N+wEvijnFdX453JzxGiM8ZC sqMikOdXOWXuIDMegsl280ju4Cxv//SmwApWg59VXpqPNrR2Oe9z4rjhYM1AyDYdrk+P aS0wb9uR9nRFamrRmMAS0E30qd1QGfYX3Vb3j0Mlk3VFlOWds3xclekIb+u4b/Anc1a6 0G7hHmhqFhP4+I0zsl3/BfHyY1WDdlFXiLBgmK54KVJkSkKpeCPiPJ6clOjKSJ3BpIuH voeHrZb1YU4wZPaqmQdHwY8SWC5WIIpIMfxYMfHCEaBt99xHmsmxh3YCkxWIuo8i5S2K xO7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A4FYl4GB; 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; 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 gs37-20020a1709072d2500b0073beb58e98dsi24496717ejc.276.2022.09.17.12.12.27; Sat, 17 Sep 2022 12:12:56 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=A4FYl4GB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbiIQSQe (ORCPT + 99 others); Sat, 17 Sep 2022 14:16:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiIQSQc (ORCPT ); Sat, 17 Sep 2022 14:16:32 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 587422E9FB for ; Sat, 17 Sep 2022 11:16:31 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id x1so24360537plv.5 for ; Sat, 17 Sep 2022 11:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=RM/MaJxI7eoH4wnvJNEXDmXgONuOyNDJ2jEkwiNVsis=; b=A4FYl4GBOaQ5yCxsCOp1T3po6mv1ywVbb5AmOO9sgSOAqbsQr2gCiLAKvEYgDXS/75 VlIVzpT00T2nd97MCukyNWNNeibQwGwlK1EEhg/hyVHqITP0LqD35Dge+9qWCQ+ztbij WU1NxEvBADx4x9+5I+s5jstOJY+3eua/9XVU1NvB9Ci4mvCku8WKVj8IyBNjvMeL0yH8 gN1zTAICvaAVAQFeUP+4Ld7gk9LOLApzjottHsz51HogFOTxRrvmv7fmsbKNCn5TqSmK BmULaPrv6wIVXPIj89tnObunxSQpsHTttHq6GEl84kGtMp270lOPF+t/jcomrn4BZDql fI0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=RM/MaJxI7eoH4wnvJNEXDmXgONuOyNDJ2jEkwiNVsis=; b=fgbQSprK0u4qWz4zFDftd+sQHHTJeYQYisxtU7Pu8M/IjswNtp9iQKP8onJi3EBl4g VyYFQFoOVSbJYuAWHgCLV2vjh/3fsMfQmJmILDPp4A6Hpid8lzks55K1C/x7fQKidXAG RXjhzZGZXYB09fDaoNGHdy4znHzI/NMbvl1XId2xbRZqLAZzbxyaJlejb9evYcIFVu+1 gUqNd1tzmiexHQzfUCYYKNXPe5i4+ETKX5yLCLVMqNkgejJn0GsbA8RGknIGNx6USKSL yUFMQhhZ0gWBsfhA84W1E1YzOEAqZdF+6fQbmpEwpT5FYmjQ7Px+mxFEioRp52Y8Y4WH 6xvA== X-Gm-Message-State: ACgBeo2a5zD+6pB5AUu8nZuSjTqwjmuUm45So/2ezJGKOS8sJ3GRNDLo Gl+np7QLO+Ea9MHBKHWtxEU= X-Received: by 2002:a17:90a:203:b0:200:8df6:84c with SMTP id c3-20020a17090a020300b002008df6084cmr21985905pjc.24.1663438590753; Sat, 17 Sep 2022 11:16:30 -0700 (PDT) Received: from uftrace.. ([14.5.161.231]) by smtp.gmail.com with ESMTPSA id lj12-20020a17090b344c00b001fd9c63e56bsm3529678pjb.32.2022.09.17.11.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Sep 2022 11:16:30 -0700 (PDT) From: Kang Minchul To: Greg Kroah-Hartman , Hans de Goede Cc: Fabio Aiuto , Kees Cook , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Kang Minchul Subject: [PATCH 2/2] staging: rtl8723bs: Insert blank line after declarations Date: Sun, 18 Sep 2022 03:16:20 +0900 Message-Id: <20220917181620.3237192-1-tegongkang@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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-kernel@vger.kernel.org This patch fixes checkpatch warning as follows: WARNING: Missing a blank line after declarations Signed-off-by: Kang Minchul --- drivers/staging/rtl8723bs/core/rtw_recv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c index ad6fb6c3d1f0..dade4d07662b 100644 --- a/drivers/staging/rtl8723bs/core/rtw_recv.c +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c @@ -245,6 +245,7 @@ u32 rtw_free_uc_swdec_pending_queue(struct adapter *adapter) { u32 cnt = 0; union recv_frame *pending_frame; + while ((pending_frame = rtw_alloc_recvframe(&adapter->recvpriv.uc_swdec_pending_queue))) { rtw_free_recvframe(pending_frame, &adapter->recvpriv.free_recv_queue); cnt++; @@ -397,6 +398,7 @@ static union recv_frame *decryptor(struct adapter *padapter, union recv_frame *p if (prxattrib->encrypt > 0) { u8 *iv = precv_frame->u.hdr.rx_data+prxattrib->hdrlen; + prxattrib->key_index = (((iv[3])>>6)&0x3); if (prxattrib->key_index > WEP_KEYS) { @@ -882,6 +884,7 @@ static signed int sta2ap_data_frame(struct adapter *adapter, union recv_frame *p } } else { u8 *myhwaddr = myid(&adapter->eeprompriv); + if (memcmp(pattrib->ra, myhwaddr, ETH_ALEN)) { ret = RTW_RX_HANDLED; goto exit; @@ -1125,6 +1128,7 @@ static union recv_frame *recvframe_chk_defrag(struct adapter *padapter, union re psta = rtw_get_stainfo(pstapriv, psta_addr); if (!psta) { u8 type = GetFrameType(pfhdr->rx_data); + if (type != WIFI_DATA_TYPE) { psta = rtw_get_bcmc_stainfo(padapter); pdefrag_q = &psta->sta_recvpriv.defrag_q; @@ -1207,6 +1211,7 @@ static signed int validate_recv_mgnt_frame(struct adapter *padapter, union recv_ { /* for rx pkt statistics */ struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(precv_frame->u.hdr.rx_data)); + if (psta) { psta->sta_stats.rx_mgnt_pkts++; if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_BEACON) @@ -1480,6 +1485,7 @@ static signed int validate_recv_frame(struct adapter *adapter, union recv_frame retval = validate_recv_data_frame(adapter, precv_frame); if (retval == _FAIL) { struct recv_priv *precvpriv = &adapter->recvpriv; + precvpriv->rx_drop++; } else if (retval == _SUCCESS) { #ifdef DBG_RX_DUMP_EAP -- 2.34.1