[PATCH 3/8] staging: rtl8188eu: refactor rtw_is_cckratesonly_included()

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

[PATCH 4/8] staging: rtl8188eu: change return type to bool

2018-07-21 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/rtl8188eu/core/rtw_ieee80211.c | 4 ++-- drivers/staging/rtl8188eu/include/ieee80211.h | 4 ++-- 2 files changed

[PATCH 5/8] staging: rtl8188eu: fix comparsions to true

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

[PATCH 2/8] staging: rtl8188eu: refactor rtw_is_cckrates_included()

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

[PATCH 7/8] staging: rtl8188eu: replace tabs with spaces

2018-07-21 Thread Michael Straube
Replace tabs with spaces or just remove tabs where appropriate. 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/drivers/staging

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

2018-07-21 Thread Michael Straube
Fix two lines over 80 characters by removing unnecessary parentheses. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/staging

[PATCH 2/4] staging: rtl8188eu: remove unused CAM_empty_entry()

2018-07-25 Thread Michael Straube
The function CAM_empty_entry() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 5 - drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers

[PATCH 4/4] staging: rtl8188eu: remove unused rtw_get_oper_choffset()

2018-07-25 Thread Michael Straube
The function rtw_get_oper_choffset() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 5 - drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers

[PATCH 3/4] staging: rtl8188eu: remove unused rtw_get_oper_bw()

2018-07-25 Thread Michael Straube
The function rtw_get_oper_bw() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 5 - drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers

[PATCH 1/4] staging: rtl8188eu: remove unused ODM_RASupport_Init()

2018-07-25 Thread Michael Straube
The function ODM_RASupport_Init() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c | 10 -- .../staging/rtl8188eu/include/hal8188e_rate_adaptive.h | 2 -- 2 files changed, 12 deletions

[PATCH] staging: rtl8188eu: remove unused sreset_get_wifi_status()

2018-07-26 Thread Michael Straube
The function sreset_get_wifi_status() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_sreset.c | 27 --- .../staging/rtl8188eu/include/rtw_sreset.h| 1 - 2 files changed, 28 deletions(-) diff

[PATCH 3/3] staging: rtl8188eu: remove unused rtw_calculate_wlan_pkt_size_by_attribue()

2018-07-28 Thread Michael Straube
The function rtw_calculate_wlan_pkt_size_by_attribue() also defined as rtw_wlan_pkt_size() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c| 18 -- drivers/staging/rtl8188eu/include/rtw_xmit.h

[PATCH 1/3] staging: rtl8188eu: fix comparsions to NULL - coding style

2018-07-28 Thread Michael Straube
Use !x instead of x == NULL. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c index 89843201a338

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

2018-07-28 Thread Michael Straube
Replace tabs with spaces, clears a checkpatch 'line over 80 characters' warning. 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/drive

[PATCH 2/8] staging: rtl8188eu: remove unused should_forbid_n_rate()

2018-07-29 Thread Michael Straube
The function should_forbid_n_rate() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_wlan_util.c| 35 --- .../staging/rtl8188eu/include/rtw_mlme_ext.h | 1 - 2 files changed, 36 deletions(-) diff --git

[PATCH 8/8] staging: rtl8188eu: use is_broadcast_ether_addr

2018-07-29 Thread Michael Straube
Use is_broadcast_ether_addr instead of checking each byte of the address array for 0xff. Shortens the code and improves readability. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/os_dep/ioctl_linux.c| 34 ++- 1 file changed, 10 insertions(+), 24 deletions(-) diff

[PATCH 4/8] staging: rtl8188eu: remove redundant includes

2018-07-29 Thread Michael Straube
Both osdep_service.h and drv_types.h are included from hal_intf.h, so remove the redundant includes from hal_intf.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_intf.c b

[PATCH 6/8] staging: rtl8188eu: fix comparsion to true

2018-07-29 Thread Michael Straube
Use if(x) instead of if(x == true). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_intf.c b/drivers/staging/rtl8188eu/hal/hal_intf.c index c43e7b438058

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

2018-07-29 Thread Michael Straube
Remove unnecessary parentheses, also clears checkpatch issues about missing spaces around '-'. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal

[PATCH 3/8] staging: rtl8188eu: remove unused rtw_handle_tkip_mic_err()

2018-07-29 Thread Michael Straube
The function rtw_handle_tkip_mic_err() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/recv_osdep.h| 2 -- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 36 --- 2 files changed, 38 deletions(-) diff

[PATCH 5/8] staging: rtl8188eu: replace tabs with spaces

2018-07-29 Thread Michael Straube
Replace tabs with spaces in function definition and variable declarations. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_intf.c b/drivers/staging/rtl8188eu

[PATCH 1/8] staging: rtl8188eu: remove unused dump_txrpt_ccx_88e()

2018-07-29 Thread Michael Straube
The function dump_txrpt_ccx_88e() is nerver used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188e_xmit.c | 22 --- .../staging/rtl8188eu/include/rtl8188e_xmit.h | 1 - 2 files changed, 23 deletions(-) diff --git a

Re: [PATCH 8/8] staging: rtl8188eu: use is_broadcast_ether_addr

2018-07-29 Thread Michael Straube
On 07/29/18 19:21, Joe Perches wrote: On Sun, 2018-07-29 at 19:08 +0200, Michael Straube wrote: Use is_broadcast_ether_addr instead of checking each byte of the address array for 0xff. Shortens the code and improves readability. You should show in the commit log that sta_addr is __aligned(2

Re: [PATCH 8/8] staging: rtl8188eu: use is_broadcast_ether_addr

2018-07-29 Thread Michael Straube
On 07/29/18 19:59, Joe Perches wrote: On Sun, 2018-07-29 at 19:42 +0200, Michael Straube wrote: On 07/29/18 19:21, Joe Perches wrote: On Sun, 2018-07-29 at 19:08 +0200, Michael Straube wrote: Use is_broadcast_ether_addr instead of checking each byte of the address array for 0xff. Shortens the

Re: [PATCH 8/8] staging: rtl8188eu: use is_broadcast_ether_addr

2018-07-29 Thread Michael Straube
On 07/29/18 20:21, Michael Straube wrote: On 07/29/18 19:59, Joe Perches wrote: On Sun, 2018-07-29 at 19:42 +0200, Michael Straube wrote: On 07/29/18 19:21, Joe Perches wrote: On Sun, 2018-07-29 at 19:08 +0200, Michael Straube wrote: Use is_broadcast_ether_addr instead of checking each byte

[PATCH v2 7/7] staging: rtl8188eu: remove unnecessary parentheses

2018-07-29 Thread Michael Straube
Remove unnecessary parentheses, also clears checkpatch issues about missing spaces around '-'. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal

[PATCH v2 1/7] staging: rtl8188eu: remove unused dump_txrpt_ccx_88e()

2018-07-29 Thread Michael Straube
The function dump_txrpt_ccx_88e() is nerver used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- v2: removed last patch (8/8) from the series drivers/staging/rtl8188eu/hal/rtl8188e_xmit.c | 22 --- .../staging/rtl8188eu/include/rtl8188e_xmit.h | 1

[PATCH v2 2/7] staging: rtl8188eu: remove unused should_forbid_n_rate()

2018-07-29 Thread Michael Straube
The function should_forbid_n_rate() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_wlan_util.c| 35 --- .../staging/rtl8188eu/include/rtw_mlme_ext.h | 1 - 2 files changed, 36 deletions(-) diff --git

[PATCH v2 3/7] staging: rtl8188eu: remove unused rtw_handle_tkip_mic_err()

2018-07-29 Thread Michael Straube
The function rtw_handle_tkip_mic_err() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/recv_osdep.h| 2 -- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 36 --- 2 files changed, 38 deletions(-) diff

[PATCH v2 5/7] staging: rtl8188eu: replace tabs with spaces

2018-07-29 Thread Michael Straube
Replace tabs with spaces in function definition and variable declarations. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_intf.c b/drivers/staging/rtl8188eu

[PATCH v2 6/7] staging: rtl8188eu: fix comparsion to true

2018-07-29 Thread Michael Straube
Use if(x) instead of if(x == true). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_intf.c b/drivers/staging/rtl8188eu/hal/hal_intf.c index c43e7b438058

[PATCH v2 4/7] staging: rtl8188eu: remove redundant includes

2018-07-29 Thread Michael Straube
Both osdep_service.h and drv_types.h are included from hal_intf.h, so remove the redundant includes from hal_intf.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/hal_intf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_intf.c b

Re: [PATCH v2 3/7] staging: rtl8188eu: remove unused rtw_handle_tkip_mic_err()

2018-07-30 Thread Michael Straube
On 07/30/18 11:02, Greg KH wrote: On Sun, Jul 29, 2018 at 08:54:43PM +0200, Michael Straube wrote: The function rtw_handle_tkip_mic_err() is never used, so remove it. Discovered by cppcheck. That's a bad tool then, as this is used, and the build breaks when this patch is applied :(

Re: [PATCH v2 3/7] staging: rtl8188eu: remove unused rtw_handle_tkip_mic_err()

2018-07-30 Thread Michael Straube
On 07/30/18 11:27, Michael Straube wrote: On 07/30/18 11:02, Greg KH wrote: On Sun, Jul 29, 2018 at 08:54:43PM +0200, Michael Straube wrote: The function rtw_handle_tkip_mic_err() is never used, so remove it. Discovered by cppcheck. That's a bad tool then, as this is used, and the

Re: [PATCH 8/8] staging: rtl8188eu: use is_broadcast_ether_addr

2018-07-30 Thread Michael Straube
On 07/29/18 22:05, Joe Perches wrote: On Sun, 2018-07-29 at 20:21 +0200, Michael Straube wrote: On 07/29/18 19:59, Joe Perches wrote: On Sun, 2018-07-29 at 19:42 +0200, Michael Straube wrote: On 07/29/18 19:21, Joe Perches wrote: On Sun, 2018-07-29 at 19:08 +0200, Michael Straube wrote: Use

[PATCH 4/7] staging: rtl8188eu: remove unnecessary parentheses - style

2018-07-31 Thread Michael Straube
Remove unnecessary parentheses to improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/staging/rtl8188eu/os_dep

[PATCH 1/7] staging: rtl8188eu: use is_broadcast_ether_addr

2018-07-31 Thread Michael Straube
Use is_broadcast_ether_addr instead of checking each byte of the address array for 0xff. Shortens the code and improves readability. As required by is_broadcast_ether_addr, the address array sta_addr is properly aligned in all uses. Thanks to Joe Perches. Signed-off-by: Michael Straube

[PATCH 5/7] staging: rtl8188eu: remove unused rtw_add_bcn_ie()

2018-07-31 Thread Michael Straube
The function rtw_add_bcn_ie() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c| 66 -- drivers/staging/rtl8188eu/include/rtw_ap.h | 2 - 2 files changed, 68 deletions(-) diff --git a/drivers

[PATCH 2/7] staging: rtl8188eu: fix indentation - style

2018-07-31 Thread Michael Straube
Fix indentation to clear checkpatch warnings. WARNING: suspect code indent for conditional statements Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 4 ++-- drivers/staging/rtl8188eu/os_dep/usb_intf.c| 2 +- 2 files changed, 3 insertions(+), 3 deletions

[PATCH 3/7] staging: rtl8188eu: fix comparsions to NULL - style

2018-07-31 Thread Michael Straube
Use x instead of x != NULL. Use !x instead of x == NULL. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 2 +- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 6 +++--- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 10 +- drivers/staging

[PATCH 7/7] staging: rtl8188eu: rename odm_RTL8188E - style

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

[PATCH 6/7] staging: rtl8188eu: remove unused rtw_remove_bcn_ie()

2018-07-31 Thread Michael Straube
The function rtw_remove_bcn_ie() is never used, so remove it. Discovered by cppcheck. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ap.c| 40 -- drivers/staging/rtl8188eu/include/rtw_ap.h | 2 -- 2 files changed, 42 deletions(-) diff --git a

[PATCH] staging: rtl8188eu: use is_multicast_ether_addr

2018-08-01 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST. The variable for the result of IS_MCAST was only used in the if conditional. So remove the extra variable and move the call to is_multicast_ether_addr into the conditional. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core

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

2018-08-02 Thread Michael Straube
On 07/16/18 15:30, Michael Straube wrote: 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

[PATCH 1/6] staging: rtl8188eu: use is_multicast_ether_addr

2018-08-02 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in os_dep/recv_linux.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/recv_linux.c b/drivers

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

2018-08-02 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in hal/rtl8188eu_xmit.c. There is only one use, so remove the extra variable for the result of IS_MCAST. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH 6/6] staging: rtl8188eu: remove whitespace, add missing blank line

2018-08-02 Thread Michael Straube
Replace tabs with spaces and/or remove spaces where appropriate. Add a missing blank line after declarations. Also clears checkpatch warnings. WARNING: Statements should start on a tabstop WARNING: suspect code indent for conditional statements (8, 17) Signed-off-by: Michael Straube

[PATCH 5/6] staging: rtl8188eu: use is_multicast_ether_addr

2018-08-02 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_sta_mgt.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c b/drivers/staging

[PATCH 3/6] staging: rtl8188eu: cleanup block comment - style

2018-08-02 Thread Michael Straube
Cleanup a block comment to conform with kernel coding style. Also cleans 'line over 80 characters' checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drive

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

2018-08-02 Thread Michael Straube
Replace tabs with spaces and/or remove spaces where appropriate. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/hal/rtl8188eu_xmit.c| 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c b/drivers

[PATCH 1/4] staging: rtl8188eu: rename rtw_IOL_applied

2018-08-04 Thread Michael Straube
Rename rtw_IOL_applied to be all lowercase. rtw_IOL_applied -> rtw_iol_applied Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c| 2 +- drivers/staging/rtl8188eu/core/rtw_iol.c | 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c

[PATCH 3/4] staging: rtl8188eu: remove redundant include

2018-08-04 Thread Michael Straube
The header osdep_service.h is included from drv_types.h, so remove the redundant include. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/rtw_iol.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_iol.h b/drivers/staging/rtl8188eu

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

2018-08-04 Thread Michael Straube
In the header rtw_iol.h there is only one function declared. Remove the include of rtw_iol.h from files that do not use this function. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/mac_cfg.c| 1 - drivers/staging/rtl8188eu/hal/phy.c| 1 - drivers/staging

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

2018-08-04 Thread Michael Straube
Remove unnecessary parentheses from if conditions. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_iol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_iol.c b/drivers/staging/rtl8188eu/core/rtw_iol.c index

[PATCH] staging: rtl8188eu: use phydm_regdefine11n.h from rtlwifi

2018-08-05 Thread Michael Straube
the rtl8188eu code. rtl8188eu: #define ODM_REG_RX_PATH_11N 0xC04 rtlwifi: #defnie ODM_REG_BB_RX_PATH_11N 0xC04 Signed-off-by: Michael Straube --- .../rtl8188eu/include/odm_RegDefine11N.h | 158 -- .../staging/rtl8188eu/include/odm_precomp.h | 2 +- 2 files changed, 1

[PATCH v2 2/6] staging: rtl8188eu: use is_multicast_ether_addr in rtl8188eu_xmit.c

2018-08-05 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in hal/rtl8188eu_xmit.c. There is only one use, so remove the extra variable for the result of IS_MCAST. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH v2 1/6] staging: rtl8188eu: use is_multicast_ether_addr in recv_linux.c

2018-08-05 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in os_dep/recv_linux.c. Signed-off-by: Michael Straube --- v2: changed duplicate subjects drivers/staging/rtl8188eu/os_dep/recv_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu

[PATCH v2 5/6] staging: rtl8188eu: use is_multicast_ether_addr in rtw_sta_mgt.c

2018-08-05 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_sta_mgt.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c b/drivers/staging

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

2018-08-05 Thread Michael Straube
Replace tabs with spaces and/or remove spaces where appropriate. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/hal/rtl8188eu_xmit.c| 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c b/drivers

[PATCH v2 6/6] staging: rtl8188eu: remove whitespace, add missing blank line

2018-08-05 Thread Michael Straube
Replace tabs with spaces and/or remove spaces where appropriate. Add a missing blank line after declarations. Also clears checkpatch warnings. WARNING: Statements should start on a tabstop WARNING: suspect code indent for conditional statements (8, 17) Signed-off-by: Michael Straube

[PATCH v2 3/6] staging: rtl8188eu: cleanup block comment - style

2018-08-05 Thread Michael Straube
Cleanup a block comment to conform with kernel coding style. Also cleans 'line over 80 characters' checkpatch warnings. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drive

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

2018-08-05 Thread Michael Straube
14 [ 22.621025] R10: R11: 0293 R12: 559278761700 [ 22.621026] R13: 0148 R14: R15: 5592787aa860 Revert the commit fixes the issues and dmesg looks good again. Fixes: 515ce733e86e ("staging:r8188eu: Use lib80211 to encryp

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

2018-08-05 Thread Michael Straube
On 08/05/18 16:07, Greg Kroah-Hartman wrote: On Thu, Aug 02, 2018 at 06:35:05PM +0200, Michael Straube wrote: On 07/16/18 15:30, Michael Straube wrote: 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

[PATCH] staging: rtl8188eu: remove unused mp_custom_oid.h

2018-08-08 Thread Michael Straube
The header mp_custom_oid.h is not used, so remove it. 'git grep mp_custom_oid.h drivers/staging/rtl8188eu/' returns nothing. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/mp_custom_oid.h | 339 -- 1 file changed, 339 deletions(-) delete mode 1006

[PATCH 5/5] staging: rtl8188eu: use phydm_reg.h from rtlwifi

2018-08-09 Thread Michael Straube
Use rtlwifi/phydm/phydm_reg.h instead of odm_reg.h and remove the now unused odm_reg.h. All defines from odm_reg.h are defined with the same values in rtlwifi/phydm/phydm_reg.h. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/odm_precomp.h | 2 +- drivers/staging/rtl8188eu

[PATCH 4/5] staging: rtl8188eu: remove unused IS_MCAST

2018-08-09 Thread Michael Straube
Remove the now unused IS_MCAST. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/wifi.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index 4a56e54e38f6..0a952edf8a81 100644

[PATCH 3/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_xmit.c

2018-08-09 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_xmit.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 35 +++ 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b

[PATCH 2/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_recv.c

2018-08-09 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_recv.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_recv.c | 35 --- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c b

[PATCH 1/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_security.c

2018-08-09 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_security.c. 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/rtl8188eu/core/rtw_security.c b/drivers

Re: [PATCH 3/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_xmit.c

2018-08-09 Thread Michael Straube
On 8/9/18 7:13 PM, Joe Perches wrote: On Thu, 2018-08-09 at 19:01 +0200, Michael Straube wrote: Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_xmit.c. Have you verified that all accesses are __aligned(2) ? If so, please state that in the patch description. diff --git a

Re: [PATCH 3/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_xmit.c

2018-08-09 Thread Michael Straube
On 8/9/18 7:51 PM, Joe Perches wrote: On Thu, 2018-08-09 at 19:42 +0200, Michael Straube wrote: On 8/9/18 7:13 PM, Joe Perches wrote: On Thu, 2018-08-09 at 19:01 +0200, Michael Straube wrote: Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_xmit.c. Have you verified that

Re: [PATCH 3/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_xmit.c

2018-08-09 Thread Michael Straube
On 8/9/18 8:03 PM, Michael Straube wrote: On 8/9/18 7:51 PM, Joe Perches wrote: On Thu, 2018-08-09 at 19:42 +0200, Michael Straube wrote: On 8/9/18 7:13 PM, Joe Perches wrote: On Thu, 2018-08-09 at 19:01 +0200, Michael Straube wrote: Use is_multicast_ether_addr instead of custom IS_MCAST in

[PATCH v2 4/5] staging: rtl8188eu: remove unused IS_MCAST

2018-08-10 Thread Michael Straube
Remove the now unused IS_MCAST. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/wifi.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index 4a56e54e38f6..0a952edf8a81 100644

[PATCH v2 5/5] staging: rtl8188eu: use phydm_reg.h from rtlwifi

2018-08-10 Thread Michael Straube
Use rtlwifi/phydm/phydm_reg.h instead of odm_reg.h and remove the now unused odm_reg.h. All defines from odm_reg.h are defined with the same values in rtlwifi/phydm/phydm_reg.h. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/odm_precomp.h | 2 +- drivers/staging/rtl8188eu

[PATCH v2 2/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_recv.c

2018-08-10 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_recv.c. In all uses the address array/memory is properly aligned. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_recv.c | 35 --- 1 file changed, 18 insertions(+), 17 deletions(-) diff

[PATCH v2 3/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_xmit.c

2018-08-10 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_xmit.c. In all uses the address array is properly aligned. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 35 +++ 1 file changed, 16 insertions(+), 19 deletions(-) diff --git

[PATCH v2 1/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_security.c

2018-08-10 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_security.c. In all uses the address array is properly aligned. Signed-off-by: Michael Straube --- v2: checked that in all uses of is_multicast_ether_addr the address array/memory is properly aligned and updated the commit

Re: [PATCH v2 5/5] staging: rtl8188eu: use phydm_reg.h from rtlwifi

2018-08-10 Thread Michael Straube
On 10.08.18 11:44, Dan Carpenter wrote: Looks good. Thanks! I reviewed the series. Reviewed-by: Dan Carpenter Thanks, Michael ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev

[PATCH v3 3/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_xmit.c

2018-08-10 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_xmit.c. In all uses the address array is properly aligned. Signed-off-by: Michael Straube Reviewed-by: Dan Carpenter --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 35 +++ 1 file changed, 16 insertions

[PATCH v3 2/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_recv.c

2018-08-10 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_recv.c. In all uses the address array/memory is properly aligned. Signed-off-by: Michael Straube Reviewed-by: Dan Carpenter --- drivers/staging/rtl8188eu/core/rtw_recv.c | 35 --- 1 file changed, 18

[PATCH v3 5/5] staging: rtl8188eu: use phydm_reg.h from rtlwifi

2018-08-10 Thread Michael Straube
Use rtlwifi/phydm/phydm_reg.h instead of odm_reg.h and remove the now unused odm_reg.h. All defines from odm_reg.h are defined with the same values in rtlwifi/phydm/phydm_reg.h. Signed-off-by: Michael Straube Reviewed-by: Dan Carpenter --- .../staging/rtl8188eu/include/odm_precomp.h | 2

[PATCH v3 4/5] staging: rtl8188eu: remove unused IS_MCAST

2018-08-10 Thread Michael Straube
Remove the now unused IS_MCAST. Signed-off-by: Michael Straube Reviewed-by: Dan Carpenter --- drivers/staging/rtl8188eu/include/wifi.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index

[PATCH v3 1/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_security.c

2018-08-10 Thread Michael Straube
Use is_multicast_ether_addr instead of custom IS_MCAST in core/rtw_security.c. In all uses the address array is properly aligned. Signed-off-by: Michael Straube Reviewed-by: Dan Carpenter --- v2: checked that in all uses of is_multicast_ether_addr the address array/memory is properly

Re: [PATCH v3 1/5] staging: rtl8188eu: use is_multicast_ether_addr in rtw_security.c

2018-08-10 Thread Michael Straube
I'm a bit confused now. ;) Michael ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH] staging: netlogic: Fixed comments to include SPDX-License-Identifier

2018-08-11 Thread Michael Anckaert
This patch fixes some issues with missing SPDX-License-Identifier comments. Disclaimer: this is my first patch and instructions were taken from the KernelNewbies project. Signed-off-by: Michael Anckaert --- drivers/staging/netlogic/Kconfig| 6 +++--- drivers/staging/netlogic

[PATCH v2] staging: netlogic: Fixed comments to include SPDX-License-Identifier

2018-08-11 Thread Michael Anckaert
This patch fixes some issues with missing SPDX-License-Identifier comments. Signed-off-by: Michael Anckaert --- Changes in v2: - Removed unrelated change to different patch. drivers/staging/netlogic/platform_net.c | 1 + drivers/staging/netlogic/platform_net.h | 1 + drivers/staging

[PATCH 3/4] staging: rtl8188eu: remove whitespace

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

[PATCH 1/4] staging: rtl8188eu: Remove code valid only for 5 GHz

2018-09-03 Thread Michael Straube
Remove code that is only valid for channels > 14. This addresses the below TODO item. - 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. Signed-off-by: Michael Straube --- .../staging/rtl8188e

[PATCH 2/4] staging: rtl8188eu: fix comparsions to true

2018-09-03 Thread Michael Straube
Use if(x) instead of if(x == true). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c

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

2018-09-03 Thread Michael Straube
Remove unnecessary parentheses to follow kernel coding style and clean checkpatch issues. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c

[PATCH] staging: rtl8188eu: simplify function comment

2018-09-03 Thread Michael Straube
Simplify function comment to a single line. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm.c b/drivers/staging/rtl8188eu/hal/odm.c index 9d567838a43a

[PATCH] staging: rtl8188eu: remove pointless comment

2018-09-03 Thread Michael Straube
This comment adds no useful information to the code, so remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index

[PATCH 1/2] staging: rtl8188eu: remove empty if statement in rtw_led.c

2018-09-04 Thread Michael Straube
Remove empty if statement from 'if - else if' and replace the else if with if. Remove the now unused variable pmlmepriv. Also clears line over 80 characters and CamelCase checkpatch issues. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_led.c | 5 + 1 file

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

2018-09-04 Thread Michael Straube
Remove unnecessary parentheses from conditionals. Also clears 'Alignment should match open parenthesis' checkpatch issue. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_led.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drive

Re: [PATCH 1/2] staging: rtl8188eu: remove empty if statement in rtw_led.c

2018-09-05 Thread Michael Straube
On 9/5/18 10:13 AM, Dan Carpenter wrote: On Tue, Sep 04, 2018 at 01:16:15PM +0200, Michael Straube wrote: case LED_CTL_SITE_SURVEY: - if ((pmlmepriv->LinkDetectInfo.bBusyTraffic) && (check_fwstate(pmlmepriv,

[PATCH v2 1/2] staging: rtl8188eu: remove empty if statement in rtw_led.c

2018-09-05 Thread Michael Straube
Remove emtpy if statement from 'if - else if' by moving all conditions into a single if. Also clears a line over 80 characters checkpatch warning. Signed-off-by: Michael Straube --- v2: changed patch 1/2 that was wrong. drivers/staging/rtl8188eu/core/rtw_led.c | 6 +++--- 1 file

[PATCH v2 2/2] staging: rtl8188eu: remove unnecessary parentheses in rtw_led.c

2018-09-05 Thread Michael Straube
Remove unnecessary parentheses from conditionals. Also clears 'Alignment should match open parenthesis' checkpatch issue. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_led.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drive

Re: [PATCH v2 1/2] staging: rtl8188eu: remove empty if statement in rtw_led.c

2018-09-07 Thread Michael Straube
On 9/6/18 12:41 PM, Joe Perches wrote: On Thu, 2018-09-06 at 13:32 +0300, Dan Carpenter wrote: Thanks. Reviewed-by: Dan Carpenter Trivial, but these case statement blocks should prefer unindented blocks instead of reformatting the test. Perhaps similar to the below for each of the cases:

[PATCH] staging: vc04_services: fix missing check of return value for query of dt_node property

2017-02-17 Thread Michael Zoran
: Michael Zoran --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c index

Re: [PATCH] staging: vc04_services: fix missing check of return value for query of dt_node property

2017-02-18 Thread Michael Zoran
On Sat, 2017-02-18 at 10:42 +0100, Stefan Wahren wrote: > Hi Michael, > > > Michael Zoran hat am 18. Februar 2017 um > > 01:03 geschrieben: > > > > > > This appears to be an ancient issue with the old github.com > > sources. > > no, in the old

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