From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4258E188587 for ; Thu, 12 Sep 2024 04:04:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113865; cv=none; b=axcnOjy7hkxKKCxKB9Znxo4Y939noFxIoWcMUnZqR+PK1/HN+U1vH8Z3+4uYupUmVKIVGuqaahDYtD7WdHH5kjjnZ7lkHuAswojtlKyAhbvRbvDe0onYjng8XTNOi3kAVHKVkFwYKmAv9hU2TbuJtYWVESRYAuo2PlM5Cidcv40= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113865; c=relaxed/simple; bh=p+vypDuDMOvowsiMhk7OveGdNLolZp1WdAqRhn25tPU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UJX9pRA4OTk38XsTUS2m8IBJkbJAOs2aWVap3iQX/1+1Y8/djNBICobu4tkwZz2lD/6MxLMcbHu5CQfLKL+VcIZLqrDh/ca0ak+vJ+tOGG4a4zfXvRDy1LZLq+bUcgdkLsT8JsVVx1bZ90dmGvTAu6c59OzsdZrtzepp6Grtcjc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a7PcvFzq; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a7PcvFzq" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-205909afad3so6119535ad.2 for ; Wed, 11 Sep 2024 21:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113863; x=1726718663; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2zoSbD/XElrdewN0Z48FWs9MJU7wP3FXNvULxVd42pw=; b=a7PcvFzqDduN8zZ1kpWNU2iTzeMT++0dmL6UQTI+VPIGnmA+yV+U6g1toPZNwSGDVj iclCPBS7YFl+8nBAu3Xg1O8kE5haWStbaZqoR6MMSGx+peVIfDZiamz3Voy3V91kc35d 51MqoQ1UqHiT/hRNIOevJiKgLBavK0vji8SqxFrSw8FxQ5zvvxBCxLJJLIwP/dzf0Ksg do2U4EL19PyNRGy4DmFu0xjJyO9HBZf025kSYEy65sLYQDlISK4dgScOwkpVxACF4qRU omAqhpwMp5K+W7SMGTMA70qbP/i/ZJIOj3yQJ75X+ciYJNM9OkTWhbHgLJthWMcQWMYs J3LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113863; x=1726718663; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2zoSbD/XElrdewN0Z48FWs9MJU7wP3FXNvULxVd42pw=; b=KS9fG2eD5BQ7j3Cd8N7AwqQkb1dnq2P2DTtEkq+StE6Lv5JEkai9CwCqE3pNntfulf c/NyS7bi2tEmsnXrWj8j4Z8RpHaU6mtPiR8UF+ppD0y+IqnpKj0YfbYPnvv3evomydxS df2xsJfFmo8cPZNDShKp42joEShrvszjbo1bTkPtMT6YP6Nl6znY4sg/MSc0prTb4afc lDwSR5wQj9hHuoilqPkcOtFOcpjbb8XptcX+USG/GvQhbBF4AcA50sWDwR3au87s8Bjv RBc/Ifkdl2gaB5QDAzS1PJy5zGpQXRvMto4kxAiGgW63ZIOO27jh4wxftT+ahLJewb3w ONfg== X-Forwarded-Encrypted: i=1; AJvYcCVc06DbeQ7GSPuM67/i/hD0HQgPQKpaX9WXwOjbtRFMZRTpDIbLmfv7rSp4QI42IjgzKhKRJ3A+62hDnac=@vger.kernel.org X-Gm-Message-State: AOJu0YzzVfkrwN0a71KOZEgbRz6EPE60JV056i3I3HD+e/TQLJHWRqFJ 3ntC139wQb1F81PCz1GXDNeDBY0v0Txd73HOe2rYnfq5lf3FWVLX X-Google-Smtp-Source: AGHT+IH/7Gpo8Sq2l3q2Gt7692KhXZvLDIe/Gd1lAKuPM0yfbKM+867cpJQPRyaP0NsS+PPEuahJQw== X-Received: by 2002:a17:902:d546:b0:205:9112:efea with SMTP id d9443c01a7336-2076e39c879mr21496385ad.35.1726113863229; Wed, 11 Sep 2024 21:04:23 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:23 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 1/8] staging: rtl8723bs: include: Fix open brace position in rtw_security.h Date: Thu, 12 Sep 2024 09:34:02 +0530 Message-Id: <20240912040409.3315067-2-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change improves code readability and consistency with the rest of the kernel codebase. Reported by `checkpatch.pl`: WARNING: open brace '{' following function definitions or control statements should be on the next line. Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- drivers/staging/rtl8723bs/include/rtw_security.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index c3e47d52687f..953076667b4d 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -190,8 +190,7 @@ do {\ #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ do {\ - switch (encrypt)\ - {\ + switch (encrypt) {\ case _WEP40_:\ case _WEP104_:\ iv_len =3D 4;\ -- 2.39.2 From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 303EA188925 for ; Thu, 12 Sep 2024 04:04:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113868; cv=none; b=SVclxvMHDi+WnEjzf/3ipP+zG+FzMebK4bSOsebA4BaLsCt3BfLhAvcxxk5649SYZMigNWysbxKn5TBpN34zqVmlFIyaogBEaGypclvUvzrgos9jaI68E9CqJN5wEnifPULVWbs1F7cbMMsAOgt5kex4TtJYMjMq6ShAN25Yzr8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113868; c=relaxed/simple; bh=M/w6m9DICbb9fXeBmwD3TpLOWGHWyG5+dW06Vu7C2OA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JqNSu7/JQ1MmXvmC/JD1xrmmydZG5FAHqUk8n3xELxKmgc87Bm7dYBHqDnrhgU8VOWS0Fue4SKB4JeYujKS1C+7i4VcSDLNHINxfPVCoTadcN3BhqRYDU+g9VMEeiuaShovEyvSffhZ8CN3rn2VqWjd7vXnfh8z9ohWzc+a/EGs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jbcooVQJ; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jbcooVQJ" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2068a7c9286so6230185ad.1 for ; Wed, 11 Sep 2024 21:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113866; x=1726718666; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IXAZo/WXx7kQtnIHCo6QHKKFh7guoGvOfoFWj/T8o7Q=; b=jbcooVQJCwbaqrAX/dN4wsIz4lcLRDLeGAZZfz1II0okvG3TQQFzS4v/U+6ZZIlCTZ uyt397iC687JRa4DoFQQVgNvbXtAzft97xZzukJT3Z/Jplfy5domwmPs4dW9B/FMbeR9 17dNNAAd8AwD2+1NagbZihA2rb7pfSGo5AvDTBANlT3wq2unKFVXPkpL42U/lR9Djuqa nVeLM4kPNpq422eDQHyzexni6f3NzQcbcqIORWWZynzDORcwk41vdMDfBCnn8OtSPKtc hcAnZ0049ij9MY2YUFZJp167zg2gSDIcCV+A0G3r6Wtm14+cXojAt5kxcXt8SAkhn7J9 ENqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113866; x=1726718666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IXAZo/WXx7kQtnIHCo6QHKKFh7guoGvOfoFWj/T8o7Q=; b=VCc0d6xMYjWbekKlyYyqWyMDpRkYZl6G3gEYqAMZPe/8J/T+55Im9yQROGw8m7dHfc ZdRYgmdpmpVk0DkUBhK+wCRn5q282B+XT8M46rUS3qtEX+90U3K48pZfjRsZ0gfW17oE B6G/MP28V2MkVM/LabrPGMDzcpi/QT3UKEu0pA2Dzv7WCLK/affAZRSf0qG/vNcV+DdC r7c9NP47TFviG2d07T32WuV/EocrFNXW2kbEpkjg/PejY7Q1x4Zd86bFLj1/PxO7yWZf vhXu8tjUDGLnrRJysame5869Xas0T2m51LnE998XRS60zD/oJBEW9K7GUpoJGGbSbaHk oYHA== X-Forwarded-Encrypted: i=1; AJvYcCWAll7+nGNbnBiFCjKivLHOndxi84akjNmaVB4A0pVUXqM7MXvUbih5eeUt1WtUq1C9ckSV9wbY2aWDLQU=@vger.kernel.org X-Gm-Message-State: AOJu0YzU15KFSobLohakFflgzGT54A99+qRqOePqIiWwtdW9lXIux8J9 vs93gvd+lpepgQKxbx3DI+cNPQFB6MYvkHQyAewEWsR7nnjayPtP6hZVo9vodow= X-Google-Smtp-Source: AGHT+IEwOwRcbvDGeBmGe2+PqEHYraSrG3E+xfqMBWjwAWDIkNbu50hVm1cxU45xYhJ5lvlVG/oiHA== X-Received: by 2002:a17:902:f684:b0:207:5ca3:8d23 with SMTP id d9443c01a7336-2076e4767c5mr18339695ad.59.1726113866410; Wed, 11 Sep 2024 21:04:26 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:26 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 2/8] staging: rtl8723bs: include: Fix indent for switch case in rtw_security.h Date: Thu, 12 Sep 2024 09:34:03 +0530 Message-Id: <20240912040409.3315067-3-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change ensures proper formatting for better readability and maintainability. Reported by `checkpatch.pl`: WARNING: switch and case statements should be indented with tabs. Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- .../staging/rtl8723bs/include/rtw_security.h | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index 953076667b4d..74613ad9a371 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -191,27 +191,27 @@ do {\ #define SET_ICE_IV_LEN(iv_len, icv_len, encrypt)\ do {\ switch (encrypt) {\ - case _WEP40_:\ - case _WEP104_:\ - iv_len =3D 4;\ - icv_len =3D 4;\ - break;\ - case _TKIP_:\ - iv_len =3D 8;\ - icv_len =3D 4;\ - break;\ - case _AES_:\ - iv_len =3D 8;\ - icv_len =3D 8;\ - break;\ - case _SMS4_:\ - iv_len =3D 18;\ - icv_len =3D 16;\ - break;\ - default:\ - iv_len =3D 0;\ - icv_len =3D 0;\ - break;\ + case _WEP40_:\ + case _WEP104_:\ + iv_len =3D 4;\ + icv_len =3D 4;\ + break;\ + case _TKIP_:\ + iv_len =3D 8;\ + icv_len =3D 4;\ + break;\ + case _AES_:\ + iv_len =3D 8;\ + icv_len =3D 8;\ + break;\ + case _SMS4_:\ + iv_len =3D 18;\ + icv_len =3D 16;\ + break;\ + default:\ + iv_len =3D 0;\ + icv_len =3D 0;\ + break;\ } \ } while (0) -- 2.39.2 From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA2851714BD for ; Thu, 12 Sep 2024 04:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113873; cv=none; b=ThQzGc9YjL0g5zF3mRc3W/VVFLLkhS2r38nyiTX4nD236Cpj1jBxDnTVJrOgWbTW0sl2jAlRtU9dlVuWMzp4HXmzYLgpOlSfJvSN53XG1X6tsuzfUgVEmj/ZjNw/mHzvXkEEf51j4zNHfCOdvnLVZSVr+1x7UCzlWA9oQuwLpHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113873; c=relaxed/simple; bh=DC9yr3m4EEGFR6WO9pMKucALZ4AVOWvk4PmIwuJCAYw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=axlAdRCvKKs1aBjrZJblCkO5C1GRrk6zt8ytL4XBkLDrd1PPVCJcocdehR69vAKx7fI07LAiJt5JSXkH1VQtQTOf4/X04aBfA5U6mBFJPgO1U0WesamUzE/ClRPx4eQJ0zx36Lxw/XZUN1IZZExMiKcrDAtpSpkeihJyygnitT8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KOO7wbzZ; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KOO7wbzZ" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718f4fd89e5so423010b3a.0 for ; Wed, 11 Sep 2024 21:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113870; x=1726718670; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8yI7jF4cpO/8etoNk/Ze3jPcBLq+JHndlopVNbhxhuk=; b=KOO7wbzZkxZBH8taSMVHx36mYNRrcK5W2S54tLm4MqA+cQnIkorSCQfCc9f3XIwqAL gGIfKawNeHjH/FsVpY0l4GeCJo1mhw64esaB1Rch0rpnEh0MukMTISscLHPjQyaM9/2c yJmrvmfhkgOvfxW4dWXS0cv1BjOIfY7kKPGqfn9m9ToN7qgaoOabevqHn1Ty/lsldBB1 CyyDElmfVwQ4iR6i1jObARpRqy+DVpYM0aQOMPAx3ouijIBV11SEvUfP7oeH39dcqoSN E77RZAQeZoET/quleu3PLYkMiPrIXoCoTNv3OL9DjX6xEQdnEavBUi6JoblObeETnt9J ewWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113870; x=1726718670; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8yI7jF4cpO/8etoNk/Ze3jPcBLq+JHndlopVNbhxhuk=; b=eMTeZ6Bajrq2uYuCsrGoO3RzgLuRobJlxJbWhw9iQ2AZwuoGgjeYcK58+7Dl6QFzL/ CmMRrlxmz8heu13gZpaGzH5hxE5xZwNcIE9KWWF3Fxjxa/cQprCPX2TGkhMz5JnXXyWZ 0XyFsPlTxaOY1W9BUsyUZVLpdQGILQ3xz90k+pUuKHO42JVRlRA8mpYxEHtx4eT5C7MK OzYedA4zibV0ZhqTxuOPCU4Ze55FvnJg09DJ0tgJFOipZ85x2KOOVpBd8eTuzY1at/J3 wzbnFK1LxW0+ZpOxc3XGghwI0FVPcxRLKrDj57N/yMrT8zaLnSCib5pBo7jw9SsR68uP MBSA== X-Forwarded-Encrypted: i=1; AJvYcCWYwneNlnKuRvsmlHIALPgP6uwbN9ZvIn+RV4PiAOdH2n4sUz7dG4nhP71N+Qsi5806xFiH2CqZIrWMfeY=@vger.kernel.org X-Gm-Message-State: AOJu0YxdZ9kAmpPRYOpwGTrJ3PKVesDMkkjMqa+AhSB0K+B4eDv1BFsb Up4mEMRnrWQAW0VOkRkYCQySQrc1OVX5qi/6upb1WMoJMHUGShKc X-Google-Smtp-Source: AGHT+IFydLn89r0f6WJgz3Uj1DG+bkZKzjE52wn9tyRBLoumr08TCAvGgM4lS/6zabbgp9OcFTaJ6Q== X-Received: by 2002:a05:6a20:72a7:b0:1cf:e5e4:a24f with SMTP id adf61e73a8af0-1cfe5e4a32dmr282376637.8.1726113869805; Wed, 11 Sep 2024 21:04:29 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:29 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 3/8] staging: rtl8723bs: include: Fix indent for switch block in rtw_security.h Date: Thu, 12 Sep 2024 09:34:04 +0530 Message-Id: <20240912040409.3315067-4-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This improves code readability by ensuring consistent formatting. Reported by `checkpatch.pl`: WARNING: switch blocks should be indented with a single tab. Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- .../staging/rtl8723bs/include/rtw_security.h | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index 74613ad9a371..ee4b5c5804fb 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -171,20 +171,20 @@ struct security_priv { #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\ do {\ switch (psecuritypriv->dot11AuthAlgrthm) {\ - case dot11AuthAlgrthm_Open:\ - case dot11AuthAlgrthm_Shared:\ - case dot11AuthAlgrthm_Auto:\ - encry_algo =3D (u8)psecuritypriv->dot11PrivacyAlgrthm;\ - break;\ - case dot11AuthAlgrthm_8021X:\ - if (bmcst)\ - encry_algo =3D (u8)psecuritypriv->dot118021XGrpPrivacy;\ - else\ - encry_algo =3D (u8)psta->dot118021XPrivacy;\ - break;\ - case dot11AuthAlgrthm_WAPI:\ - encry_algo =3D (u8)psecuritypriv->dot11PrivacyAlgrthm;\ - break;\ + case dot11AuthAlgrthm_Open:\ + case dot11AuthAlgrthm_Shared:\ + case dot11AuthAlgrthm_Auto:\ + encry_algo =3D (u8)psecuritypriv->dot11PrivacyAlgrthm;\ + break;\ + case dot11AuthAlgrthm_8021X:\ + if (bmcst)\ + encry_algo =3D (u8)psecuritypriv->dot118021XGrpPrivacy;\ + else\ + encry_algo =3D (u8)psta->dot118021XPrivacy;\ + break;\ + case dot11AuthAlgrthm_WAPI:\ + encry_algo =3D (u8)psecuritypriv->dot11PrivacyAlgrthm;\ + break;\ } \ } while (0) -- 2.39.2 From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11E8B18950A for ; Thu, 12 Sep 2024 04:04:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113875; cv=none; b=RhMepyZkHwrszR6WdWIK6RsorPV9lH67iTuYsxEK+iFPGYe5zlzU4KeKO3H687KLKxwoSXiN6n9LITSQudL+U3KXbCtfxFHgX8hY3l54QJV8dFU8fBTKPJwxm9mRNDlFlc0KnfUBjjRWor6LjV/cg+Xk0owN0ec5Mts6wCEMyYM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113875; c=relaxed/simple; bh=8nxyDJcKvfaE2YoayCrAHbXJF+z+7/4qP2LTJZwR+cs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bpkF4gsbjkbqA2UJ60eTLakos2m//WIO3LW9wfJttSDycxaMkKhy5kMZds0hvPI1UA5I9gkjo9xY6692eVs3d3NyrZI5vtzOUbL+rQckhyN1vr31VMfBLOAqo+rLohAfw2odJh6Z+4nXBb7scVG1nwX7AkO+UpvBhrIXv4X0T7o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UfRhR9jX; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UfRhR9jX" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-718d91eef2eso290874b3a.1 for ; Wed, 11 Sep 2024 21:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113873; x=1726718673; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4I5sXZJVd6DoJL2ghSKrRMRQLAAStuHg4Or/EqIZN4Q=; b=UfRhR9jXnOCORVuwgjgfdck4kFSmlhlSCGX3hzuz/9ECJCaml+zJ/Gv8pITeFeWWDQ Rb/ZGzd9CqwbS2Cx8HFGkEESx964NWCMJx5zpUcDf9ZFz5cGEsc/vjJ3w6Pl51hZQ0/o Hv9DboEG7G2iwZswiDZLHlgkpaQE5wxn86+u+NDZoXVXOdJ7K0gae8BVNVaEQNQU9dVy IEbftR45j7zxRPZooF6MWp89nrn5IGsKBKl0Y5JKysRM8tNqmejN0fwf31qnDfX+ipuT ftllZqxCv3Ar5lYIKWDgDNLmsOBUAQvYTzmOafgs7wvw5iXvZSSV6C0hTPQqqGbTP82f 5pAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113873; x=1726718673; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4I5sXZJVd6DoJL2ghSKrRMRQLAAStuHg4Or/EqIZN4Q=; b=k8l8nVyVuHM5eW2+3rPrQxrHdXSSTiYzMbJdwTNym+Ih34IOnfBaxt8rsjKBww2XqQ E6cfN27x+K31kF2l8VLWNDFZ30OlNuTcBMCisaQ7R70+vjP+jxrFHdTr2absDfEhm1jV dvm9WRdSFaSV/V6hTM0DxQmx/fZLVRQzikQjyX2QYwLuxJb18jF6CQMJKPAZDdpiWUBR mJslAJEilK3SV8ueuQkJE074pbcDP0fg+uBziJWMScwkX3QvAJEiPp1Ig6AGDi0S1gZa i80Baxvv6EV6enHshUdaJ9nHbWQgeQsKJpvAOcTAJchBT1MEV3Hb3eczqWBIGvxOlmu9 h6Fw== X-Forwarded-Encrypted: i=1; AJvYcCWZcbuEWkbN1/fZHEhe5kHKWEOsKCsW93mzjNYzQM59m7uiZYjbl0gDyYE5urDKOQ0L/p2rfJGiEmjkl7o=@vger.kernel.org X-Gm-Message-State: AOJu0Yxf7IarLyz8pdqA9I4m7H+a56qT30q+D3rKyt6mVhUFKB4Mj7Gx awMSfeMJQeXGdkNnebn1pbM/YAczVdBIWJzfuTAsTtyf2UnATK8N X-Google-Smtp-Source: AGHT+IElAKHNYdE2RMto0PLX8schrZEEVREC0BdUYqLm6TcPKXu5UKuxpfWQ8uzE0Cha2/hrwvNIkw== X-Received: by 2002:aa7:8f8c:0:b0:714:21cd:a4e3 with SMTP id d2e1a72fcca58-71907f721cbmr11972046b3a.13.1726113873069; Wed, 11 Sep 2024 21:04:33 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:32 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 4/8] staging: rtl8723bs: include: Fix use of tabs for indent in rtw_security.h Date: Thu, 12 Sep 2024 09:34:05 +0530 Message-Id: <20240912040409.3315067-5-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change ensures that the code is properly indented and easy to follow. Reported by `checkpatch.pl`: WARNING: please, use tabs instead of spaces for indentation. Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- drivers/staging/rtl8723bs/include/rtw_security.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index ee4b5c5804fb..0c3271fb7e9d 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -75,8 +75,8 @@ struct { }; union Keytype { - u8 skey[16]; - u32 lkey[4]; + u8 skey[16]; + u32 lkey[4]; }; -- 2.39.2 From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D8AC189B88 for ; Thu, 12 Sep 2024 04:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113878; cv=none; b=Tv6XlpP+D7kTe8Pr/y3lltev/9pv3mSsizLOq21x+LZsnuZM1GTOeORr4KRhnNMU8Rqt1L4Pv7n4K1aWUaDzJ3weMW7VN+L+Nug4byOGnf4MFiO+Sq9bOj8Q4gRbEGGco/LS3FXsyAji0zDYqzvXqFK9hWqHrlMWmtJaiC2fe0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113878; c=relaxed/simple; bh=bdIGBU+mN34bLbOLajFGFB6iyFx+5wKylOR3Xogz2ZM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CUEaqd7EOOgHYBc/FyENeuz1ehyKvItl3Q973dTef2CiDQ2+nDK7PGD/UQMvYcPA6UhIMKfvmB/w4uQTD5ZS9gzXJLq2fIi6zKciw0Skz34EbKJloWrvwLUSZt/AHUa77Y4vJycTPK2ZOm+Id0bTJdaEwCop5zO2vjpziZeGYkg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gIrw9SYf; arc=none smtp.client-ip=209.85.210.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gIrw9SYf" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-7191f58054aso408949b3a.0 for ; Wed, 11 Sep 2024 21:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113876; x=1726718676; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1jyB7App+A0wL+Wf0fFusO+M//VVEnQeF5FHyKNWVAA=; b=gIrw9SYfDiXsN7WT4/P8bK3DPZzUsK+YESP55zL9HrkUhK+uezc1WbxDuaQq3BWlFH dweJ2XDJ6yWYWoVtizjTJJlCOOCEW9Ca4IIw+WvYpL1f7VA2VfMfp9JHePDrcygYWC1f Y8XmAEVLUgY32dymfXc5oyexfwSEup04EwmberzE7MiDs1ljPZvGZnyZAGHDBWnrtK9t 6XqX2eYA8Kr6oDqYMWrJ84mURX5+nDH4O8r41BsvPNXG5h+CsB81zmou5BzSQlm50ZLk unyGlnAYVk7r9bHCG+2nK/iMv7y/T+vwCTbEitgtTrAvpRbW8KEus4KFHlROEprI93Xw zoYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113876; x=1726718676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1jyB7App+A0wL+Wf0fFusO+M//VVEnQeF5FHyKNWVAA=; b=rx6/Pwh0TK2prp0jHqiu3p9/a90/802c19s8kgdRPbNrJaxadG0xTuS8fJSOm5omQq J1kAUKdk3HAF0kNP4A94PCj2O6jA6tfiqvNvVe08CspDRHsDOgIwOpBpwxDII9Cg5vLW abQaF5kJQtbNUuqkqW0ntUpbIBRwc/B1pRH2DloTS71R0PgFV2NFaUb3JpmYV+UT+Rqt 5uEmGHX0xcxNKN2KjEYpdCUJKD9TbbTL6cZvcZ3p85ch8Kh737yjXhNiC/PKgCNk8eTT rDBk9MsK26prHCFEWdGQeDjXzXWTX53frbSw5hHZPn6KmGYz6YhvRHD8H3GeUJTi3qVm DJMw== X-Forwarded-Encrypted: i=1; AJvYcCWEBRinm6E3LiOWkleGkXi7x/eNHexl7+Cy2Y+oDs6P8YXtOJxX4TvSa3IolgbH7snskiQknY0EkXakrGc=@vger.kernel.org X-Gm-Message-State: AOJu0YyGasOVpoAusKUpcl/0SdbSX8OfRyfyCxTP0eQkYRKfnq5wybdy 3lrBfm92nNMz5mOaxviZMLA7DfwSEaGBagivsyOUSw2YCVsmX5er X-Google-Smtp-Source: AGHT+IHoAJwpGouIkghtKvkT+FudpoXg3/xOSYGChcm5MDvyNE4oN7rlrza/YeB4qkv+l0DSFMJJ2w== X-Received: by 2002:a05:6a00:228a:b0:717:87af:fca0 with SMTP id d2e1a72fcca58-71925f9de4emr2599012b3a.0.1726113876396; Wed, 11 Sep 2024 21:04:36 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:36 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 5/8] staging: rtl8723bs: include: Fix indent for struct _byte_ in rtw_security.h Date: Thu, 12 Sep 2024 09:34:06 +0530 Message-Id: <20240912040409.3315067-6-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change ensures consistent formatting of the struct declaration. Improves code readability. Reported by `checkpatch.pl`: WARNING: please, no spaces at the start of a line Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- drivers/staging/rtl8723bs/include/rtw_security.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index 0c3271fb7e9d..7901cce76443 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -50,14 +50,14 @@ union pn48 { #ifdef __LITTLE_ENDIAN struct { - u8 TSC0; - u8 TSC1; - u8 TSC2; - u8 TSC3; - u8 TSC4; - u8 TSC5; - u8 TSC6; - u8 TSC7; + u8 TSC0; + u8 TSC1; + u8 TSC2; + u8 TSC3; + u8 TSC4; + u8 TSC5; + u8 TSC6; + u8 TSC7; } _byte_; #else struct { -- 2.39.2 From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 616FF18A6C1 for ; Thu, 12 Sep 2024 04:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113881; cv=none; b=mTLdQSzNqIbRXWZsLF/80knO/8mWlx7bKgeGw6xbPd7fDR4Y+lzNmnKeIlL6Xezgf92LXWO29QKdlPLDS0359zQqhZXjYbKraB15cbXb/gkSjOXeca+ycQQGzYH1u9ZV/+wQVh7u2FOkE75MKUsRsgRrAMkYttIaM5w0SDR/ZvQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113881; c=relaxed/simple; bh=zyyawO/uW7xUYBto29DhygmEN66WLE+uMJwCMx/YU9A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AGbDly7vVILrhuwPdNIq3pBheWbEQGQT5nYqmWal2F56YWEY9+833s+I2AtWVGtuQnIq2xb9m544FVIkfW94SR3BxlqDecMlWUWOG9mJZDScNQOBpFC5XEk/bOrNOgb4RTqS/IICEo0LG7z7pzP8QkoFlbLc+Szc1nc8dLE8gqg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ci2usA7U; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ci2usA7U" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7d7a9200947so381554a12.3 for ; Wed, 11 Sep 2024 21:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113880; x=1726718680; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dc0/4aLhAOlQgNkq7UXPdLlR9BwhyToHh2UX75c0BdE=; b=Ci2usA7U4X0gTQyKyN3BAF0DH76TyWFmBYfyyPz9wkNCtWmCX1Eyn1+tWtoIihDtgO lx2fuvS89nGPPzQflZiNEmhfWyomrUJVNaFyAsBnmwfo9Z+68mO4jgqBV/zIRZfBqTbl tY4u6L7Y9x2oVZCFvVYF4gm3TbRbnusQh761sZ1h6ECfzZCJhzgPr99UpmAVsKZh94g/ HTp2RBztybwAZ7FRS+KmIfOYLNLRKfQ+w2HMQbuEAzse66VyGLeWAlDDXxS/EZEuXtxs lDGIomzW7Qs8X/J+dHhehtPYt2APGH6JPbi93VOL4V43PJ4/RAYWHoTINVbQSU2xCazZ RupQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113880; x=1726718680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dc0/4aLhAOlQgNkq7UXPdLlR9BwhyToHh2UX75c0BdE=; b=c4FqTJeGCrZsvLdqfBoHkmpUZlVH9bU7rtkmsOAjYjJL1ZpRH5RhUIzaFq+ns/xAxb /QmXAmDrvXN2NIjMxpAFXe0CmMCXutgrEsJ4gu0LEZpCZIfQ82NSAQAJajW4Qu/T5DSm XTZPyuL73Oz+F0JtCEIQ7MkWSDLL9DXhOa58LjRTeIE+/Y6fxCWU+Z+yXUpcVy0ADN2B 5lvsK1hew7wrUpf6AquHx65DDYgHGjn9ICoKxAoNQsFZpV7cp0n0MdSJvdBa1LJI/L7A kfm2aeHF/lmPJIKlySbYA8fGy5YRHRe/VrZfGgzpBLvFvh8OfqsbXPkj0qVP85ijEhzw u7BA== X-Forwarded-Encrypted: i=1; AJvYcCUd0XCoWo9g2Iu8tggCs1EJL3QLZj9ARa6HI31dNGi+wdM/HQdiOnulX1L5yDHJXT4103fhbYKe6RLYlNw=@vger.kernel.org X-Gm-Message-State: AOJu0YweqTTLnUTumjJI/Xr7HdyI53h0c0aG+9yIaZEMmEjIJiIolERb 4r1MdNvBkDsYZzunUuIhj/gBr9pOAGVrsn7dI0PTyKEheg79w4C1 X-Google-Smtp-Source: AGHT+IFIwqIPMdCXEORiJbR0FOWqpn9jQVC+F87+u3NtDpFEsSTH9/30FsN8vv5xzf9GpcTMHy2ZJQ== X-Received: by 2002:a05:6a21:4a4b:b0:1cc:ea18:27d with SMTP id adf61e73a8af0-1cf764c1253mr1923547637.45.1726113879605; Wed, 11 Sep 2024 21:04:39 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:39 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 6/8] staging: rtl8723bs: include: Fix indent for else block struct in rtw_security.h Date: Thu, 12 Sep 2024 09:34:07 +0530 Message-Id: <20240912040409.3315067-7-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change improves code readability and maintains consistency with the kernel's coding guidelines. Reported by `checkpatch.pl`: WARNING: please, no spaces at the start of a line Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- drivers/staging/rtl8723bs/include/rtw_security.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index 7901cce76443..6124f2ea2431 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -61,14 +61,14 @@ struct { } _byte_; #else struct { - u8 TSC7; - u8 TSC6; - u8 TSC5; - u8 TSC4; - u8 TSC3; - u8 TSC2; - u8 TSC1; - u8 TSC0; + u8 TSC7; + u8 TSC6; + u8 TSC5; + u8 TSC4; + u8 TSC3; + u8 TSC2; + u8 TSC1; + u8 TSC0; } _byte_; #endif -- 2.39.2 From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7058818BB8B for ; Thu, 12 Sep 2024 04:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113886; cv=none; b=VZbI7we/b1/CWgdT04s3JGW6RteGbFDulL2tYE+aIj0pIdYv4035k71MmV9Gn1yH8fQEfdHiuBGsF5O0i+zAIUAM/MxJQDVqMygTwXdJrkpiDUi8GAGCVFl/jjR+7i66h54KmKymljv2gnfiaxxn/7Ve5j8sMeM0sqL7UO0ukXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113886; c=relaxed/simple; bh=eVYB9XOWnNSbAdkz5YFJjpA5UMlyIMpazV/+I3O7IVs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Bll8U54Nih151Mh9dzZsJQLSLV5r/eMo9dkmKDnzTWR+WHHSYJsusY14TmtYMbDh/Zq3YW7nlHqVY0REaEzQqq12cQ4dKSu+pUUolKPFjoXVZZflJzar9MX8znhr1bwXYYixo49P/IxXnx2wryFXoGgZl6W0+oVUmqx2am6OzYQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kSYkQNrL; arc=none smtp.client-ip=209.85.215.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kSYkQNrL" Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-7c6b4222fe3so334650a12.3 for ; Wed, 11 Sep 2024 21:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113883; x=1726718683; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eVYB9XOWnNSbAdkz5YFJjpA5UMlyIMpazV/+I3O7IVs=; b=kSYkQNrL+pGoxBCKg6Ps+gBKVUZ9RaHvOvb1zYZ/1QRFx7AZ/MkY24U8VwxszM6tKn mhzgtYO14YURvW4o1FnHXKKIaCk0NX0scMF+LTQIQExnVO5df885Q/dWRsKNFPyEByMk dkNtpzgsY9zsaw+D1y+GM0OK5NYiKnc4P12oS00ioXm/v6dip6i57uVByiiDD5LWYxQ1 qe/JHawSSjHcbsEKRZw1k05JGhi54aax0Njepl3aDJ4oVuweuhUWW8hq7rRrkrTyqimY mAW8iiUBv9I+msu7oeuS1GrdFaT2t2L0KvWbd2QIl2IyRSLuqmmvV83MEIt+Aot58ht3 W7+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113883; x=1726718683; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eVYB9XOWnNSbAdkz5YFJjpA5UMlyIMpazV/+I3O7IVs=; b=prU0Jbm2g6vLgBXpgr35UbK5nOB8MY7qnh+zoY4hN+cO9tvdnvk3Eg+h58QKfrTExu ZzVxfPv3WRK5l424tT2yMxhhkHCji0eDHJ40xI1hiJij1o2Izky/YueJXOjKfVPu7gfW shlgRaWhjiNRy+10r8yNbACx1MHnF+bt+P7dLNEnarIQXUKsYp1x490oieP8ZHw67OD8 qJuwrXS76McVTT1/AaLLmqMIFrCSnsal5bT4eczdFgYKF/s2I80PWA3GeM5rQY48fABb vV2+1+fPCg1JiidnKYNzoRXMk/TGDIcLMJ0BqmMe+zYqXQkxfoWVB3HB5gGm5G/RZNj0 PUzg== X-Forwarded-Encrypted: i=1; AJvYcCVIySm4KYVs5hKd2pYGlJBZgFEii3yXW9dn8We44mIwH0SOZL3StR4HzjTqW3DGCUFOxkQLejcxL6L3kFc=@vger.kernel.org X-Gm-Message-State: AOJu0YyCzGox9qEGyYGMEEHh7VCvQs7aZI9PtdmzbnEq60yDXlay3HYf 4ZdqwS8dUskbTe9kl+9NiRLvmyS5BAaigWW+p4SMQKYi8dCiIGil X-Google-Smtp-Source: AGHT+IF/vNoo9iD5Ewq0ziB2Rfx6e5KqaWAS94HQZAeLYOblZT1QjfyIFhZ2VYUaXJP8jczaYEJpYg== X-Received: by 2002:a05:6a21:164e:b0:1cf:4dc3:a89e with SMTP id adf61e73a8af0-1cf75c7e8a6mr1883766637.9.1726113882629; Wed, 11 Sep 2024 21:04:42 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:42 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 7/8] staging: rtl8723bs: include: Fix trailing */ position in rtw_security.h Date: Thu, 12 Sep 2024 09:34:08 +0530 Message-Id: <20240912040409.3315067-8-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change enhances readability and conforms to the standard commenting style in the kernel. Reported by `checkpatch.pl`: WARNING: trailing `*/` should be on a separate line. Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- drivers/staging/rtl8723bs/include/rtw_security.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index 6124f2ea2431..09ed298782a6 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -240,7 +240,8 @@ struct mic_data { /* =3D=3D=3D=3D=3D start - public domain SHA256 implementation =3D=3D=3D= =3D=3D */ /* This is based on SHA256 implementation in LibTomCrypt that was released= into - * public domain by Tom St Denis. */ + * public domain by Tom St Denis. + */ int omac1_aes_128(u8 *key, u8 *data, size_t data_len, u8 *mac); void rtw_secmicsetkey(struct mic_data *pmicdata, u8 *key); -- 2.39.2 From nobody Sat Nov 30 03:46:35 2024 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F0B818BB91 for ; Thu, 12 Sep 2024 04:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113888; cv=none; b=NLzS50f0lKTnJ0cYCJUGfThNe+UMBC80MWYFzwSkUN2OIX7yqs9okkhUMAy+hhF91uVYXqkVQDjkJmJDcgvAJu4qMPZy4MfyMyq20y5W8Vj9J22mXehS7ewC/MreJQgHWUdSEeTEebn2D/WDDjzll/g+GILqrRQN7P5ydjZA8jY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726113888; c=relaxed/simple; bh=1xoHqAHfyWBPaCqgVEeynTfGrsLp/kPMfAmcN2bELyQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IGcfGyjjW9J4XOQmyJT+a4jJ+Jh2spfDMSNB/QtBnpLmb5znUFOV8GU87WiG5RZ9EEdl1LzEjP7TmLhQlOookUVZKc3HiCj9aBUxPp3hyBhzbtnPY1okHpibjCnvpmH9jYj5yHXPLueAGr8UJ4tzt7J8IU/OK2WRFKiwvI3io0k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XpzROK5n; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XpzROK5n" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-205659dc63aso6188035ad.1 for ; Wed, 11 Sep 2024 21:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726113886; x=1726718686; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ThvSFW7vmATU3IrvCKmeBsRE8HH7xmkKY2e+o0JIjds=; b=XpzROK5nFVj5jHAU1vD8T5A73wG/Ze0twmcMQnLIdkFx1oyTwkS6CibE0E8tiJfXu5 6Oy74S75y/xrGhmSP+a8SffFwPYwnbp4YtzN9fI8U+zLTZkiYAALSi0PNPm+iPirhWie kZzsyG7URILsqbx1Thd/EybY2a1HldnpMeJGg173BU7hw+ZaQ+bH1O6DYy8Q75ddMPcL X8ZwBBCC37+/RVwRVvJYhQZlGzkWknkUsjjdgHgrC/0qxEJvtbV/QRwntEFCUvG5RG3C jVpCqwqyb6E9KJ+Gqw9dLSU+0FMTPDy3FdDzXPfjyjb/y+P5DtFgz8Pn5C5/ISZFw0Fl 78DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726113886; x=1726718686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ThvSFW7vmATU3IrvCKmeBsRE8HH7xmkKY2e+o0JIjds=; b=xBok5HcuAlYfTPFPgQQ++babd14sAtbNasSrQGfLr7VfEpy0QSS7LpFZf0wfyzR0q5 94ni6CagJ+S/8H/fjXs9cwwRgIQBE9dQRcrg0ZsZnOtG3PNUS2zfV2tQKccBLSxFXqWk ZJH4OL+J2vp0rJF8vWgggvOJP54lj4Qj+GuYb7oLdmkGeswxp3lxy/q7gn1XFpUYW/Up /ssJMl3R41RSw8zTCBe5JxnUmOSoZfEslTrK6zY99bQEZUkZD0wP+yJV4wT+0Hi7RlHJ L6zLOP4QVILj0yozHgSU1F2HfAUiJIJKkASRE9IloFf+/PzkVlp1aBv14OFMzE59A0ul EezQ== X-Forwarded-Encrypted: i=1; AJvYcCXuPZ7sLRsYDLhqrtoOSgEIDHCIbD9OCb4KPTyjP7bBxghwb0EAga38hirCCZZOQNO3x9slhZL+6IGVgn0=@vger.kernel.org X-Gm-Message-State: AOJu0YwECDIOsGGZFjAM3aNPDVTwFRNCxIuSif8G10dvYQMA2E04Y6ry 8m2f042c1v/WQ91fqu7mgnuNl0h+Xr8AU4DnHMOfF6j3id1GW2WE X-Google-Smtp-Source: AGHT+IFNFRu7l+HraQU6DJHAWwbySTGcg/HyrUZN0ku3fYnYj4nLDdazVhQ77+wjjm0IOsfYtwyAsA== X-Received: by 2002:a17:902:e74f:b0:202:2e81:27c7 with SMTP id d9443c01a7336-2076e3f77f9mr23236475ad.35.1726113886161; Wed, 11 Sep 2024 21:04:46 -0700 (PDT) Received: from debian.tail629bbc.ts.net ([2409:40c2:12a7:616d:eca9:534f:4e49:7c41]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fba469fsm768359a12.11.2024.09.11.21.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 21:04:45 -0700 (PDT) From: Sayyad Abid To: linux-staging@lists.linux.dev Cc: gregkh@linuxfoundation.org, guilherme@puida.xyz, philipp.g.hortmann@gmail.com, linux-kernel@vger.kernel.org, Sayyad Abid Subject: [PATCH v2 8/8] staging: rtl8723bs: include: Remove spaces before tabs in rtw_security.h Date: Thu, 12 Sep 2024 09:34:09 +0530 Message-Id: <20240912040409.3315067-9-sayyad.abid16@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912040409.3315067-1-sayyad.abid16@gmail.com> References: <20240912040409.3315067-1-sayyad.abid16@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change improves code readability and ensures consistent indentation. Reported by `checkpatch.pl`: WARNING: spaces should not be used before a tab for indentation. Signed-off-by: Sayyad Abid Tested-by: Philipp Hortmann --- drivers/staging/rtl8723bs/include/rtw_security.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_security.h b/drivers/sta= ging/rtl8723bs/include/rtw_security.h index 09ed298782a6..32f6d3a5e309 100644 --- a/drivers/staging/rtl8723bs/include/rtw_security.h +++ b/drivers/staging/rtl8723bs/include/rtw_security.h @@ -81,12 +81,12 @@ union Keytype { struct rt_pmkid_list { - u8 bUsed; - u8 Bssid[6]; - u8 PMKID[16]; - u8 SsidBuf[33]; + u8 bUsed; + u8 Bssid[6]; + u8 PMKID[16]; + u8 SsidBuf[33]; u8 *ssid_octet; - u16 ssid_length; + u16 ssid_length; }; @@ -162,7 +162,7 @@ struct security_priv { /* For WPA2 Pre-Authentication. */ struct rt_pmkid_list PMKIDList[NUM_PMKID_CACHE]; /* Renamed from PreAut= hKey[NUM_PRE_AUTH_KEY]. Annie, 2006-10-13. */ - u8 PMKIDIndex; + u8 PMKIDIndex; u8 bWepDefaultKeyIdxSet; -- 2.39.2