Re: [PATCH] staging: rtl8188eu: remove rtw_ioctl_rtl.h

2018-07-01 Thread Michael Straube
On 07/01/18 11:14, Andy Shevchenko wrote: On Sat, Jun 30, 2018 at 5:59 PM, Michael Straube wrote: The header rtw_ioctl_rtl.h is not used anywhere. Running 'grep -r rtw_ioctl_rtl *' from kernel root directory returns nothing, remove the file. Just a side note, using `git grep` is

[PATCH] staging: rtl8188eu: remove rtw_mp_phy_regdef.h

2018-07-02 Thread Michael Straube
The header rtw_mp_phy_regdef.h is not used anywhere. 'git grep rtw_mp_phy_regdef.h' returns nothing, remove the file. Signed-off-by: Michael Straube --- .../rtl8188eu/include/rtw_mp_phy_regdef.h | 1078 - 1 file changed, 1078 deletions(-) delete mode 100644 drive

[PATCH] staging: rtl8188eu: replace while with shorter for loop

2018-07-07 Thread Michael Straube
Simplify rtw_get_rateset_len() by replacing the while loop with a shorter for loop. Also replace tabs with spaces in the definition line. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff

[PATCH] staging: rtl8723bs: remove rtw_br_ext.h

2018-07-07 Thread Michael Straube
The header rtw_br_ext.h is not used anywhere. 'git grep rtw_br_ext.h' returns nothing, remove the file. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/include/rtw_br_ext.h| 55 --- 1 file changed, 55 deletions(-) delete mode 100644 drivers/staging

[PATCH] staging: rtl8723bs: remove rtw_beamforming.h

2018-07-07 Thread Michael Straube
The header rtw_beamforming.h is not used anywhere. 'git grep rtw_beamforming.h' returns nothing, remove the file. Signed-off-by: Michael Straube --- .../rtl8723bs/include/rtw_beamforming.h | 127 -- 1 file changed, 127 deletions(-) delete mode 100644 drive

[PATCH 4/6] staging: rtl8723bs: remove blank lines

2018-07-08 Thread Michael Straube
Remove unrequired blank lines as reported by checkpatch. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/core/rtw_ieee80211.c| 31 --- 1 file changed, 31 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core

[PATCH 6/6] staging: rtl8723bs: remove braces from single if statement

2018-07-08 Thread Michael Straube
Remove braces from single if statement to follow kernel coding style. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging

[PATCH 5/6] staging: rtl8723bs: add missing blank lines

2018-07-08 Thread Michael Straube
Add missing blank lines after declarations as reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core

[PATCH 2/6] staging: rtl8723bs: replace tab with space

2018-07-08 Thread Michael Straube
Replace tabs with spaces in some function definitions. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core

[PATCH 1/6] staging: rtl8723bs: replace while with shorter for loop

2018-07-08 Thread Michael Straube
Simplify rtw_get_rateset_len() by replacing the while loop with a shorter for loop. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c

[PATCH 3/6] staging: rtl8723bs: fix indentation

2018-07-08 Thread Michael Straube
Remove unrequired extra indentations. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core

[PATCH 2/2] staging: rtl8188eu: replace tabs with spaces

2018-07-08 Thread Michael Straube
Replace tabs with spaces in some function definitions and variable declarations. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b

[PATCH 1/2] staging: rtl8188eu: refactor rtw_macaddr_cfg()

2018-07-08 Thread Michael Straube
reduce the likelihood of mac address collision. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ieee80211.c| 20 +-- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl8188eu/core

Re: [PATCH 3/6] staging: rtl8723bs: fix indentation

2018-07-08 Thread Michael Straube
On 07/08/18 18:46, Joe Perches wrote: On Sun, 2018-07-08 at 12:38 +0200, Michael Straube wrote: Remove unrequired extra indentations. [] diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c [] @@ -69,16 +69,16 @@ int

[PATCH] staging: rtl8723bs: use mac_pton()

2018-07-09 Thread Michael Straube
Use mac_pton() instead of custom approach. Remove the now unused hex2num_i() and hwaddr_aton_i(). Signed-off-by: Michael Straube --- .../staging/rtl8723bs/os_dep/ioctl_linux.c| 41 +-- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/drivers/staging/rtl8723bs

[PATCH 1/5] staging: rtl8723bs: add spaces around '|'

2018-07-11 Thread Michael Straube
Add spaces around '|' to follow kernel coding style. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8

[PATCH 4/5] staging: rtl8723bs: fix comparsions to NULL

2018-07-11 Thread Michael Straube
Fix comparsions to NULL to follow kernel coding style. x == NULL -> !x x != NULL -> x Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8723b

[PATCH 2/5] staging: rtl8723bs: fix lines over 80 characters

2018-07-11 Thread Michael Straube
Fix lines over 80 characters by adding appropriate line breaks. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging

[PATCH 5/5] staging: rtl8723bs: simplify ratetbl_val_2wifirate()

2018-07-11 Thread Michael Straube
Simplify ratetbl_val_2wifirate() by not using extra variable for the return value. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/core/rtw_wlan_util.c| 53 +-- 1 file changed, 14 insertions(+), 39 deletions(-) diff --git a/drivers/staging/rtl8723bs/core

[PATCH 3/5] staging: rtl8723bs: remove blank lines

2018-07-11 Thread Michael Straube
Remove unrequired blank lines as reported by checkpatch. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/core/rtw_wlan_util.c| 30 --- 1 file changed, 30 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core

[PATCH 1/3] staging: rtl8188eu: add spaces around '|'

2018-07-11 Thread Michael Straube
Add spaces around '|' to follow kernel coding style. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging

[PATCH 2/3] staging: rtl8188eu: fix lines over 80 characters

2018-07-11 Thread Michael Straube
Fix lines over 80 characters by adding appropriate line breaks. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers

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

2018-07-11 Thread Michael Straube
Remove unrequired blank lines as reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c| 6 -- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 1 - 2 files changed, 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b

[PATCH] staging: rtl8188eu: add SPDX identifiers

2018-06-25 Thread Michael Straube
This satisfies a checkpatch warning and is the preferred method for notating the license. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c| 10

Re: [PATCH v2 4/4] staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
On 06/25/18 17:12, Michael Straube wrote: + } else{ + /* Use the mac address stored in the Efuse */ ether_addr_copy(mac, mac_addr); } } else { I'll resend the series with this corrected. Regards, Michael

[PATCH v3 4/4] staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
Use the mac_pton() helper to convert the mac address string. The functions key_char2num() and key_2char2num() are not used anywhere else and can be removed. This also has the benefit of validating the input since mac_pton() returns false if the string is not valid. Signed-off-by: Michael

[PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
Use ether_addr_copy() instead of memcpy() to copy the mac address. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging

[PATCH v3 1/4] staging: rtl8723bs: fix comparsion to NULL - coding style

2018-06-26 Thread Michael Straube
Fix comparsion to NULL issues found by checkpatch. Use !x instead of x == NULL. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers

[PATCH v3 2/4] staging: rtl8723bs: refactor rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
ress use a random one to reduce the likelihood of mac address collision. Thanks to Joe Perches and Dan Carpenter. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/core/rtw_ieee80211.c| 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drive

[PATCH] staging: rtl8188eu: remove blank lines

2018-06-26 Thread Michael Straube
Remove unrequired blank lines after open and before close braces. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c| 1 - drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 -- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 2

Re: [PATCH v3 2/4] staging: rtl8723bs: refactor rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
On 06/26/18 19:29, Andy Shevchenko wrote: On Tue, Jun 26, 2018 at 11:14 AM, Michael Straube wrote: Using is_broadcast_ether_addr() and is_zero_ether_addr() instead of testing each byte of the mac[] array for 0xff and 0x00 shortens the code and improves readability. If np == NULL

Re: [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
On 06/26/18 19:32, Andy Shevchenko wrote: On Tue, Jun 26, 2018 at 11:14 AM, Michael Straube wrote: Use ether_addr_copy() instead of memcpy() to copy the mac address. Suggested-by ? I'll add it. Sorry, I was not aware of the Suggested-by tag. Btw, ensure that the source and destin

Re: [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
On 06/26/18 22:17, Joe Perches wrote: On Tue, 2018-06-26 at 21:44 +0200, Michael Straube wrote: On 06/26/18 19:32, Andy Shevchenko wrote: On Tue, Jun 26, 2018 at 11:14 AM, Michael Straube wrote: Use ether_addr_copy() instead of memcpy() to copy the mac address. Suggested-by ? I&#x

Re: [PATCH v3 4/4] staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

2018-06-26 Thread Michael Straube
On 06/26/18 19:34, Andy Shevchenko wrote: On Tue, Jun 26, 2018 at 11:14 AM, Michael Straube wrote: Use the mac_pton() helper to convert the mac address string. The functions key_char2num() and key_2char2num() are not used anywhere else and can be removed. This also has the benefit of

Re: [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-27 Thread Michael Straube
Am 27.06.2018 um 10:33 schrieb Dan Carpenter: On Tue, Jun 26, 2018 at 10:32:09PM +0200, Michael Straube wrote: On 06/26/18 22:17, Joe Perches wrote: On Tue, 2018-06-26 at 21:44 +0200, Michael Straube wrote: On 06/26/18 19:32, Andy Shevchenko wrote: On Tue, Jun 26, 2018 at 11:14 AM, Michael

[PATCH v4 4/4] staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

2018-06-27 Thread Michael Straube
Use the mac_pton() helper to convert the mac address string. The functions key_char2num() and key_2char2num() are not used anywhere else and can be removed. This also has the benefit of validating the input since mac_pton() returns false if the string is not valid. Signed-off-by: Michael

[PATCH v4 2/4] staging: rtl8723bs: refactor rtw_macaddr_cfg()

2018-06-27 Thread Michael Straube
ress use a random one to reduce the likelihood of mac address collision. Thanks to Joe Perches and Dan Carpenter. Suggested-by: Joe Perches Suggested-by: Dan Carpenter Signed-off-by: Michael Straube --- .../staging/rtl8723bs/core/rtw_ieee80211.c| 19 --- 1 file changed, 4

[PATCH v4 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-27 Thread Michael Straube
Use ether_addr_copy() instead of memcpy() to copy the mac address. Suggested-by: Andy Shevchenko Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core

[PATCH v4 1/4] staging: rtl8723bs: fix comparsion to NULL - coding style

2018-06-27 Thread Michael Straube
Fix comparsion to NULL issues found by checkpatch. Use !x instead of x == NULL. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers

[PATCH] staging: rtl8188eu: remove whitespace - coding style

2018-06-27 Thread Michael Straube
Remove unrequired whitespace in some declarations, fix an indentation and remove unrequired blank lines. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu

staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Michael Straube
Hi, I stumbled upon the following if else construct in drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618 if (pwrpriv->bInternalAutoSuspend) { ret = rtw_resume_process(padapter); } else { if (pwrpriv->wowlan_mode || pwrpriv->w

Re: staging: rtl8723bs: bug or pointless if else ?

2018-06-28 Thread Michael Straube
On 06/28/18 11:34, Bastien Nocera wrote: On Thu, 2018-06-28 at 10:22 +0200, Hans de Goede wrote: Hi, On 28-06-18 09:43, Michael Straube wrote: Hi, I stumbled upon the following if else construct in drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618 if (pwrpriv->bInternalAutoSusp

[PATCH] staging: rtl8723bs: remove pointless if else in rtw_sdio_resume()

2018-06-28 Thread Michael Straube
Whether any of the conditions is true or not, the return variable is always set to rtw_resume_process(padapter). Replace the if else construct with a single call to rtw_resume_process(). Also remove the now unused local variable pwrpriv. Signed-off-by: Michael Straube --- drivers/staging

[PATCH 3/3] staging: rtl8188eu: rename Hal8188ERateAdaptive

2018-07-04 Thread Michael Straube
Rename header and source file to avoid CamelCase. Hal8188ERateAdaptive.h -> hal8188e_rate_adaptive.h Hal8188ERateAdaptive.c -> hal8188e_rate_adaptive.c Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/Makefile | 2 +- .../hal/{Hal8188ERateAdap

[PATCH 2/3] staging: rtl8188eu: rename Hal8188EPhyReg.h

2018-07-04 Thread Michael Straube
Rename header file to avoid CamelCase. Hal8188EPhyReg.h -> hal8188e_phy_reg.h Signed-off-by: Michael Straube --- .../rtl8188eu/include/{Hal8188EPhyReg.h => hal8188e_phy_reg.h} | 0 drivers/staging/rtl8188eu/include/rtl8188e_hal.h| 2 +- 2 files changed, 1 insertion

[PATCH 1/3] staging: rtl8188eu: rename Hal8188EPhyCfg.h

2018-07-04 Thread Michael Straube
Rename header file to avoid CamelCase. Hal8188EPhyCfg.h -> hal8188e_phy_cfg.h Signed-off-by: Michael Straube --- .../rtl8188eu/include/{Hal8188EPhyCfg.h => hal8188e_phy_cfg.h} | 0 drivers/staging/rtl8188eu/include/hal_intf.h| 2 +- drivers/staging/rtl8188eu/i

[PATCH] staging: rtl8723bs: remove rtl8192c_rf.h

2018-07-06 Thread Michael Straube
All functions declared in rtl8192c_rf.h have no definition/are not used in any other file/anywhere. Checked with 'git grep '. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/include/rtl8192c_rf.h | 28 --- .../staging/rtl8723bs/include/rtl8723b_rf.h | 1

[PATCH v2 13/17] staging: rtl8188eu: change order of declarations to improve readability

2018-12-18 Thread Michael Straube
Change the order of array declarations in rtw_mlme_ext.c to improve readability. 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/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging

[PATCH v2 02/17] staging: rtl8188eu: replace tabs with spaces in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Replace tabs with spaces where appropriate. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core

[PATCH v2 17/17] staging: rtl8188eu: cleanup brace coding style issues

2018-12-18 Thread Michael Straube
Cleanup brace coding style issues reported by checkpatch. ERROR: space required before the open brace '{' WARNING: braces {} are not necessary for single statement blocks CHECK: Unbalanced braces around else statement Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core

[PATCH v2 08/17] staging: rtl8188eu: remove unused arrays WFD_OUI and WMM_INFO_OUI

2018-12-18 Thread Michael Straube
The arrays WFD_OUI and WMM_INFO_OUI are not used anywhere, so remove them. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 2 -- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/rtl8188eu

[PATCH v2 16/17] staging: rtl8188eu: add spaces around '&' in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Add spaces around '&' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 90 +-- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/

[PATCH v2 15/17] staging: rtl8188eu: change return type of is_basicrate() to bool

2018-12-18 Thread Michael Straube
The function is_basicrate() returns true or false, so change the return type from int to bool. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b

[PATCH v2 12/17] staging: rtl8188eu: make some arrays static in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Make some arrays that are only used in rtw_mlme_ext.c static and remove the corresponding extern declarations from rtw_mlme_ext.h. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 6 +++--- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 5 - 2 files

[PATCH v2 07/17] staging: rtl8188eu: remove unnecessary parentheses in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Remove unnecessary parentheses, most of them reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 322 +- 1 file changed, 161 insertions(+), 161 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b

[PATCH v2 14/17] staging: rtl8188eu: simplify null array initializations

2018-12-18 Thread Michael Straube
Simplfy initialization of null arrays to improve readability and save some lines. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 4 ++-- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCH v2 10/17] staging: rtl8188eu: convert unsigned char arrays to u8

2018-12-18 Thread Michael Straube
Change the type of some arrays from unsigned char to u8. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 16 +++--- .../staging/rtl8188eu/core/rtw_wlan_util.c| 22 +-- drivers/staging/rtl8188eu/include/rtw_mlme.h | 6

[PATCH v2 06/17] staging: rtl8188eu: remove unnecessary comments in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Remove comments from 'endif's where the corresponding 'if' is just a few lines above to improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drive

[PATCH v2 05/17] staging: rtl8188eu: add blank line after declarations

2018-12-18 Thread Michael Straube
Add a missing blank line after declarations in rtw_mlme_ext.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c

[PATCH v2 03/17] staging: rtl8188eu: remove commented declarations in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Remove unused/commented declarations. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 8c566180d808

[PATCH v2 01/17] staging: rtl8188eu: cleanup declarations in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Replace tabs with spaces and/or remove spaces in declarations. Signed-off-by: Michael Straube --- v1 -> v2 one logical thing per patch replace some more tabs with spaces remove some more comments drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 482 +- 1 file changed,

[PATCH v2 04/17] staging: rtl8188eu: remove blank lines between declarations

2018-12-18 Thread Michael Straube
Remove blank lines between declarations in rtw_mlme_ext.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index

[PATCH v2 11/17] staging: rtl8188eu: constify some arrays

2018-12-18 Thread Michael Straube
The values of these arrays in rtw_mlme_ext.c and rtw_wlan_util.c are never changed, so make them const. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 14 +- .../staging/rtl8188eu/core/rtw_wlan_util.c| 26 +-- drivers/staging

[PATCH v2 09/17] staging: rtl8188eu: remove redundant declaration in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
The array REALTEK_96B_IE is already declared in rtw_mlme.h, so remove the declaration in rtw_mlme_ext.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers

[PATCH 9/9] staging: rtl8188eu: cleanup brace coding style issues

2018-12-15 Thread Michael Straube
Cleanup brace coding style issues reported by checkpatch. ERROR: space required before the open brace '{' WARNING: braces {} are not necessary for single statement blocks CHECK: Unbalanced braces around else statement Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core

[PATCH 1/9] staging: rtl8188eu: cleanup declarations in rtw_mlme_ext.c

2018-12-15 Thread Michael Straube
Replace tabs with spaces and/or remove spaces in declarations. Remove unused/commented declarations, remove unnecessary comment, remove blank lines between declarations and add missing lines after declarations. Also clears some line over 80 characters checkpatch warnings. Signed-off-by: Michael

[PATCH 3/9] staging: rtl8188eu: remove unused arrays WFD_OUI and WMM_INFO_OUI

2018-12-15 Thread Michael Straube
The arrays WFD_OUI and WMM_INFO_OUI are not used anywhere, so remove them. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 2 -- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/rtl8188eu

[PATCH 7/9] staging: rtl8188eu: change return type of is_basicrate() to bool

2018-12-15 Thread Michael Straube
The function is_basicrate() returns true or false, so change the return type from int to bool. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b

[PATCH 8/9] staging: rtl8188eu: add spaces aroubd '&' in rtw_mlme_ext.c

2018-12-15 Thread Michael Straube
Add spaces around '&' to follow kernel coding style. Reported by ceckpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 92 ++- 1 file changed, 47 insertions(+), 45 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw

[PATCH 6/9] staging: rtl8188eu: simplify null array initializations

2018-12-15 Thread Michael Straube
Simplfy initialization of null arrays to improve readability and save some lines. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 4 ++-- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCH 5/9] staging: rtl8188eu: constify arrays in rtw_wlan_util.c

2018-12-15 Thread Michael Straube
The values of these arrays are never changed, so make them const. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging

[PATCH 2/9] staging: rtl8188eu: remove unnecessary parentheses in rtw_mlme_ext.c

2018-12-15 Thread Michael Straube
Remove unnecessary parentheses reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 324 +- 1 file changed, 162 insertions(+), 162 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging

[PATCH 4/9] staging: rtl8188eu: convert unsigned char arrays to u8

2018-12-15 Thread Michael Straube
Covert unsigned char arrays to u8 and make them static and/or const where possible. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 18 ++--- .../staging/rtl8188eu/core/rtw_wlan_util.c| 26 +-- drivers/staging/rtl8188eu/include

Re: [PATCH 1/9] staging: rtl8188eu: cleanup declarations in rtw_mlme_ext.c

2018-12-16 Thread Michael Straube
On 12/15/18 5:53 PM, Joe Perches wrote: On Sat, 2018-12-15 at 17:46 +0100, Michael Straube wrote: Replace tabs with spaces and/or remove spaces in declarations. Remove unused/commented declarations, remove unnecessary comment, remove blank lines between declarations and add missing lines after

[PATCH 2/2] staging: rtl8723bs: fix typo in the TODO file

2018-12-10 Thread Michael Straube
HGz -> GHz Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/TODO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/TODO b/drivers/staging/rtl8723bs/TODO index 80dbdaca3a8f..58e02f944b6d 100644 --- a/drivers/staging/rtl8723bs/TODO ++

[PATCH 1/2] staging: rtl8723bs: remove dead code, rtw_port_switch_chk()

2018-12-10 Thread Michael Straube
The function rtw_port_switch_chk() returns always false. Remove the function and related dead code. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 34 --- .../staging/rtl8723bs/include/rtw_mlme_ext.h | 1 - 2 files changed, 35 deletions

[PATCH] staging: fsl-dpaa2: fix SPDX identifiers in header files

2018-12-20 Thread Michael Straube
Use the correct comment style for SPDX identifiers in header files. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 2 +- drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 2 +- drivers/staging/fsl-dpaa2/ethsw/ethsw.h| 2 +- 3 files changed

[PATCH 2/2] staging: gs_fpgaboot: cleanup alignment issue - style

2018-12-22 Thread Michael Straube
Cleanup alignment issue reported by checkpatch. CHECK: Alignment should match open parenthesis Signed-off-by: Michael Straube --- drivers/staging/gs_fpgaboot/io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/gs_fpgaboot/io.c b/drivers/staging/gs_fpgaboot

[PATCH 1/2] staging: gs_fpgaboot: add SPDX identifiers

2018-12-22 Thread Michael Straube
This satisfies a checkpatch warning and is the preferred method for notating the license. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Michael Straube --- drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 12

[PATCH] staging: goldfish: remove GPL boiler plate text

2018-12-22 Thread Michael Straube
The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. There is a SPDX identifier line in goldfish_audio.c. Remove the GPL boiler plate text to reduce file size. Signed-off-by: Michael Straube --- drivers/staging/goldfish/goldfish_audio.c

[PATCH] staging: mt29f_spinand: add SPDX identifiers

2018-12-23 Thread Michael Straube
This satisfies a checkpatch warning and is the preferred method for notating the license. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Michael Straube --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 11

[PATCH] staging: rtl8188eu: Add device code for D-Link DWA-121 rev B1

2019-01-07 Thread Michael Straube
This device was added to the stand-alone driver on github. Add it to the staging driver as well. Link: https://github.com/lwfinger/rtl8188eu/commit/a0619a07cd1e Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a

Re: [PATCH] Revert "staging:r8188eu: use lib80211 CCMP decrypt"

2019-01-01 Thread Michael Straube
On 1/1/19 3:17 AM, Larry Finger wrote: On 12/30/18 12:39 PM, Michael Straube wrote: Commit 6bd082af7e36 ("staging:r8188eu: use lib80211 CCMP decrypt") is causing hardfreeze whenever the driver tries to connect to my wifi network. That makes the driver unusable on my system. Reverting

Re: [PATCH] Revert "staging:r8188eu: use lib80211 CCMP decrypt"

2019-01-01 Thread Michael Straube
try_then_request_module() in rtw_aes_encrypt() and it looks good. Perhaps the same applies for the reverted TKIP changes? Michael On 1/1/19 5:17 AM, Larry Finger wrote: On 12/30/18 12:39 PM, Michael Straube wrote: Commit 6bd082af7e36 ("staging:r8188eu: use lib80211 CCMP decrypt") is causing hardfreez

[PATCH] Revert "staging:r8188eu: use lib80211 CCMP decrypt"

2018-12-30 Thread Michael Straube
c 29 19:21:17 gentoo kernel: BUG: unable to handle kernel NULL pointer dereference at Fixes: 6bd082af7e36 ("staging:r8188eu: use lib80211 CCMP decrypt") Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/Kconfig | 1 - drivers/s

[PATCH 3/4] staging: rtl8188eu: cleanup lines over 80 characters - style

2018-10-09 Thread Michael Straube
Clear 'line over 80 characters' checkpatch warnings by adding appropriate line breaks and moving a comment. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drive

[PATCH 4/4] staging: rtl8188eu: remove whitespace - style

2018-10-09 Thread Michael Straube
Replace tabs with spaces and/or remove extra spaces where appropriate. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/xmit_linux.c b/drivers

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

2018-10-09 Thread Michael Straube
Add spaces around '*' and '/' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/xmi

[PATCH 0/4] staging: rtl8188eu: cleanup style issues in xmit_linux.c

2018-10-09 Thread Michael Straube
This series clears most of the remaining style/checkpatch issues in the file os_dep/xmit_linux.c. Michael Straube (4): staging: rtl8188eu: use __func__ instead of hardcoded name - style staging: rtl8188eu: add spaces around operators - style staging: rtl8188eu: cleanup lines over 80

[PATCH 1/4] staging: rtl8188eu: use __func__ instead of hardcoded name - style

2018-10-09 Thread Michael Straube
Use __func__ instead of hardcoded function name in rtw_xmit_entry(). Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep

Re: [PATCH 4/5] staging: rtl8188eu: change return type of rtw_hal_xmit()

2018-10-28 Thread Michael Straube
On 10/28/18 1:08 AM, Joe Perches wrote: On Sat, 2018-10-27 at 15:57 -0700, Joe Perches wrote: On Sat, 2018-10-27 at 22:28 +0200, Michael Straube wrote: The function rtw_hal_xmit() returns true or false. Change the return type from s32 to bool. [] diff --git a/drivers/staging/rtl8188eu/hal

Which SPDX Identifier for files without explicit GPL version

2018-10-28 Thread Michael Straube
Hi, which GPL version should be used in SPDX Identifiers for files that are GPL licensed but do not mention any version? It is not clear to me after reading license-rules.rst. For example: /** * Copyright(c) 2008 - 201

Re: Which SPDX Identifier for files without explicit GPL version

2018-10-28 Thread Michael Straube
On 10/28/18 12:27 PM, Greg Kroah-Hartman wrote: On Sun, Oct 28, 2018 at 11:04:06AM +0100, Michael Straube wrote: Hi, which GPL version should be used in SPDX Identifiers for files that are GPL licensed but do not mention any version? It is not clear to me after reading license-rules.rst. For

Re: Which SPDX Identifier for files without explicit GPL version

2018-10-28 Thread Michael Straube
On 10/28/18 3:13 PM, Greg Kroah-Hartman wrote: On Sun, Oct 28, 2018 at 02:22:40PM +0100, Michael Straube wrote: On 10/28/18 12:27 PM, Greg Kroah-Hartman wrote: On Sun, Oct 28, 2018 at 11:04:06AM +0100, Michael Straube wrote: Hi, which GPL version should be used in SPDX Identifiers for files

[PATCH 7/8] staging: rtl8188eu: cleanup long lines in stop_sta_xmit()

2018-10-11 Thread Michael Straube
Line break lines over 80 characters in stop_sta_xmit() to clear checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b

[PATCH 8/8] staging: rtl8188eu: remove whitespace in qos_acm()

2018-10-11 Thread Michael Straube
Remove whitespace in qos_acm() to improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c

[PATCH 1/8] staging: rtl8188eu: cleanup missing spaces around operators

2018-10-11 Thread Michael Straube
Clear all missing spaces around operators checkpatch issues in the file core/rtw_xmit.c. Use '+=' or '-=' where possible. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 60 ++- 1 file changed, 36 insertions(+), 24 deleti

[PATCH 2/8] staging: rtl8188eu: use __func__ in qos_acm()

2018-10-11 Thread Michael Straube
Use __func__ instead of hardcoded name in qos_acm(). Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu

[PATCH 3/8] staging: rtl8188eu: cleanup alignment issue

2018-10-11 Thread Michael Straube
Clear a 'Alignment should match open parenthesis' checkpatch issue. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8

[PATCH 5/8] staging: rtl8188eu: cleanup block comments

2018-10-11 Thread Michael Straube
Cleanup block comments to clear 'please, no space before tabs' and 'line over 80 characters' checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-)

<    1   2   3   4   5   6   >