From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.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 F14E739A7EF for ; Tue, 18 Aug 2026 08:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787041623; cv=none; b=ojLnt+9tli03MkIakFErlQEyOE3k3wSKX081gS/QnJ8eCwj9HkuiD3mqYmu8w6w6N+SyOPytCdW4mcdnTynhwpEGIRDfvEP128cVaT+6OCoLaPAblhqMPmPqLy3JH3GPrUOz2856lX+3we74LPaBu6mvIFdDtJmylbnc7MQnbe4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787041623; c=relaxed/simple; bh=DdkxBG1efUNekmZLsmzv0eW4BSv7Dzt0M646ZpAiFG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VEYQQzhKwr/S7wsv2fL9uujCXMLdzb5nE2MApPTFVlDprW9GEHYyW5UR6MjsoF9/yFqeof5OLgRbdxoOFR2wxdhzkuuWle/MnzBNHxTAk4VvmIF3PxBLv43NL9NKAInyZ+bvq0q3XJNddKRG1JOzJFTPWMDsl9FZAI+2gFm5Gms= 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=er3HzTOG; arc=none smtp.client-ip=209.85.214.176 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="er3HzTOG" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2cab973140bso65931975ad.3 for ; Tue, 18 Aug 2026 01:27:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787041621; x=1787646421; 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:content-type; bh=mJzBXVHnv2vJbFm56kn0k+bdcitJZTY8a+XW3Ig4bDI=; b=er3HzTOGXCfZzZBRbCSOl1k45gU/eoUx5cnxRxveyi20cCxsukEHYTlfDAa69egEra bFCIzmlp0GRZfQG+XOjEmQoXGqZ/V5HMmDmKjo0Zgo34ZWxk3oGdffy/zfkRVbUwBeH2 qAEpEZ+xmV0CJa8wfnEX0RfCkZMAV2cGAggVCX+HgTRGBnj/7i7iMC+J+h92x3g0Xrla jiJ6CCtUu8s++8zC0qUm07b/oA/UKa0d4bRkFar9Q7EGb4jua8/rysiYizOBNZRp2ALO trz2SUwIlc+iy9aGRiZUiRJ+o14hUv3+16my75b5nNS23bV356ocwErOKnTqBEopcVwy oGnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787041621; x=1787646421; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mJzBXVHnv2vJbFm56kn0k+bdcitJZTY8a+XW3Ig4bDI=; b=Ss3+/qSwQPaM4p1/lalDfdCI4mxs2dslp+syWkJqAVqB/2a9rEuSLJth7iGfjYy8aG JYNqQ1sqE2Y12WSCF0e5qVGInChW/XALPwYa7Urkvw3AXmb3zRZ9iRRY/WUp+IId6hnk y4CgufhIqOM+GGZOgPNj5bXulnfgXJKOf6ZVXp7DeNUkU9VOKSTFlw2RioPEpV4rsfES Ua2+BTpLIIPDDDTwedPs10mY81mTHnQLpqCrkNkgwRLhkmgxYkfh6Wp5+ecdeES32keJ nrijRgBtV3AHW+I+n8RCIjtXv2Se0N5Sz2dlzX+esyWNZYHLogaVEZpSAe+cIwHHtdwr gxRw== X-Forwarded-Encrypted: i=1; AHgh+Rrb2FRA8BgeSQsR5oGOVzh5swsXxhRHAdPxP4pWhGpGF+PKvZUCd9+D3PcjROv+g3nmozCSQ0Y1LEqGUpM=@vger.kernel.org X-Gm-Message-State: AOJu0YxEtPngIlH6XTZGUBeMseFDreUhqMRPiYPcyVs4yt7lNycOODtX aqwtsSo6y0ebLTKayz10u8SBJN2sPtA+G7djS4gRPPUkQ6tkzM86iZNg X-Gm-Gg: AR+sD11wX5MM8nOA86FFhp1O3EF40Knmov6Bq/nSHRwHXU9nVYCFODkfHIxCEI/ZzQz n0oYVnkxquao5zvWg8bAYJ1tHER3i+bjcRHFQ0OuGcHrjsG6k80VTBZLviSwihG37+CYlxS4voR kPW6TzpNWASmr6P8Ba9ISscBcjqb1vJ4LBgsy9TZfFJbRnxi0OutbEWgxwqr/ljsnZ7BFC+2RIM 9sMHjdD2U/tIdQyBamcJ5WonjPiOxwzmvPo/cQnrC6y7K8Z48e3uqI/EJRjy0cmu5+8znY/b6UE f0m7Oz3kIMpCvH2hb4jlvjRjPBNqkmr9euvhTfYUoJf/Z4geNvkQ3eEEH79C9FgBSnVDgMBWhk5 yZNIajSS6hSec6kIlztFEG75/nkKWbI/I67V9U9y4ufBsJVmHlLQiHVUmJ17jhbm7riJ3cs+ikl 14YJZbVrxw7mP9YsnjY5gefA4zNRkKHQE4ql3Aq03o8PKHa3evxHZQjmB+ympFOgy3K1HXKfyO8 hBe2yZkjjv0WG+zLJGwlLRe8AA= X-Received: by 2002:a05:6a21:10a:b0:3cb:853e:850e with SMTP id adf61e73a8af0-3cc71b7acbamr41789411637.13.1787041621355; Tue, 18 Aug 2026 01:27:01 -0700 (PDT) Received: from amd.ban-spse ([165.204.217.251]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3267be8e5c8sm15480740eec.16.2026.08.18.01.26.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2026 01:27:00 -0700 (PDT) From: Malathi To: Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Malathi Subject: [PATCH 2/2] staging: rtl8723bs: remove unusual 'NDIS_802_11_RATES_EX' type Date: Tue, 18 Aug 2026 08:26:22 +0000 Message-ID: <20260818082622.1186194-2-malathi.a2000@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260818082622.1186194-1-malathi.a2000@gmail.com> References: <20260818082622.1186194-1-malathi.a2000@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: 8bit Remove the 'NDIS_802_11_RATES_EX' type and replace the variables of this type with an array of 'u8', which makes the code more understandable and gets rid of an unnecessary 'typedef'. 'u8' and the 'unsigned char' the typedef expanded to are the same type and the array length is unchanged, so there is no functional change. Also update the comment in wlan_bssdef.h that referred to the removed type. Signed-off-by: Malathi --- drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 2 +- drivers/staging/rtl8723bs/include/wlan_bssdef.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h index cb23c6939bfc..61ce0f8708a6 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h @@ -253,7 +253,7 @@ struct FW_Sta_Info { u32 status; u32 rx_pkt; u32 retry; - NDIS_802_11_RATES_EX SupportedRates; + u8 SupportedRates[NDIS_802_11_LENGTH_RATES_EX]; }; /* diff --git a/drivers/staging/rtl8723bs/include/wlan_bssdef.h b/drivers/staging/rtl8723bs/include/wlan_bssdef.h index 4b14eb0caa03..791eee4e75b3 100644 --- a/drivers/staging/rtl8723bs/include/wlan_bssdef.h +++ b/drivers/staging/rtl8723bs/include/wlan_bssdef.h @@ -14,8 +14,6 @@ #define NDIS_802_11_LENGTH_SSID 32 #define NDIS_802_11_LENGTH_RATES_EX 16 -typedef unsigned char NDIS_802_11_RATES_EX[NDIS_802_11_LENGTH_RATES_EX]; /* Set of 16 data rates */ - struct ndis_802_11_ssid { u32 ssid_length; u8 ssid[32]; @@ -64,7 +62,7 @@ struct ndis_80211_var_ie { * ETH_ALEN + 2 + * sizeof (struct ndis_802_11_ssid) + sizeof (u32) + * sizeof (long) + sizeof (enum ndis_802_11_network_type) + - * sizeof (struct ndis_802_11_conf) + sizeof (NDIS_802_11_RATES_EX) + ie_length + * sizeof (struct ndis_802_11_conf) + NDIS_802_11_LENGTH_RATES_EX + ie_length * * Except for ie_length, all other fields are fixed length. Therefore, we can * define a macro to present the partial sum. @@ -160,7 +158,7 @@ struct wlan_bssid_ex { enum ndis_802_11_network_type network_type_in_use; struct ndis_802_11_conf configuration; enum ndis_802_11_network_infrastructure infrastructure_mode; - NDIS_802_11_RATES_EX supported_rates; + u8 supported_rates[NDIS_802_11_LENGTH_RATES_EX]; struct wlan_phy_info phy_info; u32 ie_length; u8 ies[MAX_IE_SZ]; /* timestamp, beacon interval, and capability information) */ -- 2.43.0