[PATCH 2/2] staging: rtl8188eu: rename parameters of odm_phy_status_query()

2021-03-06 Thread Michael Straube
Rename parameters of odm_phy_status_query() to avoid camel case. pDM_Odm -> dm_odm pPhyInfo -> phy_info pPhyStatus -> phy_status pPktinfo -> pkt_info Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 9 - drivers/staging/rtl81

[PATCH 1/2] staging: rtl8188eu: rename ODM_PhyStatusQuery()

2021-03-06 Thread Michael Straube
Rename ODM_PhyStatusQuery() to odm_phy_status_query() to avoid camel case. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 6 +++--- drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c | 4 ++-- drivers/staging/rtl8188eu/include/odm_hwconfig.h | 8 3

[PATCH] staging: rtl8723bs: clean up brace coding style issues

2020-12-22 Thread Michael Straube
Add missing braces around else arm of if else statement to clear style issues reported by checkpatch. CHECK: braces {} should be used on all arms of this statement CHECK: Unbalanced braces around else statement Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 3

[PATCH] staging: rtl8188eu: remove commented defines

2020-10-27 Thread Michael Straube
Remove commented defines from ioctl_linux.c. They are included from include/uapi/linux/wireless.h. Also clears a checkpatch warning. WARNING: Block comments use * on subsequent lines Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 11 --- 1 file

[PATCH 5/8] staging: rtl8188eu: rename struct field bUsed -> used

2020-09-29 Thread Michael Straube
Rename field of struct rt_pmkid_list to avoid camel case. bUsed -> used Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c| 2 +- drivers/staging/rtl8188eu/include/rtw_security.h | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 6 +++--- 3 fi

[PATCH 3/8] staging: rtl8188eu: rename struct field Bssid -> bssid

2020-09-29 Thread Michael Straube
Rename field of struct rt_pmkid_list to avoid camel case. Bssid -> bssid Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c| 2 +- drivers/staging/rtl8188eu/include/rtw_security.h | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 8 3 fi

[PATCH 8/8] staging: rtl8188eu: clean up indent style issue

2020-09-29 Thread Michael Straube
Replace spaces with tab to clear checkpatch error. ERROR: code indent should use tabs where possible Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b

[PATCH 4/8] staging: rtl8188eu: use ETH_ALEN

2020-09-29 Thread Michael Straube
Use ETH_ALEN instead of hard coded array size. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/rtw_security.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_security.h b/drivers/staging/rtl8188eu/include

[PATCH 7/8] staging: rtl8188eu: remove unused variable ratelen

2020-09-29 Thread Michael Straube
After the removal of cckrates_included() and cckrates_only_included() from rtw_wlan_util.c the variable/parameter 'ratelen' is unused now. Remove it from update_wireless_mode() and judge_network_type(). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 6

[PATCH 6/8] staging: rtl8188eu: remove cckrates{only}_included()

2020-09-29 Thread Michael Straube
-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_wlan_util.c| 34 +++ .../staging/rtl8188eu/include/rtw_mlme_ext.h | 3 -- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core

[PATCH 2/8] staging: rtl8188eu: clean up comparsions to NULL

2020-09-29 Thread Michael Straube
Clean up remaining comparsions to NULL reported by checkpatch. x == NULL -> !x x != NULL -> x Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_security.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188e

[PATCH 1/8] staging: rtl8188eu: remove unused macros and definitions

2020-09-29 Thread Michael Straube
Removep unused macros and definitions from rtw_security.h leftover from previous cleanup patches. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/rtw_security.h | 58 --- 1 file changed, 58 deletions(-) diff --git a/drivers/staging/rtl8188eu/include

[PATCH v2] staging: rtl8188eu: Reapply "staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames"

2020-09-27 Thread Michael Straube
data to skb, decrypt with lib80211_crypt_ccmp, and place back to tx buffer. Cc: Ivan Safonov Signed-off-by: Michael Straube --- v1 -> v2: Added missing spaces around '+' and removed unnecessary parentheses. if ((curfragnum+1) == pattrib->nr_frags) if (curfragnum + 1 == pattrib->nr_frags) d

[PATCH] staging: rtl8188eu: Reapply "staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames"

2020-09-26 Thread Michael Straube
data to skb, decrypt with lib80211_crypt_ccmp, and place back to tx buffer. Cc: Ivan Safonov Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_security.c | 778 ++ 1 file changed, 72 insertions(+), 706 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_security.

[PATCH 3/3] staging: rtl8192u: clean up comparsions to NULL

2020-09-19 Thread Michael Straube
Clean up comparsions to NULL reported by checkpatch. if (x == NULL) -> if (!x) if (x != NULL) -> if (x) Signed-off-by: Michael Straube --- drivers/staging/rtl8192u/r8192U_wx.c | 6 +++--- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 4 ++-- drivers/staging/rtl8192u/r819xU_phy.c| 2

[PATCH 1/3] staging: rtl8192u: clean up blank line style issues

2020-09-19 Thread Michael Straube
after an open brace '{' Signed-off-by: Michael Straube --- drivers/staging/rtl8192u/r8192U_dm.c | 12 +-- drivers/staging/rtl8192u/r8192U_hw.h | 1 + drivers/staging/rtl8192u/r8192U_wx.c | 31 ++- drivers/staging/rtl8192u/r819xU_cmdpkt.c | 1

[PATCH 2/3] staging: rtl8192u: correct placement of else if

2020-09-19 Thread Michael Straube
Move 'else if' to the same line as the closing brace of the corresponding 'if' to follow kernel coding style. Signed-off-by: Michael Straube --- drivers/staging/rtl8192u/r8192U_wx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_wx.c b

[PATCH 2/2] staging: rtl8188eu: clean up alignment style issues

2020-09-19 Thread Michael Straube
Clean up alignment style issues to follow kernel coding style and clear checkpatch issues. CHECK: Alignment should match open parenthesis Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 +- drivers/staging/rtl8188eu/hal/phy.c | 21 ++-- drivers

[PATCH 1/2] staging: rtl8188eu: clean up block comment style issues

2020-09-19 Thread Michael Straube
Clean up block comment style issues to follow kernel coding style and clear checkpatch warnings. WARNING: Block comments should align the * on each line WARNING: Block comments use a trailing */ on a separate line WARNING: Block comments use * on subsequent lines Signed-off-by: Michael Straube

[PATCH 1/2] staging: rtl8712: clean up comparsions to NULL

2020-09-19 Thread Michael Straube
Clean up comparsions to NULL Reported by checkpatch. if (x == NULL) -> if (!x) if (x != NULL) -> if (x) Signed-off-by: Michael Straube --- drivers/staging/rtl8712/rtl871x_cmd.c | 4 ++-- drivers/staging/rtl8712/rtl871x_io.c | 2 +- drivers/staging/r

[PATCH 2/2] staging: rtl8712: use shorter array initializations

2020-09-19 Thread Michael Straube
Use empty brace syntax to initialize zero valued arrays. Simplifies and shortens the code a little bit. Signed-off-by: Michael Straube --- drivers/staging/rtl8712/rtl871x_xmit.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_xmit.c b

[PATCH 1/2] staging: rtl8188eu: use __func__ in hal directory

2020-09-17 Thread Michael Straube
Use __func__ instead of hardcoded function names to clear checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 4 +- drivers/staging/rtl8188eu/hal/odm.c | 60 +-- drivers/staging/rtl8188eu/hal/phy.c | 2

[PATCH 2/2] staging: rtl8188eu: clean up comparsion style issues

2020-09-17 Thread Michael Straube
Move constants to the right side of comparsions to follow kernel coding style and clear checkpatch warnings. In case of comparsion to _FAIL we can use '!' since _FAIL is defined as '0'. WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Michael Straube

[PATCH] staging: rtl8188eu: clean up blank line style issues

2020-09-16 Thread Michael Straube
use multiple blank lines Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_security.c | 6 +- drivers/staging/rtl8188eu/hal/odm.c | 1 - drivers/staging/rtl8188eu/hal/rf.c| 1 + drivers/staging/rtl8188eu/include/osdep_service.h | 1

[PATCH] staging: rtl8188eu: remove extra indentations

2020-09-15 Thread Michael Straube
Remove extra indentations to follow kernel coding style and clear checkpatch warnings. WARNING: suspect code indent for conditional statements Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 6 +-- .../staging/rtl8188eu/core/rtw_wlan_util.c| 48

[PATCH 1/2] staging: rtl8723bs: remove cckrates{only}_included()

2020-09-13 Thread Michael Straube
unused variable ratelen. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/core/rtw_wlan_util.c| 34 ++- .../staging/rtl8723bs/include/rtw_mlme_ext.h | 2 -- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c

[PATCH 2/2] staging: rtl8723bs: remove 5 GHz code

2020-09-13 Thread Michael Straube
Acoording to the TODO code valid only for 5 GHz should be removed. - find and remove remaining code valid only for 5 GHz. Most of the obvious ones have been removed, but things like channel > 14 still exist. Remove code path only valid for channels > 14. Signed-off-by: Michael S

Re: [PATCH 1/5] staging: rtl8723bs: refactor cckrates{only}_included

2020-09-13 Thread Michael Straube
On 2020-09-12 20:22, Joe Perches wrote: On Sat, 2020-09-12 at 10:45 +0200, Michael Straube wrote: Refactor cckrates_included() and cckratesonly_included() to simplify the code and improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 14

[PATCH 3/5] staging: rtl8723bs: convert cckrates{only}_included to bool

2020-09-12 Thread Michael Straube
Functions cckrates_included() and cckratesonly_included() return boolean values. Convert the return type from int to bool. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

[PATCH 2/5] staging: rtl8723bs: make cckrates{only}_included static

2020-09-12 Thread Michael Straube
Functions cckrates_included() and cckratesonly_included() are used only in the file core/rtw_wlan_util.c. Make them static and remove extern declarations from include/rtw_mlme_ext.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 4 ++-- drivers/staging

[PATCH 5/5] staging: rtl8723bs: remove 5 GHz code

2020-09-12 Thread Michael Straube
Acoording to the TODO code valid only for 5 GHz should be removed. - find and remove remaining code valid only for 5 GHz. Most of the obvious ones have been removed, but things like channel > 14 still exist. Remove code path only valid for channels > 14. Signed-off-by: Michael S

[PATCH 1/5] staging: rtl8723bs: refactor cckrates{only}_included

2020-09-12 Thread Michael Straube
Refactor cckrates_included() and cckratesonly_included() to simplify the code and improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs

[PATCH 4/5] staging: rtl8723bs: remove comparsions to true

2020-09-12 Thread Michael Straube
Remove unnecessary comparsions to boolean values. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core

[PATCH] staging: rtl8188eu: clean up whitespace in wpa_set_encryption()

2020-09-05 Thread Michael Straube
Clean up unnecessary whitespace in wpa_set_encryption() by removing extra spaces and replacing tabs with spaces. Clears a checkpatch error. ERROR: space prohibited before that close parenthesis ')' Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 12

[PATCH] staging: rtl8188eu: use __func__ in os_dep

2020-08-30 Thread Michael Straube
Use __func__ instead of hardcoded function names to clear checkpatch warnings. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/os_dep/ioctl_linux.c| 80 +-- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 36 - drivers/staging/rtl8188eu/os_dep/usb_intf.c

[PATCH] staging: rtl8723bs: remove 5 GHz code

2020-08-13 Thread Michael Straube
According to the TODO 5 GHz code should be removed. - find and remove remaining code valid only for 5 GHz. Most of the obvious ones have been removed, but things like channel > 14 still exist. Remove code for channels > 14 from rtw_get_center_ch(). Signed-off-by: Michael Straube --- d

staging: most: Build error since commit "drivers: most: add USB adapter driver"

2020-08-02 Thread Michael Straube
Hi, with commit 97a6f772f36b7f52bcfa56a581bbd2470cffe23d ("drivers: most: add USB adapter driver") I get build errors. $ LANG=C make clean drivers/staging/rtl8188eu/ scripts/Makefile.clean:15: drivers/staging/most/usb/Makefile: No such file or directory make[5]: *** No rule to make target

[PATCH 1/2] staging: rtl8188eu: clear alignment style issues

2020-07-23 Thread Michael Straube
Clear checkpatch alignment style issues in rtl8188eu_recv.c. CHECK: Alignment should match open parenthesis The file is now checkpatch clean. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH 2/2] staging: rtl8188eu: cleanup whitespace in declarations

2020-07-23 Thread Michael Straube
Replace tabs with spaces in declarations to cleanup whitespace in rtl8188eu_recv.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c

[PATCH] staging: rtl8188eu: add spaces around operators in header files

2020-07-19 Thread Michael Straube
Add spaces around operators in the header files to improve readability and clear checkpatch issues. Signed-off-by: Michael Straube --- .../rtl8188eu/include/hal8188e_rate_adaptive.h | 4 ++-- drivers/staging/rtl8188eu/include/odm_types.h| 6 +++--- drivers/staging/rtl8188eu

[PATCH] staging: rtl8188eu: clear tabstop style issues

2020-07-18 Thread Michael Straube
Clear tabstop style issues reported by checkpatch. WARNING: Statements should start on a tabstop Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c| 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c

[PATCH 1/2] staging: rtl8192u: remove GPL boiler plate text

2020-07-03 Thread Michael Straube
The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. The file ieee80211_module.c has a proper SPDX line, so the GPL boiler plate text is not needed. Signed-off-by: Michael Straube --- .../rtl8192u/ieee80211/ieee80211_module.c| 16

[PATCH 2/2] staging: rtl8192u: remove copying file

2020-07-03 Thread Michael Straube
All source and header files have a GPL-2.0 SPDX identifier. The 'copying' file with the whole GPL text is not needed, delete it. Signed-off-by: Michael Straube --- drivers/staging/rtl8192u/copying | 340 --- 1 file changed, 340 deletions(-) delete mode 100644

[PATCH] staging: rtl8188eu: use common ieee80211 constants

2020-07-01 Thread Michael Straube
Many defined constants in wifi.h are unused and/or available from , some with slightly different names. Use the common ones, rename where necessary and remove unused. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 12 ++--- drivers/staging/rtl8188eu/core

[PATCH] staging: rtl8188eu: remove unused parameter

2020-07-01 Thread Michael Straube
Remove unused parameter 'padapter' from rtw_os_xmit_resource_alloc(). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 +++--- drivers/staging/rtl8188eu/include/xmit_osdep.h | 3 +-- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 3 +-- 3 files changed, 5

[PATCH] staging: rtl8712: use common ieee80211 constants

2020-07-01 Thread Michael Straube
Many defined constants in wifi.h are unused and/or available from , some with slightly different names. Use the common ones, rename where necessary and remove unused. Signed-off-by: Michael Straube --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +- drivers/staging/rtl8712/rtl871x_mlme.c

[PATCH 1/2] staging: rtl8188eu: use compound assignment operators

2020-06-29 Thread Michael Straube
Use compound assignment operators to simplify the code and clear missing spaces around operators checkpatch issues. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu

[PATCH 1/3] staging: rtl8188eu: remove some ieee80211 constants from wifi.h

2020-06-29 Thread Michael Straube
The constants IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL and IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA are not used in the driver code and, if ever needed, available from 'include/linux/ieee80211.h'. Remove them from wifi.h. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/wifi.h

[PATCH 3/3] staging: rtl8712: remove some ieee80211 constants from wifi.h

2020-06-29 Thread Michael Straube
The constants IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL and IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA are not used in the driver code and, if ever needed, available from 'include/linux/ieee80211.h'. Remove them from wifi.h. Signed-off-by: Michael Straube --- drivers/staging/rtl8712/wifi.h | 4 1

[PATCH 2/3] staging: rtl8723bs: remove some ieee80211 constants from wifi.h

2020-06-29 Thread Michael Straube
The constants IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL and IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA are not used in the driver code and, if ever needed, available from 'include/linux/ieee80211.h'. Remove them from wifi.h. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/include/wifi.h

Re: [PATCH] staging: rtl8188eu: include: ieee80211.h: fixed multiple blank line coding style issues.

2020-06-29 Thread Michael Straube
On 2020-06-29 10:09, B K Karthik wrote: removed multiple blank lines to improve code readability. Signed-off-by: B K Karthik --- drivers/staging/rtl8188eu/include/ieee80211.h | 9 - 1 file changed, 9 deletions(-) Hi, those lines are already removed in commit

[PATCH 2/2] staging: rtl8188eu: add spaces around operators

2020-06-29 Thread Michael Straube
Add spaces around operators to improve readability and clear checkpatch issues. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 8 +- drivers/staging/rtl8188eu/core/rtw_recv.c | 70 ++-- drivers/staging/rtl8188eu/core/rtw_security.c | 102

[PATCH v2] staging: rtl8188eu: remove unnecessary comments in hal8188e_phy_cfg.h

2020-06-28 Thread Michael Straube
Remove unnecessary comments in hal8188e_phy_cfg.h to improve readability and clear multiple blank lines checkpatch issues. CHECK: Please don't use multiple blank lines Signed-off-by: Michael Straube --- v1 -> v2 Remove one more line as suggested by Dan Carpenter. .../rtl8188eu/incl

[PATCH] staging: rtl8188eu: remove unnecessary comments in hal8188e_phy_cfg.h

2020-06-27 Thread Michael Straube
Remove unnecessary comments in hal8188e_phy_cfg.h to improve readability and clear multiple blank lines checkpatch issues. CHECK: Please don't use multiple blank lines Signed-off-by: Michael Straube --- .../rtl8188eu/include/hal8188e_phy_cfg.h | 23 --- 1 file changed, 23

[PATCH] staging: rtl8188eu: remove blank lines in header files

2020-06-27 Thread Michael Straube
Remove blank lines in header files to clear checkpatch issues. CHECK: Please don't use multiple blank lines Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/drv_types.h | 1 - drivers/staging/rtl8188eu/include/hal_com.h | 1 - drivers/staging/rtl8188eu/include

[PATCH] staging: rtl8188eu: use common packet header constants

2020-06-19 Thread Michael Straube
The driver replicates the definitions of rfc1042_header and bridge_tunnel_header available from cfg80211.h. Use the common ones from cfg80211.h. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_recv.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions

[PATCH v2 1/2] staging: rtl8188eu: clean up some declarations

2020-05-24 Thread Michael Straube
Clean up some array declarations in phy_iq_calibrate() to reduce indentation and clear line over 80 characters checkpatch warnings. Signed-off-by: Michael Straube --- v1 -> v2 Added patch that makes arrays static const. drivers/staging/rtl8188eu/hal/phy.c | 33 +++--

[PATCH v2 2/2] staging: rtl8188eu: make some arrays static const

2020-05-24 Thread Michael Straube
Make some arrays in phy_iq_calibrate() static const and adjust the functions that take these arrays as parameters accordingly. Reduces object file size by 84 bytes (GCC 9.3.1 x86_64). Suggested-by: Joe Perches Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/phy.c | 21

[PATCH] staging: rtl8188eu: clean up some declarations

2020-05-24 Thread Michael Straube
Clean up some array declarations in phy_iq_calibrate() to reduce indentation and clear line over 80 characters checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/phy.c | 33 +++-- 1 file changed, 17 insertions(+), 16 deletions(-) diff

[PATCH 3/3] staging: rtl8188eu: remove blank lines

2019-10-15 Thread Michael Straube
Remove blank lines to reduce whitespace and improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core

[PATCH 2/3] staging: rtl8188eu: convert variables from unsigned char to u8

2019-10-15 Thread Michael Straube
Convert the local variables max_ampdu_len and min_mpdu_spacing from unsigned char to u8 and remove unnecessary castings to u8 pointer. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 1/3] staging: rtl8188eu: rename variables to avoid mixed case

2019-10-15 Thread Michael Straube
Rename local variables to avoid mixed case. max_AMPDU_len -> max_ampdu_len min_MPDU_spacing -> min_mpdu_spacing Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_wlan_util.c| 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/d

[PATCH 2/2] staging: rtl8188eu: remove unnecessary conversion to bool

2019-10-13 Thread Michael Straube
Comparsions evaluate to bool, explicit conversion with ternary operator is overly verbose and unnecessary, so remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

[PATCH 1/2] staging: rtl8188eu: remove braces from single statement if block

2019-10-13 Thread Michael Straube
Remove braces from single statement if block to comply with kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c

[PATCH] staging: rtl8188eu: remove unnecessary asignment and initialization

2019-10-05 Thread Michael Straube
Variable badworden is asigned in two subsequent lines. So the first asignment is useless and not needed. Also the initialization to zero is not needed. Remove the first asignment and the initialization. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 3 +-- 1

[PATCH 4/4] staging: rtl8188eu: cleanup comments in update_hw_ht_param

2019-10-03 Thread Michael Straube
Cleanup comments in update_hw_ht_param to follow kernel coding style and avoid line length over 80 characters. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8188eu

[PATCH 3/4] staging: rtl8188eu: cleanup whitespace in update_hw_ht_param

2019-10-03 Thread Michael Straube
Replace tabs with spaces in declarations and reomve two blank lines in update_hw_ht_param to cleanup whitespace and improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 0/4] staging: rtl8188eu: cleanups in update_hw_ht_param()

2019-10-03 Thread Michael Straube
Cleanup code in function update_hw_ht_param(). Michael Straube (4): staging: rtl8188eu: convert variables from unsigned char to u8 staging: rtl8188eu: rename variables to avoid mixed case staging: rtl8188eu: cleanup whitespace in update_hw_ht_param staging: rtl8188eu: cleanup comments

[PATCH 1/4] staging: rtl8188eu: convert variables from unsigned char to u8

2019-10-03 Thread Michael Straube
Convert the local variables max_AMPDU_len and min_MPDU_spacing from unsigned char to u8 and remove unnecessary castings to u8 pointer. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 2/4] staging: rtl8188eu: rename variables to avoid mixed case

2019-10-03 Thread Michael Straube
Rename the local varibles max_AMPDU_len and min_MPDU_spacing to avoid mixed case. max_AMPDU_len -> max_ampdu_len min_MPDU_spacing -> min_mpdu_spacing Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 del

[PATCH] staging: rtl8723bs: remove unused function write_cam_from_cache

2019-09-26 Thread Michael Straube
Function write_cam_from_cache in rtw_wlan_util.c is never used, so remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 13 - drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - 2 files changed, 14 deletions(-) diff --git a/drivers

[PATCH] staging: exfat: add missing SPDX line to Kconfig

2019-09-17 Thread Michael Straube
Add SPDX identifier to Kconfig. Signed-off-by: Michael Straube --- drivers/staging/exfat/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/exfat/Kconfig b/drivers/staging/exfat/Kconfig index 290dbfc7ace1..59e07afe249c 100644 --- a/drivers/staging/exfat/Kconfig +++ b

[PATCH] staging: rtl8723bs: remove return statements from void functions

2019-09-14 Thread Michael Straube
Remove unnecessary return statements from void functions reported by checkpatch. WARNING: void function return statements are not generally useful Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 5 - drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

[PATCH] staging: rtl8188eu: cleanup long line in rtw_mlme_ext.c

2019-09-12 Thread Michael Straube
Remove comparsion to NULL and unnecessary parentheses to avoid line length over 80 characters and follow kernel coding style. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH 1/3] rtlwifi: rtl8192ce: replace _rtl92c_evm_db_to_percentage with generic version

2019-09-10 Thread Michael Straube
Function _rtl92c_evm_db_to_percentage is functionally identical to the generic version rtl_evm_db_to_percentage, so remove _rtl92c_evm_db_to_percentage and use the generic version instead. Signed-off-by: Michael Straube --- .../wireless/realtek/rtlwifi/rtl8192ce/trx.c | 23

[PATCH 3/3] rtlwifi: rtl8192de: replace _rtl92d_evm_db_to_percentage with generic version

2019-09-10 Thread Michael Straube
Function _rtl92d_evm_db_to_percentage is functionally identical to the generic version rtl_evm_db_to_percentage, so remove _rtl92d_evm_db_to_percentage and use the generic version instead. Signed-off-by: Michael Straube --- .../wireless/realtek/rtlwifi/rtl8192de/trx.c | 18

[PATCH 0/3] rtlwifi: use generic rtl_evm_db_to_percentage

2019-09-10 Thread Michael Straube
Functions _rtl92{c,d}_evm_db_to_percentage are functionally identical to the generic version rtl_evm_db_to percentage. This series converts rtl8192ce, rtl8192cu and rtl8192de to use the generic version. Michael Straube (3): rtlwifi: rtl8192ce: replace _rtl92c_evm_db_to_percentage with generic

[PATCH 2/3] rtlwifi: rtl8192cu: replace _rtl92c_evm_db_to_percentage with generic version

2019-09-10 Thread Michael Straube
Function _rtl92c_evm_db_to_percentage is functionally identical to the generic version rtl_evm_db_to_percentage, so remove _rtl92c_evm_db_to_percentage and use the generic version instead. Signed-off-by: Michael Straube --- .../wireless/realtek/rtlwifi/rtl8192cu/mac.c | 18

[PATCH 3/6] staging: rtl8188eu: add spaces around '|' in usb_halinit.c

2019-07-26 Thread Michael Straube
Add spaces around '|' to improve readability and follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal

[PATCH 4/6] staging: rtl8188eu: add spaces around '<<' and '>>' in usb_halinit.c

2019-07-26 Thread Michael Straube
Add spaces around '<<' and '>>' to improve readability and follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dri

[PATCH 5/6] staging: rtl8188eu: add spaces around '-' and '*' in usb_halinit.c

2019-07-26 Thread Michael Straube
Add spaces around '-' and '*' to improve readability and follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal

[PATCH 2/6] staging: rtl8188eu: add spaces around '&' in usb_halinit.c

2019-07-26 Thread Michael Straube
Add spaces around '&' to improve readability and follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 38 ++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/sta

[PATCH 6/6] staging: rtl8188eu: cleanup comparsion to NULL in usb_halinit.c

2019-07-26 Thread Michael Straube
Use if(!x) instead of if(x == NULL). Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal

[PATCH 1/6] staging: rtl8188eu: add spaces around '+' in usb_halinit.c

2019-07-26 Thread Michael Straube
Add spaces around '+' to improve readability and follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 76 ++--- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/drivers/staging

[PATCH] staging: rtl8188eu: replace hal_EfusePgCheckAvailableAddr()

2019-07-25 Thread Michael Straube
Function hal_EfusePgCheckAvailableAddr() contains just a single if test. Remove the function and replace the call to it with the if test. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH] staging: rtl8723bs: remove unused file hal_phy.c

2019-07-21 Thread Michael Straube
Remove the unused file hal_phy.c. No function from this file is used in the driver code and it is not listed in the Makefile. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/hal/hal_phy.c | 157 1 file changed, 157 deletions(-) delete mode 100644 drivers

[PATCH] staging: rtl8188eu: remove unused definitions from hal8188e_phy_reg.h

2019-07-07 Thread Michael Straube
Remove unused definitions from the file hal8188e_phy_reg.h. Signed-off-by: Michael Straube --- .../rtl8188eu/include/hal8188e_phy_reg.h | 881 -- 1 file changed, 881 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/hal8188e_phy_reg.h b/drivers/staging/rtl8188eu

[PATCH 2/2] staging: rtl8188eu: remove unused function is_ap_in_wep()

2019-06-23 Thread Michael Straube
Function is_ap_in_wep() is not used in the driver code, so remove it. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_wlan_util.c| 30 --- .../staging/rtl8188eu/include/rtw_mlme_ext.h | 1 - 2 files changed, 31 deletions(-) diff --git a/drivers/staging

[PATCH 1/2] staging: rtl8188eu: remove unused function get_bsstype()

2019-06-23 Thread Michael Straube
Function get_bsstype() is not used in the driver code, so remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 10 -- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 1 - 2 files changed, 11 deletions(-) diff --git a/drivers/staging

[PATCH 1/2] staging: rtl8188eu: cleanup lines ending with a '('

2019-06-22 Thread Michael Straube
Cleanup checkpatch issues in usb_halinit.c. CHECK: Lines should not end with a '(' Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal

[PATCH 2/2] staging: rtl8188eu: remove hal_init_macaddr()

2019-06-22 Thread Michael Straube
Function hal_init_macaddr() just calls rtw_hal_set_hwreg(). Use rtw_hal_set_hwreg() directly and remove hal_init_macaddr(). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_com.c | 6 -- drivers/staging/rtl8188eu/hal/usb_halinit.c | 3 ++- drivers/staging/rtl8188eu

[PATCH] staging: rtl8188eu: remove unused code

2019-06-19 Thread Michael Straube
Remove unused and/or commented code from rtw_wlan_util.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c

Re: [PATCH 1/2] staging: rtl8188eu: remove redundant definition of ETH_ALEN

2019-06-03 Thread Michael Straube
On 2019-06-02 22:07, Joe Perches wrote: On Sun, 2019-06-02 at 18:35 +0200, Michael Straube wrote: ETH_ALEN is defined in linux/if_ether.h which is included by osdep_service.h, so remove the redundant definition from ieee80211.h. [] diff --git a/drivers/staging/rtl8188eu/include/ieee80211.h b

[PATCH 1/2] staging: rtl8188eu: remove redundant definition of ETH_ALEN

2019-06-02 Thread Michael Straube
ETH_ALEN is defined in linux/if_ether.h which is included by osdep_service.h, so remove the redundant definition from ieee80211.h. osdep_service.h:33:#include etherdevice.h:25:#include Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/ieee80211.h | 1 - 1 file changed, 1

[PATCH 2/2] staging: rtl8188eu: remove unused definitions from ieee80211.h

2019-06-02 Thread Michael Straube
MGMT_QUEUE_NUM, ETH_TYPE_LEN and PAYLOAD_TYPE_LEN are defined but not used in the driver code, so remove them. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/ieee80211.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/ieee80211.h

[PATCH] staging: rtl8188eu: remove ODM_PhyStatusQuery() wrapper

2019-06-02 Thread Michael Straube
Function ODM_PhyStatusQuery() is just a wrapper around ODM_PhyStatusQuery_92CSeries(). Rename ODM_PhyStatusQuery_92CSeries() to ODM_PhyStatusQuery() and remove the wrapper. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 15 +++ 1 file changed, 3

[PATCH] staging: rtl8712: get rid of IS_MCAST

2019-05-05 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST and remove the now unused IS_MCAST. All buffers are properly aligned. Signed-off-by: Michael Straube --- drivers/staging/rtl8712/rtl8712_xmit.c | 2 +- drivers/staging/rtl8712/rtl871x_recv.c | 14 +++--- drivers/staging

[PATCH 1/4] staging: rtl8188eu: add spaces around operators in rtw_ap.c

2019-04-22 Thread Michael Straube
Add spaces around '+', '-' and '|' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c

[PATCH 4/4] staging: rtl8188eu: remove unnecessary parentheses

2019-04-22 Thread Michael Straube
Remove unnecessary parentheses to improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c | 6 +++--- drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c

[PATCH 3/4] staging: rtl8188eu: add spaces around '-' in rtw_cmd.c

2019-04-22 Thread Michael Straube
Add spaces around '-' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu

  1   2   3   4   5   6   7   8   9   >