Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1709203rbb; Mon, 26 Feb 2024 20:42:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXn77xgOSxs11UJR+iwD8rsc0mVHxICMVszqUo7sd0uRwHnjtysk/iXSbkay8vWkR5EScdyLUhZE+8zl5Mm3G2u/wcVu52daHkG9nS+Gg== X-Google-Smtp-Source: AGHT+IHsepaZt2Buoau5mYmc+cnAwyzxuaKktCW6LaTpBfwdBc9gnaw1bhGXl3ddxsaZARI3vM5I X-Received: by 2002:a9d:7591:0:b0:6e4:a0e8:dba3 with SMTP id s17-20020a9d7591000000b006e4a0e8dba3mr3910352otk.16.1709008961132; Mon, 26 Feb 2024 20:42:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709008961; cv=pass; d=google.com; s=arc-20160816; b=ZWCePPzllHLSUXq8zxe/XlyiWdiSKkboohpsaDHoPxF47YktiVG1ANvjsHMLJDovjB +VAk6hq0DN0f43yyHAgD/131y73xhXlCv9qIanVlFbguv+zWO4ElISwCB9QrpiPKK72x FWk5kLheKK7ZWRhpEHRXH3TSxyFnUwf282mQLS6Euz/iKJ3w9lVEAzsgEfXMc4uWBVSV YSKPFkabNCfYYuTva4MfVv33LvDatYa5AupSrEc21PCnaiHBbGQZkLxRW5Hdl2b7yyae vXf6FdLbSfsViXDsqmhnburjaqi19Fh03O1AVg66z9FDyy417g7VzFoNfb4+IPwwnqcM Pfqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jeW6OJcZaT3D0Ifh+ovuyXecGgo3ptPQ+fpuDeZafCI=; fh=HPTw6VFbYodaXkfmpNWLMOU0YFskeRZiJfoAY5kLAwo=; b=hrpDevjyrS2bCdnoNuH8gq+IMs1tBE0Jbuad5uWNMCuv6nNuDsUIjgFtVUZPpkPygD VPTUC1XNoZm5yqA8ESnkxBdsrpwiOHv+rf5vUtfu/25dn6JqCaY1+LZoYC15J/9f9dlj lLhvL2eUddVlgPEO5EWF3SVpR9U4r8kWiRoK5Rn6q7Yznd4V0klbdH42ixN1DhQGu6lL 7SzLZJpjb7DEOEY/m6y1OGgc1GIrgnQNUpywm+xpiSPoi/wfGNXdUfjUrlQT86A74gOh f/GStW738suEEIxtpxRCN5gKTcKWnQCe6seDpnVcB0NCbzM0SJRlmGmGxrM4Kd4UJdFc q1aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=J0f1v7JF; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-82686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82686-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u136-20020a63798e000000b005d8b547307bsi4802800pgc.575.2024.02.26.20.42.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 20:42:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@darkphysics.net header.s=google header.b=J0f1v7JF; arc=pass (i=1 spf=pass spfdomain=darkphysics.net dkim=pass dkdomain=darkphysics.net); spf=pass (google.com: domain of linux-kernel+bounces-82686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82686-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CD33B286F9C for ; Tue, 27 Feb 2024 04:42:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35384537EF; Tue, 27 Feb 2024 04:42:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b="J0f1v7JF" Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (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 D06EC52F8D for ; Tue, 27 Feb 2024 04:42:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709008928; cv=none; b=Z+z3W9ZQgYPTzhWcl0mHB2JlqxXo0Bvwwfgi+EQkoiy6QeqrB0ZbwioTne7vhtpVaXKI++cHO6rU2F1OoTvaNNc6xOwZ3d8nHOHhrTZ4N/x1eSUbzbFkxFnAUeDybcmy75BSB6/0K7cAsbY/IlYzNTAm+7hTsi1DlIDgoDXwVeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709008928; c=relaxed/simple; bh=7LIDCeeXftRipDweuLYYHyh0jPpG2lXCLfRAMbzxrKQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ttZ0UuJdWCOQwCKw4XJOcdBmoo11qFXruKFhoLf86lmGoNn5GSrQVvYyhatwE8930yYDPBxW7NStycVQOWoGFfk7NCsINWjebhnPIn5dQBTIzG/+B7Z5bicazac6Y/FPOmmKNoaC4ihdWigvMAUm3WFtMXd4S4BIhAKWeUaFXio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net; spf=pass smtp.mailfrom=darkphysics.net; dkim=pass (2048-bit key) header.d=darkphysics.net header.i=@darkphysics.net header.b=J0f1v7JF; arc=none smtp.client-ip=209.85.166.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=darkphysics.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=darkphysics.net Received: by mail-il1-f176.google.com with SMTP id e9e14a558f8ab-363bdac74c6so10269065ab.2 for ; Mon, 26 Feb 2024 20:42:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkphysics.net; s=google; t=1709008926; x=1709613726; 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=jeW6OJcZaT3D0Ifh+ovuyXecGgo3ptPQ+fpuDeZafCI=; b=J0f1v7JF4MJCrQIAGXtPIslRn06hO3W2EnkBV9RJp9MF8e+eLIAKpgfRgTgiSufuz+ cRV/wceIW2+RTYwaf8FRgeJK0jZ/RQ1uiiZLZcAfYpTdqehIomTselKPOR9/6u9Znya1 DXammF3WKSe4NA3t3Vk4kx3lPh2RZfHrXfxh0j3vH1e4Xh6lKqyykkSo+I4/H6+Qppxh /jdSROnGyaKmKk3cwFnK0FG9krxpNE1tENnlw/UsxNqBlSgYn0lhGmuYqnS4Q1emhGad mM46FWprI95w/M230qj3E22pTzbYSft2Ca8v/gnbniHQL8AUecOZrDt8trw6IihnDWN1 phwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709008926; x=1709613726; 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=jeW6OJcZaT3D0Ifh+ovuyXecGgo3ptPQ+fpuDeZafCI=; b=GxjzAgx5U4e6Rq7zz/st7GJmVH6b3QaIrjhNawElGr2ABhTsn2vk/6Ql0UEISl/H0M A0y+AWAZ3awwkPw2GvW+/2pt88PvIc773JMrITb8XH84Yb+UzAopIsHfqdkCHmwTOs0Z PFrWyy6gxRegIXwjw8mcu+cW97PP30+KO1fnmP3baKXJCrX9BTGyqBaGElB78O5strnA uUCdPnA0CQ0xSQa4R9qKsAJh2boP64wgyoVOnZZ//qQo6t9D+7liJErtC64JaeIhEGED nvikGcw5KOt1Srpp+GYe6fXJWMDj3wH3ogGEdyOfow87OK1mXqmPBswNspGbXBGa2M/f 20yg== X-Forwarded-Encrypted: i=1; AJvYcCXlvyyfgkhnUvh526L6dHkr8qbt7KziBbiS739+/PxDtPb9Xl8iuBhvKwdlfj4mxMGym/4aWtihANv9UylLkOMJu/G+8mW7fOhaKp/W X-Gm-Message-State: AOJu0YxEa8ncjusvO0ETrzzK4boMyMjVH6jRwo0OG1GKhKbS7O8imrbC kGFrLEwNaYHByewUn8yYJ9Dp+OKRI8YARkZd9j0Y0uvMgP+1287n0oNcpGofp1Q= X-Received: by 2002:a05:6e02:6c2:b0:365:ac37:cb85 with SMTP id p2-20020a056e0206c200b00365ac37cb85mr260167ils.3.1709008926066; Mon, 26 Feb 2024 20:42:06 -0800 (PST) Received: from oatmeal.darkphysics (c-76-146-178-2.hsd1.wa.comcast.net. [76.146.178.2]) by smtp.gmail.com with ESMTPSA id e30-20020aa798de000000b006e4ecc3e394sm4899782pfm.79.2024.02.26.20.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 20:42:05 -0800 (PST) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 04/20] Staging: rtl8192e: Rename variable PMKIDList Date: Mon, 26 Feb 2024 20:41:41 -0800 Message-Id: <20240227044157.407379-5-tdavies@darkphysics.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240227044157.407379-1-tdavies@darkphysics.net> References: <20240227044157.407379-1-tdavies@darkphysics.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename variable PMKIDList to pmkid_list to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies --- v2: Fix checkpatch alignment warning drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 30b9178071ae..a00db0d153da 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1281,7 +1281,7 @@ struct rtllib_device { struct sw_cam_table swcamtable[TOTAL_CAM_ENTRY]; - struct rt_pmkid_list PMKIDList[NUM_PMKID_CACHE]; + struct rt_pmkid_list pmkid_list[NUM_PMKID_CACHE]; /* Fragmentation structures */ struct rtllib_frag_entry frag_cache[17][RTLLIB_FRAG_CACHE_LEN]; diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 607122ab4b00..a847b6505c42 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -669,8 +669,8 @@ static inline int sec_is_in_pmkid_list(struct rtllib_device *ieee, u8 *bssid) int i = 0; do { - if ((ieee->PMKIDList[i].used) && - (memcmp(ieee->PMKIDList[i].bssid, bssid, ETH_ALEN) == 0)) + if ((ieee->pmkid_list[i].used) && + (memcmp(ieee->pmkid_list[i].bssid, bssid, ETH_ALEN) == 0)) break; i++; } while (i < NUM_PMKID_CACHE); @@ -881,7 +881,7 @@ rtllib_association_req(struct rtllib_network *beacon, tag = skb_put(skb, 18); *tag = 1; *(tag + 1) = 0; - memcpy((tag + 2), &ieee->PMKIDList[pmk_cache_idx].PMKID, + memcpy((tag + 2), &ieee->pmkid_list[pmk_cache_idx].PMKID, 16); } } -- 2.39.2