[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/rtl

[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 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] 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

RE: [PATCH] x86/hyper-v: Zero out the VP assist page to fix CPU offlining

2019-07-07 Thread Michael Kelley
r the VP ASSIST PAGE is disabled in hv_cpu_die(). > + */ > if (!*hvp) > - *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL); > + *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > + PAGE_KERNEL); > > if (*hvp) { > u64 val; > -- > 2.19.1 Reviewed-by: Michael Kelley

[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: 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 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/d

[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/rtl

[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/s

[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/drive

[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(

RE: [PATCH v2] x86/hyper-v: Zero out the VP ASSIST PAGE to fix CPU offlining

2019-07-30 Thread Michael Kelley
r* the > + * EOI optimization is disabled in hv_cpu_die(), otherwise a CPU may > + * not be stopped in the case of CPU offlining and the VM will hang. > + */ > if (!*hvp) > - *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL); > + *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO, > + PAGE_KERNEL); > > if (*hvp) { > u64 val; > -- > 2.19.1 Reviewed-by: Michael Kelley

Re: [PATCH] staging: iio: ad7192: Use the dedicated reset function

2017-09-14 Thread Michael Hennerich
On 14.09.2017 15:50, Stefan Popa wrote: SPI host drivers can use DMA to transfer data, so the buffer should be properly allocated. Keeping it on the stack could cause an undefined behavior. The dedicated reset function solves this issue. Signed-off-by: Stefan Popa Acked-by: Michael

Re: [PATCH] staging: vboxvideo: Fix reporting invalid suggested-offset-properties

2017-10-12 Thread Michael Thayer
x_hint and y_hint against ~0 below, rather than -1 (see inline below)? Other than that, looks good to me. I will send Gianfranco a patch to test against Ubuntu's version of the driver. Regards Michael > Reported-by: Gianfranco Costamagna > Cc: sta...@vger.kernel.org > Cc: Michael

[PATCH v2] staging: rtl8723bs: remove rtw_set_tx_chksum_offload()

2018-06-25 Thread Michael Straube
The function rtw_set_tx_chksum_offload() has empty definition. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 -- drivers/staging/rtl8723bs/include/xmit_osdep.h | 2 -- drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 5 - 3 files changed, 9 deletions

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

2018-06-25 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 v2 2/4] staging: rtl8723bs: refactor rtw_macaddr_cfg()

2018-06-25 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 v2 4/4] staging: rtl8723bs: use mac_pton() in rtw_macaddr_cfg()

2018-06-25 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 v2 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg()

2018-06-25 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] 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, Mi

[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 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 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 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 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 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 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] 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
t, ret is always set to: ret = rtw_resume_process(padapter) Is this a bug or is the if else construct just pointless? Regards, Michael ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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] staging: rtl8188eu: remove unnecessary parentheses

2018-06-29 Thread Michael Straube
Remove unnecessary parentheses as reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 22 ++-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c b/drivers/staging

[PATCH] staging: rtl8723bs: fix line over 80 characters

2018-06-30 Thread Michael Straube
Fix line over 80 characters by replacing tab with space. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c index

[PATCH] staging: rtl8723bs: fix comparsion to true/false and brace issues

2018-06-30 Thread Michael Straube
Use if(x) and if(!x) instead of comparsion to true/false. Reported by checkpatch. Remove unrequired braces from single if else statements. Add missing space after else: else{ -> else { Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_btcoex.c | 13 ++--- driv

Re: [PATCH] staging: rtl8723bs: fix comparsion to true/false and brace issues

2018-06-30 Thread Michael Straube
On 06/30/18 12:08, Andreas Schwab wrote: On Jun 30 2018, Michael Straube wrote: @@ -115,11 +115,10 @@ s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *padapter) void rtw_btcoex_SetManualControl(struct adapter *padapter, u8 manual) { - if (true == manual) { + if

[PATCH v2 2/2] staging: rtl8723bs: simplify if else statement

2018-06-30 Thread Michael Straube
Simplify if else statement to a single function call by passing the variable. Suggested-by: Andreas Schwab Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_btcoex.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/core

[PATCH v2 1/2] staging: rtl8723bs: fix comparsion to true/false and brace issues

2018-06-30 Thread Michael Straube
Use if(x) and if(!x) instead of comparsion to true/false. Reported by checkpatch. Remove unrequired braces from single if else statement. Add missing space after else: else{ -> else { Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_btcoex.c | 8 drivers/stag

[PATCH] staging: rtl8188eu: remove rtw_ioctl_rtl.h

2018-06-30 Thread Michael Straube
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. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/rtw_ioctl_rtl.h | 66 --- 1 file changed, 66 deletions(-) d

[PATCH 1/3] staging: rtl8188eu: reorder switch cases and remove default break

2018-06-30 Thread Michael Straube
Reorder the cases of a switch statement to be in ascending order. Remove unrequired break from default case. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_com.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal

[PATCH 3/3] staging: rtl8188eu: fix block comments - coding style

2018-06-30 Thread Michael Straube
Write multiple single line comments as block comments to follow kernel coding style and improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_com.c | 50 ++--- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/drivers/staging

[PATCH 2/3] staging: rtl8188eu: move return type to functions definition line

2018-06-30 Thread Michael Straube
The return type of a function should be on the same line as the definition. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_com.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_com.c b/drivers/staging/rtl8188eu

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 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 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 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] 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 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 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 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 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 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

[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

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 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 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 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 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 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/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 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 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

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

2018-07-11 Thread Michael Straube
On 07/08/18 19:36, Michael Straube wrote: On 07/08/18 18:46, Joe Perches wrote: On Sun, 2018-07-08 at 12:38 +0200, Michael Straube wrote: uint rtw_is_cckratesonly_included(u8 *rate) { while (*rate) {     u8 r = *rate & 0x7f;     if (r != 2 && r != 4 &&

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

2018-07-11 Thread Michael Straube
On 07/11/18 18:03, Joe Perches wrote: On Wed, 2018-07-11 at 15:57 +0200, Michael Straube wrote: On 07/08/18 19:36, Michael Straube wrote: On 07/08/18 18:46, Joe Perches wrote: On Sun, 2018-07-08 at 12:38 +0200, Michael Straube wrote: uint rtw_is_cckratesonly_included(u8 *rate) { while

[PATCH 1/5] staging: rtl8723bs: remove unused code

2018-07-12 Thread Michael Straube
Remove commented rtw_is_cckrates_included() and rtw_is_cckratesonly_included() from os_dep/ioctl_linux.c. Both are defined in core/rtw_ieee80211.c. Signed-off-by: Michael Straube --- .../staging/rtl8723bs/os_dep/ioctl_linux.c| 32 --- 1 file changed, 32 deletions(-) diff

[PATCH 2/5] staging: rtl8723bs: refactor rtw_is_cckrates_included()

2018-07-12 Thread Michael Straube
Refactor rtw_is_cckrates_included() to improve readability and slightly reduce object file size. Suggested-by: Joe Perches Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 5/5] staging: rtl8723bs: fix comparsions to true

2018-07-12 Thread Michael Straube
Use if(x) instead of if(x == true). Signed-off-by: Michael Straube --- .../staging/rtl8723bs/core/rtw_ieee80211.c| 6 ++-- .../staging/rtl8723bs/os_dep/ioctl_linux.c| 28 +-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtl8723bs/core

[PATCH 4/5] staging: rtl8723bs: change return type to bool

2018-07-12 Thread Michael Straube
Both rtw_is_cckrates_included() and rtw_is_cckratesonly_included() return true or false. Change the return type from uint to bool. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++-- drivers/staging/rtl8723bs/include/ieee80211.h | 4 ++-- 2 files changed

[PATCH 3/5] staging: rtl8723bs: refactor rtw_is_cckratesonly_included

2018-07-12 Thread Michael Straube
Refactor rtw_is_cckratesonly_included() to improve readability and slightly reduce object file size. Suggested-by: Joe Perches Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH] staging: rtl8188eu: use strlcpy instead of strncpy

2018-07-12 Thread Michael Straube
Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c index 80ccd19e776d..0f82a8c330f8 100644 --- a/drive

[PATCH] staging: rtl8188eu: remove is_{multicast,broadcast}_mac_addr

2018-07-13 Thread Michael Straube
. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_recv.c | 3 +-- drivers/staging/rtl8188eu/include/ieee80211.h | 11 --- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c b/drivers/staging/rtl8188eu/core

[PATCH 1/6] staging: rtl8188eu: do not line break function definition

2018-07-14 Thread Michael Straube
Do not line break function definition of Efuse_PowerSwitch(). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl8188eu/core

[PATCH 5/6] staging: rtl8188eu: add spaces around '+'

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

[PATCH 2/6] staging: rtl8188eu: rename Efuse_PowerSwitch

2018-07-14 Thread Michael Straube
Rename function to avoid CamelCase. Efuse_PowerSwitch -> efuse_power_switch Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c| 8 drivers/staging/rtl8188eu/include/rtw_efuse.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/driv

[PATCH 3/6] staging: rtl8188eu: rename function parameters

2018-07-14 Thread Michael Straube
Rename function parameters to avoid CamelCase. bWrite -> write PwrState -> pwrstate Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c| 8 drivers/staging/rtl8188eu/include/rtw_efuse.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff -

[PATCH 4/6] staging: rtl8188eu: rename variable

2018-07-14 Thread Michael Straube
Rename variable to avoid CamelCase. tmpV16 -> tmpv16 Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 26 +++--- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl818

[PATCH 6/6] staging: rtl8188eu: remove redundant header file

2018-07-14 Thread Michael Straube
Both functions declared in rtl8188e_led.h are also declared in rtw_led.h which is included from drv_types.h. Remove rtl8188e_led.h and it's includes. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_led.c | 1 - drivers/staging/rtl8188eu/hal/usb_halinit.c

Re: [PATCH 2/2] staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames

2018-07-16 Thread Michael Straube
On 07/14/18 19:54, Ivan Safonov wrote: Put data to skb, decrypt with lib80211_crypt_ccmp, and place back to tx buffer. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_security.c | 778 +++--- 1 file changed, 72 insertions(+), 706 deletions(-) Hi Ivan

[PATCH 1/2] staging: rtl8188eu: remove MacAddr_isBcst macro

2018-07-16 Thread Michael Straube
Use is_broadcast_ether_addr instead of the MacAddr_isBcst macro. The macro is not used anywhere else, so remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_recv.c | 2 +- drivers/staging/rtl8188eu/include/wifi.h | 7 --- 2 files changed, 1 insertion(+), 8

[PATCH 2/2] staging: rtl8188eu: use is_multicast_ether_addr

2018-07-16 Thread Michael Straube
Use is_multicast_ether_addr instead of IS_MCAST. By definition the broadcast address is also a multicast address, so checking for !multicast in the conditional is sufficient. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_recv.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] staging: rtl8188eu: remove blank lines

2018-07-16 Thread Michael Straube
Remove unrequired blank lines as reported by checkpatch. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ieee80211.c| 8 .../staging/rtl8188eu/core/rtw_ioctl_set.c| 18 drivers/staging/rtl8188eu/core/rtw_led.c | 1 - drivers/staging/rtl8188eu/core

[PATCH 1/8] staging: rtl8188eu: remove blank lines

2018-07-21 Thread Michael Straube
Remove unrequired blank lines reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm.c | 1 - drivers/staging/rtl8188eu/hal/phy.c | 3 --- drivers/staging/rtl8188eu/hal/rf.c | 1 - drivers/staging/rtl8188eu/hal

[PATCH 6/8] staging: rtl8188eu: remove unnecessary parentheses

2018-07-21 Thread Michael Straube
Remove unnecessary parentheses. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ieee80211.c| 20 +-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl8188eu/core

<    1   2   3   4   5   6   7   8   9   10   >