linux.git
15 months agoStaging: rtl8192e: Rename variable QueryRate
Tree Davies [Sat, 23 Dec 2023 01:59:38 +0000 (17:59 -0800)]
Staging: rtl8192e: Rename variable QueryRate

Rename variable QueryRate to query_rate to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-17-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Rename function rtllib_TURBO_Info()
Tree Davies [Sat, 23 Dec 2023 01:59:37 +0000 (17:59 -0800)]
Staging: rtl8192e: Rename function rtllib_TURBO_Info()

Rename function rtllib_TURBO_Info to rtllib_turbo_info to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-16-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Rename function rtllib_WMM_Info()
Tree Davies [Sat, 23 Dec 2023 01:59:36 +0000 (17:59 -0800)]
Staging: rtl8192e: Rename function rtllib_WMM_Info()

Rename function rtllib_WMM_Info to rtllib_wmm_info to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-15-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Rename function rtllib_MFIE_Grate()
Tree Davies [Sat, 23 Dec 2023 01:59:35 +0000 (17:59 -0800)]
Staging: rtl8192e: Rename function rtllib_MFIE_Grate()

Rename function rtllib_MFIE_Grate to rtllib_mfie_grate to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-14-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Rename function rtllib_MFIE_Brate()
Tree Davies [Sat, 23 Dec 2023 01:59:34 +0000 (17:59 -0800)]
Staging: rtl8192e: Rename function rtllib_MFIE_Brate()

Rename function rtllib_MFIE_Brate to rtllib_mfie_brate to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-13-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_new_net()
Tree Davies [Sat, 23 Dec 2023 01:59:33 +0000 (17:59 -0800)]
Staging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_new_net()

Join 2 lines to fix Warning: Lines should not end with a '('

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-12-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_xmit()
Tree Davies [Sat, 23 Dec 2023 01:59:32 +0000 (17:59 -0800)]
Staging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_xmit()

Join 2 lines to fix Warning: Lines should not end with a '('

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-11-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Fix function definition broken across multiple lines
Tree Davies [Sat, 23 Dec 2023 01:59:31 +0000 (17:59 -0800)]
Staging: rtl8192e: Fix function definition broken across multiple lines

Join 4 lines, so that function definition resides on a single line, to fix
Warning: Lines should not end with a '('

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-10-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Fix statement broken across 2 lines in rtllib_rx_assoc_resp()
Tree Davies [Sat, 23 Dec 2023 01:59:30 +0000 (17:59 -0800)]
Staging: rtl8192e: Fix statement broken across 2 lines in rtllib_rx_assoc_resp()

Join 2 lines, so that statment resides on one line, to fix Warning: Lines
should not end with a '('

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-9-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Fixup multiple assinment in init_mgmt_queue()
Tree Davies [Sat, 23 Dec 2023 01:59:29 +0000 (17:59 -0800)]
Staging: rtl8192e: Fixup multiple assinment in init_mgmt_queue()

Break multiple assignment into 2 assignment statements to fix checkpatch
Warning: multiple assignments should be avoided.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-8-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req()
Tree Davies [Sat, 23 Dec 2023 01:59:28 +0000 (17:59 -0800)]
Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req()

Remove parnthesis to fix checkpatch Warning:
Unnecessary parentheses around ieee->ht_info->SelfHTCap

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-7-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Remove unnecessary parenthesis in rtllib_ap_sec_type()
Tree Davies [Sat, 23 Dec 2023 01:59:27 +0000 (17:59 -0800)]
Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_ap_sec_type()

Remove parnthesis to fix checkpatch Warning:
Unnecessary parentheses around ieee->wpa_ie[14]

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-6-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Remove unnecessary parenthesis in rtllib_rx_assoc_resp()
Tree Davies [Sat, 23 Dec 2023 01:59:26 +0000 (17:59 -0800)]
Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_rx_assoc_resp()

Remove parentheses to fix checkpatch Warning:
Unnecessary parentheses around resp->info_element[0].id

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-5-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req()
Tree Davies [Sat, 23 Dec 2023 01:59:25 +0000 (17:59 -0800)]
Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req()

Remove parentheses to fix checkpatch Warning:
Unnecessary parentheses around hdr->info_element[0].id

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-4-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agoStaging: rtl8192e: Remove unnecessary braces from MgntQuery_MgntFrameTxRate()
Tree Davies [Sat, 23 Dec 2023 01:59:23 +0000 (17:59 -0800)]
Staging: rtl8192e: Remove unnecessary braces from MgntQuery_MgntFrameTxRate()

Remove braces from if statement to fix checkpatch WARNING:
'braces {} are not necessary for single statement blocks'

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-2-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agostaging: rtl8712: fix open parentheses alignment
Ryan England [Thu, 21 Dec 2023 20:22:48 +0000 (20:22 +0000)]
staging: rtl8712: fix open parentheses alignment

Adhere to Linux kernel coding style.

Reported by checkpatch:

CHECK: Alignment should match open parenthesis

Signed-off-by: Ryan England <rcengland@gmail.com>
Link: https://lore.kernel.org/r/ZYSemFbzTlgLROMc@kernel.ryanengland.xyz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agostaging: rtl8192e: rename variable ePeerHTSpecVer
Gary Rookard [Thu, 21 Dec 2023 18:34:13 +0000 (13:34 -0500)]
staging: rtl8192e: rename variable ePeerHTSpecVer

Coding style issue, checkpatch Avoid CamelCase,
rename it. ePeerHTSpecVer -> peer_ht_spec_ver

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231221183413.8349-6-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agostaging: rtl8192e: rename variable HTSetConnectBwModeCallback
Gary Rookard [Thu, 21 Dec 2023 18:34:12 +0000 (13:34 -0500)]
staging: rtl8192e: rename variable HTSetConnectBwModeCallback

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTSetConnectBwModeCallback -> ht_set_connect_bw_mode_callback

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231221183413.8349-5-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agostaging: rtl8192e: rename variable HTCCheck
Gary Rookard [Thu, 21 Dec 2023 18:34:11 +0000 (13:34 -0500)]
staging: rtl8192e: rename variable HTCCheck

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTCCheck -> ht_c_check

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231221183413.8349-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agostaging: rtl8192e: rename variable HTResetSelfAndSavePeerSetting
Gary Rookard [Thu, 21 Dec 2023 18:34:10 +0000 (13:34 -0500)]
staging: rtl8192e: rename variable HTResetSelfAndSavePeerSetting

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTResetSelfAndSavePeerSetting -> ht_reset_self_and_save_peer_setting

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231221183413.8349-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agostaging: rtl8192e: rename variable HTInitializeBssDesc
Gary Rookard [Thu, 21 Dec 2023 18:34:09 +0000 (13:34 -0500)]
staging: rtl8192e: rename variable HTInitializeBssDesc

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTInitializeBssDesc -> ht_initialize_bss_desc

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231221183413.8349-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 months agostaging: vme_user: Fix the issue of return the wrong error code
Piro Yang [Tue, 19 Dec 2023 17:04:47 +0000 (01:04 +0800)]
staging: vme_user: Fix the issue of return the wrong error code

Fix the issue of returning the -ENOSYS error code when an error occurs.

The error code of -ENOSYS indicates Invalid system call number, but
there is not system call error. So replace -ENOSYS error code by the
return -EINVAL error code.

Signed-off-by: Piro Yang <piroyangg@gmail.com>
Link: https://lore.kernel.org/r/20231219170447.51237-1-piroyangg@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Rename variable pBaStartSeqCtrl
Tree Davies [Sun, 17 Dec 2023 23:55:20 +0000 (15:55 -0800)]
Staging: rtl8192e: Rename variable pBaStartSeqCtrl

Rename variable pBaStartSeqCtrl to ba_start_seq_ctrl to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231217235520.30377-7-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Rename variable pDelBaParamSet
Tree Davies [Sun, 17 Dec 2023 23:55:18 +0000 (15:55 -0800)]
Staging: rtl8192e: Rename variable pDelBaParamSet

Rename variable pDelBaParamSet to del_ba_param_set to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231217235520.30377-5-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Rename variable ucTSID
Tree Davies [Sun, 17 Dec 2023 23:55:17 +0000 (15:55 -0800)]
Staging: rtl8192e: Rename variable ucTSID

Rename variable ucTSID to ts_id to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231217235520.30377-4-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Rename array variable TxTsRecord
Tree Davies [Sun, 17 Dec 2023 23:55:16 +0000 (15:55 -0800)]
Staging: rtl8192e: Rename array variable TxTsRecord

Rename array variable TxTsRecord to tx_ts_records to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231217235520.30377-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Rename array variable RxTsRecord
Tree Davies [Sun, 17 Dec 2023 23:55:15 +0000 (15:55 -0800)]
Staging: rtl8192e: Rename array variable RxTsRecord

Rename array variable RxTsRecord to rx_ts_records to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231217235520.30377-2-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agodrivers: staging: rtl8712: Fixes spelling mistake in rtl871x_mp_phy_regdef.h
Dipendra Khadka [Sun, 17 Dec 2023 16:54:43 +0000 (16:54 +0000)]
drivers: staging: rtl8712: Fixes spelling mistake in rtl871x_mp_phy_regdef.h

The script checkpatch.pl reported spelling error
in rtl871x_mp_phy_regdef.h as below:

'''
WARNING: 'Tranceiver' may be misspelled - perhaps 'Transceiver'?
#129:
#define rFPGA0_XA_LSSIReadBack          0x8a0   /* Tranceiver LSSI Readback */
                                                   ^^^^^^^^^^
'''

This patch corrects a spelling error,
changing "Tranceiver" to "Transceiver."

Signed-off-by: Dipendra Khadka <kdipendra88@gmail.com>
Link: https://lore.kernel.org/r/20231217165444.448133-1-kdipendra88@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: rename linked list reference: List
Tree Davies [Sat, 16 Dec 2023 20:20:38 +0000 (12:20 -0800)]
Staging: rtl8192e: rename linked list reference: List

Rename variable List to list, to fix Avoid CamelCase checkpatch warning.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231216202038.10777-1-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable HTFilterMCSRate
Gary Rookard [Sat, 16 Dec 2023 12:53:03 +0000 (07:53 -0500)]
staging: rtl8192e: renamed variable HTFilterMCSRate

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTFilterMCSRate -> ht_filter_mcs_rate

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231216125303.3404-5-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTGetHighestMCSRate
Gary Rookard [Sat, 16 Dec 2023 12:53:02 +0000 (07:53 -0500)]
staging: rtl8192e: rename variable HTGetHighestMCSRate

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTGetHighestMCSRate -> ht_get_highest_mcs_rate

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231216125303.3404-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable pCapELE
Gary Rookard [Sat, 16 Dec 2023 12:53:01 +0000 (07:53 -0500)]
staging: rtl8192e: rename variable pCapELE

Coding style issue, checkpatch Avoid CamelCase,
rename it. pCapELE -> cap_ele

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231216125303.3404-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable pHT
Gary Rookard [Sat, 16 Dec 2023 12:53:00 +0000 (07:53 -0500)]
staging: rtl8192e: rename variable pHT

Coding style issue, checkpatch Avoid CamelCase,
rename it. pHT -> ht

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231216125303.3404-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTInitializeHTInfo
Gary Rookard [Wed, 13 Dec 2023 17:54:59 +0000 (12:54 -0500)]
staging: rtl8192e: rename variable HTInitializeHTInfo

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTInitializeHTInfo -> ht_initialize_ht_info

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231213175459.5425-6-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTOnAssocRsp
Gary Rookard [Wed, 13 Dec 2023 17:54:58 +0000 (12:54 -0500)]
staging: rtl8192e: rename variable HTOnAssocRsp

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTOnAssocRsp -> ht_on_assoc_rsp

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231213175459.5425-5-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTSetConnectBwMode
Gary Rookard [Wed, 13 Dec 2023 17:54:57 +0000 (12:54 -0500)]
staging: rtl8192e: rename variable HTSetConnectBwMode

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTSetConnectBwMode -> ht_set_connect_bw_mode

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231213175459.5425-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove constant variable reg_rx_reorder_enable
Philipp Hortmann [Wed, 13 Dec 2023 16:52:55 +0000 (17:52 +0100)]
staging: rtl8192e: Remove constant variable reg_rx_reorder_enable

Remove constant variable reg_rx_reorder_enable and replace it at the place
of usage with the value.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/c9bf183b78bfe1fc242dc496786cd0c9f20262a4.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove constant variable reg_rt2rt_aggregation
Philipp Hortmann [Wed, 13 Dec 2023 16:52:46 +0000 (17:52 +0100)]
staging: rtl8192e: Remove constant variable reg_rt2rt_aggregation

ht_info->reg_rt2rt_aggregation is set to 1 and unchanged. Therefore all
equations result accordingly and ht_info->reg_rt2rt_aggregation can be
removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/07a0954cc6fd730d9d42054fa36346d1de07cd06.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ht_info->RT2RT_HT_Mode
Philipp Hortmann [Wed, 13 Dec 2023 16:52:38 +0000 (17:52 +0100)]
staging: rtl8192e: Remove variable ht_info->RT2RT_HT_Mode

Remove variable ht_info->RT2RT_HT_Mode as it is always set but never
evaluated.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/b6253e56cdb346045a234d1f545d7ef92cdd220d.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ht_info->mpdu_density
Philipp Hortmann [Wed, 13 Dec 2023 16:52:29 +0000 (17:52 +0100)]
staging: rtl8192e: Remove variable ht_info->mpdu_density

ht_info->mpdu_density is set to 0 and unchanged. Therefore all equations
result accordingly and ht_info->forced_short_gi can be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ef90d31e0e8281235ae4d138ce2de26e35c1bbd1.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove unused variable ht_info->amsdu_support
Philipp Hortmann [Wed, 13 Dec 2023 16:52:21 +0000 (17:52 +0100)]
staging: rtl8192e: Remove unused variable ht_info->amsdu_support

Remove unused variable ht_info->amsdu_support.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/b3ea8ddd16a753d9ee1ee8b99e31e990ce89133b.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove constant variable forced_short_gi
Philipp Hortmann [Wed, 13 Dec 2023 16:52:12 +0000 (17:52 +0100)]
staging: rtl8192e: Remove constant variable forced_short_gi

ht_info->forced_short_gi is set to 0 and unchanged. Therefore all equations
result accordingly and ht_info->forced_short_gi can be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/fc5711032c658af6ae6c5a7a98c52871c29f8c33.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove constant variable peer_mimo_ps
Philipp Hortmann [Wed, 13 Dec 2023 16:52:04 +0000 (17:52 +0100)]
staging: rtl8192e: Remove constant variable peer_mimo_ps

MimoPwrSave is set to 3 and not changed. peer_mimo_ps is set to
MimoPwrSave and not changed. All evaluations of peer_mimo_ps with 0 will
have a constant result and can be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/7b2ccccde769133db9365c693fdd0c42e9dc75f9.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove constant variable self_mimo_ps
Philipp Hortmann [Wed, 13 Dec 2023 16:51:54 +0000 (17:51 +0100)]
staging: rtl8192e: Remove constant variable self_mimo_ps

Remove constant variable self_mimo_ps and replace it at the place of
usage with the value.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/9e1bec657ddb22eec54e441a4341ddbe4ed7568e.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove unused variable nMaxAMSDUSize
Philipp Hortmann [Wed, 13 Dec 2023 16:51:45 +0000 (17:51 +0100)]
staging: rtl8192e: Remove unused variable nMaxAMSDUSize

Remove unused variables nMaxAMSDUSize and amsdu_max_size.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/4df74fda70535ddbdfc90ba7c98e9d4a773f944d.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable bCurrent_AMSDU_Support
Philipp Hortmann [Wed, 13 Dec 2023 16:51:32 +0000 (17:51 +0100)]
staging: rtl8192e: Remove variable bCurrent_AMSDU_Support

bCurrent_AMSDU_Support and nCurrent_AMSDU_MaxSize are set but never
evaluated.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/d2711450dbc62974162abd4db070e34c9828997d.1702406712.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable bAssoc
Gary Rookard [Tue, 12 Dec 2023 16:56:35 +0000 (11:56 -0500)]
staging: rtl8192e: rename variable bAssoc

Coding style issue, checkpatch Avoid CamelCase,
rename it. bAssoc -> assoc

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231212165637.17618-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable IsEncrypt
Gary Rookard [Tue, 12 Dec 2023 16:56:34 +0000 (11:56 -0500)]
staging: rtl8192e: rename variable IsEncrypt

Coding style issue, checkpatch Avoid CamelCase,
rename it. IsEncrypt -> is_encrypt

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231212165637.17618-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable posHTCap
Gary Rookard [Tue, 12 Dec 2023 16:56:33 +0000 (11:56 -0500)]
staging: rtl8192e: rename variable posHTCap

Coding style issue, checkpatch Avoid CamelCase,
rename it. posHTCap -> pos_ht_cap

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231212165637.17618-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Remove variable macId
Tree Davies [Sun, 10 Dec 2023 19:37:05 +0000 (11:37 -0800)]
Staging: rtl8192e: Remove variable macId

Remove variable macId as it is defined but never used.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231210193705.2131807-5-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Remove variable bEncrypt
Tree Davies [Sun, 10 Dec 2023 19:37:04 +0000 (11:37 -0800)]
Staging: rtl8192e: Remove variable bEncrypt

Remove variable bEncrypt as it is defined but never used.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231210193705.2131807-4-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Remove variable bLastSeg
Tree Davies [Sun, 10 Dec 2023 19:37:03 +0000 (11:37 -0800)]
Staging: rtl8192e: Remove variable bLastSeg

Remove variable bLastSeg as it is defined but never used.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231210193705.2131807-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Remove variable bFirstSeg
Tree Davies [Sun, 10 Dec 2023 19:37:02 +0000 (11:37 -0800)]
Staging: rtl8192e: Remove variable bFirstSeg

Remove variable bFirstSeg as it is defined but never used.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231210193705.2131807-2-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HT_PickMCSRate
Gary Rookard [Mon, 11 Dec 2023 00:13:35 +0000 (19:13 -0500)]
staging: rtl8192e: rename variable HT_PickMCSRate

Coding style issue, checkpatch Avoid CamelCase,
rename it. HT_PickMCSRate -> ht_pick_mcs_rate

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231211001335.26169-6-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTConstructRT2RTAggElement
Gary Rookard [Mon, 11 Dec 2023 00:13:34 +0000 (19:13 -0500)]
staging: rtl8192e: rename variable HTConstructRT2RTAggElement

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTConstructRT2RTAggElement -> ht_construct_rt2rt_agg_element

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231211001335.26169-5-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTConstructCapabilityElement
Gary Rookard [Mon, 11 Dec 2023 00:13:33 +0000 (19:13 -0500)]
staging: rtl8192e: rename variable HTConstructCapabilityElement

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTConstructCapabilityElement -> ht_construct_capability_element

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231211001335.26169-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTResetIOTSetting
Gary Rookard [Mon, 11 Dec 2023 00:13:32 +0000 (19:13 -0500)]
staging: rtl8192e: rename variable HTResetIOTSetting

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTResetIOTSetting -> ht_reset_iot_setting

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231211001335.26169-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: rename variable HTIOTActDetermineRaFunc
Gary Rookard [Mon, 11 Dec 2023 00:13:31 +0000 (19:13 -0500)]
staging: rtl8192e: rename variable HTIOTActDetermineRaFunc

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTIOTActDetermineRaFunc -> ht_iot_act_determine_ra_function

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231211001335.26169-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove struct ht_info_ele SelfHTInfo
Philipp Hortmann [Sun, 10 Dec 2023 15:27:03 +0000 (16:27 +0100)]
staging: rtl8192e: Remove struct ht_info_ele SelfHTInfo

Remove struct ht_info_ele SelfHTInfo as it is unused.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/e8692d40b3cba3de1b4ceb8e72186e8d40afec73.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ht_info->bCurSuppCCK
Philipp Hortmann [Sun, 10 Dec 2023 15:26:58 +0000 (16:26 +0100)]
staging: rtl8192e: Remove variable ht_info->bCurSuppCCK

ht_info->bCurSuppCCK is set to 1 and unchanged. Therefore all equations
result accordingly and ht_info->bCurSuppCCK can be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/159a1a84c7bc90042bf1618a067f02ac123dd15d.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove equation with pPeerHTCap->DssCCk
Philipp Hortmann [Sun, 10 Dec 2023 15:26:51 +0000 (16:26 +0100)]
staging: rtl8192e: Remove equation with pPeerHTCap->DssCCk

Remove equation with pPeerHTCap->DssCCk as it is set to 1 and unchanged.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/16ec7f928d1c51ffe68b9a1a68d09abaaa79924a.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ForcedAMSDUMode
Philipp Hortmann [Sun, 10 Dec 2023 15:26:44 +0000 (16:26 +0100)]
staging: rtl8192e: Remove variable ForcedAMSDUMode

ForcedAMSDUMode is set to 1 and then never evaluated.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ae8ea27e2c3708754b798f09ba43ed50a24b8a55.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ForcedAMPDUMode
Philipp Hortmann [Sun, 10 Dec 2023 15:26:38 +0000 (16:26 +0100)]
staging: rtl8192e: Remove variable ForcedAMPDUMode

ForcedAMPDUMode is set to 0 and unchanged. Therefore all equations result
accordingly and ForcedAMPDUMode can be removed. As a result label
FORCED_AGG_SETTING is unused and can be removed as well.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/5bf740a2da78ec3b54249a30cbee70301b37e7eb.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ht_info->reg_short_gi_40mhz
Philipp Hortmann [Sun, 10 Dec 2023 15:26:30 +0000 (16:26 +0100)]
staging: rtl8192e: Remove variable ht_info->reg_short_gi_40mhz

ht_info->reg_short_gi_40mhz is set to 1 and unchanged. Therefore all
equations result accordingly and ht_info->reg_short_gi_40mhz can be
removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/255039e0cb27582a98a0b86340dfe88f14c08a76.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ht_info->reg_short_gi_20mhz
Philipp Hortmann [Sun, 10 Dec 2023 15:26:24 +0000 (16:26 +0100)]
staging: rtl8192e: Remove variable ht_info->reg_short_gi_20mhz

ht_info->reg_short_gi_20mhz is set to 1 and unchanged. Therefore all
equations result accordingly and ht_info->reg_short_gi_20mhz can be
removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/a2778d12a2bb104a980a69f8eb05ba1cabf7b545.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ht_info->reg_supp_cck
Philipp Hortmann [Sun, 10 Dec 2023 15:26:18 +0000 (16:26 +0100)]
staging: rtl8192e: Remove variable ht_info->reg_supp_cck

ht_info->reg_supp_cck is set to 1 and unchanged. Therefore all equations
result accordingly and ht_info->reg_supp_cck can be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/2c9be9efb1c0608a7fc2658d813b9adbc1185db1.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable ht_info->reg_bw_40mhz
Philipp Hortmann [Sun, 10 Dec 2023 15:26:10 +0000 (16:26 +0100)]
staging: rtl8192e: Remove variable ht_info->reg_bw_40mhz

ht_info->reg_bw_40mhz is set to 1 and unchanged. Therefore all equations
result accordingly and ht_info->reg_bw_40mhz can be removed.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/4ff7afdc2ada8095c95f053381834cea9f5796bf.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove unused struct iw_range_with_scan_capa
Philipp Hortmann [Sun, 10 Dec 2023 15:25:58 +0000 (16:25 +0100)]
staging: rtl8192e: Remove unused struct iw_range_with_scan_capa

Remove unused struct iw_range_with_scan_capa.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/8b4532b8739ca0baa9fa7c736dab68130510ffe8.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable IOTPeer
Gary Rookard [Fri, 8 Dec 2023 01:58:27 +0000 (20:58 -0500)]
staging: rtl8192e: renamed variable IOTPeer

Coding style issue, checkpatch Avoid CamelCase,
rename it. IOTPeer -> iot_peer

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231208015827.21185-1-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable HTIOTActIsCCDFsync
Gary Rookard [Fri, 8 Dec 2023 01:55:35 +0000 (20:55 -0500)]
staging: rtl8192e: renamed variable HTIOTActIsCCDFsync

Coding style issue, checkpatch Avoid CamelCase,
rename it. HTIOTActIsCCDFsync -> ht_iot_act_is_ccd_fsync

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231208015536.21013-5-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable CCKOFDMRate
Gary Rookard [Fri, 8 Dec 2023 01:55:34 +0000 (20:55 -0500)]
staging: rtl8192e: renamed variable CCKOFDMRate

Coding style issue, checkpatch avoid CamelCase,
rename it. CCKOFDMRate -> cck_of_dm_rate

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231208015536.21013-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bCurShortGI20MHz
Gary Rookard [Fri, 8 Dec 2023 01:55:33 +0000 (20:55 -0500)]
staging: rtl8192e: renamed variable bCurShortGI20MHz

Coding style issue, checkpatch Avoid CamelCase,
rename it. bCurShortGI20MHz -> cur_short_gi_20mhz

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231208015536.21013-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bCurShortGI40MHz
Gary Rookard [Fri, 8 Dec 2023 01:55:32 +0000 (20:55 -0500)]
staging: rtl8192e: renamed variable bCurShortGI40MHz

Coding style issue, checkpatch Avoid CamelCase,
rename it. bCurShortGI40MHz -> cur_short_gi_40mhz

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231208015536.21013-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove files dot11d.c and dot11d.h
Philipp Hortmann [Fri, 8 Dec 2023 18:20:04 +0000 (19:20 +0100)]
staging: rtl8192e: Remove files dot11d.c and dot11d.h

Remove files dot11d.c and dot11d.h as they are empty.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ed7de82ade0fde1835bbd88aafba74aeb128beed.1701989555.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove function dot11d_channel_map()
Philipp Hortmann [Fri, 8 Dec 2023 18:19:57 +0000 (19:19 +0100)]
staging: rtl8192e: Remove function dot11d_channel_map()

Remove function dot11d_channel_map() as it is empty.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/877c0efcf56977cbf0943b34beda4ff2ca514714.1701989555.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable dot11d_info
Philipp Hortmann [Fri, 8 Dec 2023 18:19:51 +0000 (19:19 +0100)]
staging: rtl8192e: Remove variable dot11d_info

Remove variable dot11d_info as it is unused. Remove unused struct
channel_list and empty struct rt_dot11d_info.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/2438971feb0c02c5c72776f57201a4011f249190.1701989555.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove variable channel_map
Philipp Hortmann [Fri, 8 Dec 2023 18:19:45 +0000 (19:19 +0100)]
staging: rtl8192e: Remove variable channel_map

Remove variable channel_map as it is initialized but not used. Remove
channel_array as well as it is without channel_map unused.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/19ca762b4b9d5a3e857b31c22f0688324ca3bd9d.1701989555.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: Remove function rtllib_update_active_chan_map()
Philipp Hortmann [Fri, 8 Dec 2023 18:19:32 +0000 (19:19 +0100)]
staging: rtl8192e: Remove function rtllib_update_active_chan_map()

Remove function rtllib_update_active_chan_map() as "active_channel_map"
and "channel_map" have the same content.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/bae3ddeffe96e4ac7d929127ce3a72cd23fae8dd.1701989555.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bTxEnableFwCalcDur
Gary Rookard [Wed, 6 Dec 2023 23:04:04 +0000 (18:04 -0500)]
staging: rtl8192e: renamed variable bTxEnableFwCalcDur

Coding style issue, checkpatch Avoid CamelCase,
rename it. bTxEnableFwCalcDur -> tx_enable_fw_calc_dur

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231206230404.1721-6-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable MPDU_Density
Gary Rookard [Wed, 6 Dec 2023 23:04:03 +0000 (18:04 -0500)]
staging: rtl8192e: renamed variable MPDU_Density

Coding style issue, checkpatch Avoid CamelCase,
rename it. MPDU_Density -> mpdu_density

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231206230404.1721-5-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable AMPDU_Factor
Gary Rookard [Wed, 6 Dec 2023 23:04:02 +0000 (18:04 -0500)]
staging: rtl8192e: renamed variable AMPDU_Factor

Coding style issue, checkpatch Avoid CamelCase,
rename it. AMPDU_Factor -> ampdu_factor

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231206230404.1721-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bAMPDUEnable
Gary Rookard [Wed, 6 Dec 2023 23:04:01 +0000 (18:04 -0500)]
staging: rtl8192e: renamed variable bAMPDUEnable

Coding style issue, checkpatch Avoid CamelCase,
rename it. bAMPDUEnable -> ampdu_enable

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231206230404.1721-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bAMSDU_Support
Gary Rookard [Wed, 6 Dec 2023 23:04:00 +0000 (18:04 -0500)]
staging: rtl8192e: renamed variable bAMSDU_Support

Coding style issue, checkpatch Avoid CamelCase,
rename it. bAMSDU_Suppport -> amsdu_support

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231206230404.1721-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: vchiq_dev: Use %p to log pointer address
Umang Jain [Thu, 7 Dec 2023 08:38:37 +0000 (14:08 +0530)]
staging: vc04_services: vchiq_dev: Use %p to log pointer address

Solves the following Smatch warnings:
vchiq_release() warn: argument 7 to %lx specifier is cast from pointer

%p will print the hashed pointer to dynamic debug.
In order to print the unmodified pointer address, one can use the
`no_hash_pointers` via kernel parameters.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231207083837.153843-3-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: vchiq_arm: Use %p to log pointer address
Umang Jain [Thu, 7 Dec 2023 08:38:36 +0000 (14:08 +0530)]
staging: vc04_services: vchiq_arm: Use %p to log pointer address

Solves the following Smatch warnings:
service_callback() warn: argument 7 to %lx specifier is cast from pointer
service_callback() warn: argument 11 to %lx specifier is cast from pointer
service_callback() warn: argument 12 to %lx specifier is cast from pointer
service_callback() warn: argument 13 to %lx specifier is cast from pointer

%p will print the hashed pointer to dynamic debug.
In order to print the unmodified pointer address, one can use the
`no_hash_pointers` via kernel parameters.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231207083837.153843-2-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: Drop vchiq_log_debug() in favour of dev_dbg
Umang Jain [Tue, 5 Dec 2023 08:41:57 +0000 (14:11 +0530)]
staging: vc04_services: Drop vchiq_log_debug() in favour of dev_dbg

Drop vchiq_log_debug() macro which wraps dev_dbg(). Introduce the usage
of dev_dbg() directly.

Meanwhile at it, drop the usage of __func__ from the logs.
Dynamic debug supports this via the 'f'  decorator flag.

Remove the entry from TODO regarding custom logging. VC04 is now
aligned according to the standard kernel logging mechanisms.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231205084157.73819-5-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: Drop vchiq_log_trace() in favour of dev_dbg
Umang Jain [Tue, 5 Dec 2023 08:41:56 +0000 (14:11 +0530)]
staging: vc04_services: Drop vchiq_log_trace() in favour of dev_dbg

Drop vchiq_log_trace() macro which wraps dev_dbg(). Introduce the usage
of dev_dbg() directly.

Meanwhile at it, drop the usage of __func__ from the logs.
Dynamic debug supports this via the 'f'  decorator flag.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231205084157.73819-4-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: Drop vchiq_log_warning() in favour of dev_warn
Umang Jain [Tue, 5 Dec 2023 08:41:55 +0000 (14:11 +0530)]
staging: vc04_services: Drop vchiq_log_warning() in favour of dev_warn

Drop vchiq_log_warning() macro which wraps dev_dbg(). Introduce the usage
of dev_warn() directly.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231205084157.73819-3-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: Drop vchiq_log_error() in favour of dev_err
Umang Jain [Tue, 5 Dec 2023 08:41:54 +0000 (14:11 +0530)]
staging: vc04_services: Drop vchiq_log_error() in favour of dev_err

Drop vchiq_log_error() macro which wraps dev_dbg(). Introduce the usage
of dev_err() directly.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231205084157.73819-2-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable nAMSDU_MaxSize
Gary Rookard [Tue, 5 Dec 2023 23:16:23 +0000 (18:16 -0500)]
staging: rtl8192e: renamed variable nAMSDU_MaxSize

Coding style issue, checkpatch Avoid CamelCase,
rename it nAMSDU_MaxSize -> amsdu_max_size

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231205231623.23070-6-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bRegSuppCCK
Gary Rookard [Tue, 5 Dec 2023 23:16:22 +0000 (18:16 -0500)]
staging: rtl8192e: renamed variable bRegSuppCCK

Coding style issue, checkpatch Avoid CamelCase,
rename it bRegSuppCCK -> reg_supp_cck

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231205231623.23070-5-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bRegBW40MHz
Gary Rookard [Tue, 5 Dec 2023 23:16:21 +0000 (18:16 -0500)]
staging: rtl8192e: renamed variable bRegBW40MHz

Coding style issue, checkpatch Avoid CamelCase,
rename it bRegBW40MHz -> reg_bw_40mhz

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231205231623.23070-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bRegShortGI40MHz
Gary Rookard [Tue, 5 Dec 2023 23:16:20 +0000 (18:16 -0500)]
staging: rtl8192e: renamed variable bRegShortGI40MHz

Coding style issue, checkpatch Avoid CamelCase,
rename it bRegShortGI40MHz -> reg_short_gi_40mhz

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231205231623.23070-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bRegShortGI20MHz
Gary Rookard [Tue, 5 Dec 2023 23:16:19 +0000 (18:16 -0500)]
staging: rtl8192e: renamed variable bRegShortGI20MHz

Coding style issue, checkpatch Avoid CamelCase,
rename it bRegShortGI20MHz -> reg_short_gi_20mhz

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231205231623.23070-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: Do not pass NULL to vchiq_log_error()
Umang Jain [Tue, 28 Nov 2023 20:19:22 +0000 (01:49 +0530)]
staging: vc04_services: Do not pass NULL to vchiq_log_error()

vchiq_add_connected_callback() logs using vchiq_log_error() macro,
but passes NULL instead of a struct device pointer. Fix it.

vchiq_add_connected_callback() is not used anywhere in the vc04_services
as of now. It will be used when we add new drivers(VC shared memory and
bcm2835-isp), hence it kept as it is for now.

Fixes: 1d8915cf8899 ("staging: vc04: Convert vchiq_log_error() to use dynamic debug")
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231128201926.489269-2-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: vc04_services: vchiq_core: Log through struct vchiq_instance
Umang Jain [Tue, 28 Nov 2023 20:18:45 +0000 (01:48 +0530)]
staging: vc04_services: vchiq_core: Log through struct vchiq_instance

The handle_to_service() helper can return NULL, so `service` pointer
can indeed be set to NULL. So, do not log through service pointer
(which can cause NULL-deference), instead, use the vchiq_instance
function argument to get access to the struct device.

Fixes: f67af5940d6d ("staging: vc04: Convert(and rename) vchiq_log_info() to use dynamic debug")
Reviewed-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20231128201845.489237-1-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable nDataRate
Gary Rookard [Tue, 28 Nov 2023 18:17:27 +0000 (13:17 -0500)]
staging: rtl8192e: renamed variable nDataRate

Coding style issue, checkpatch Avoid CamelCase,
rename it nDataRate -> data-rate.

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231128181727.19504-4-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable bCurBW40MHz
Gary Rookard [Tue, 28 Nov 2023 18:17:26 +0000 (13:17 -0500)]
staging: rtl8192e: renamed variable bCurBW40MHz

Coding style issue, checkpatch Avoid CamelCase,
rename it bCurBW40MHz -> cur_bw_40mhz.

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231128181727.19504-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agostaging: rtl8192e: renamed variable nMcsRate
Gary Rookard [Tue, 28 Nov 2023 18:17:25 +0000 (13:17 -0500)]
staging: rtl8192e: renamed variable nMcsRate

Coding style issue, checkpatch Avoid CamelCase,
rename it nMcsRate -> mcs_rate.

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231128181727.19504-2-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 months agoStaging: rtl8192e: Rename variable TsCommonInfo
Tree Davies [Mon, 27 Nov 2023 05:43:05 +0000 (21:43 -0800)]
Staging: rtl8192e: Rename variable TsCommonInfo

Rename variable TsCommonInfo to ts_common_info to fix checkpatch
warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231127054305.148276-16-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>