Re: [PATCH] staging: rtl8723au: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-12-15 Thread Larry Finger
On 12/15/2014 05:01 PM, Rickard Strandqvist wrote: Hi No the rtw_hw_resume23a() is not used anywhere. I also do a check of all functions that are not used, but not in the drivers/staging, I suspected that these might be under development and used in the future. What do you want to do, who decid

Re: [PATCH] staging: rtl8723au: Fix sparse warnings

2014-12-12 Thread Larry Finger
On 12/12/2014 04:50 PM, Krzysztof Konopko wrote: On 12/12/14 18:35, Larry Finger wrote: On 12/12/2014 05:35 AM, Krzysztof Konopko wrote: On 12/12/14 00:53, Larry Finger wrote: In particular, did you test on big-endian hardware after you made this change? Nope. I don't have any big-e

Re: [PATCH] staging: rtl8723au: Fix sparse warnings

2014-12-12 Thread Larry Finger
On 12/12/2014 05:35 AM, Krzysztof Konopko wrote: On 12/12/14 00:53, Larry Finger wrote: This fix may make the sparse warnings go away, but I think it introduces new bugs. Right, I see. Nice try though, isn't it? ;) In particular, did you test on big-endian hardware after you made

Re: [PATCH] staging: rtl8723au: Fix sparse warnings

2014-12-12 Thread Larry Finger
On 12/12/2014 06:52 AM, Dan Carpenter wrote: On Thu, Dec 11, 2014 at 05:53:30PM -0600, Larry Finger wrote: On 12/11/2014 04:23 PM, Krzysztof Konopko wrote: Some struct fields in wifi.h are meant to be __le16 bu were declared as unsigned short. This was reported by sparse: rtw_wlan_util.c

Re: [PATCH] staging: rtl8723au: Fix sparse warnings

2014-12-11 Thread Larry Finger
On 12/11/2014 04:23 PM, Krzysztof Konopko wrote: Some struct fields in wifi.h are meant to be __le16 bu were declared as unsigned short. This was reported by sparse: rtw_wlan_util.c:538:24: warning: cast to restricted __le16 rtw_wlan_util.c:1544:29: warning: cast to restricted __le16 r

Re: [PATCH 1/1] staging: rtl8188eu: usb_dvobj_init(): A NULL pointer check for usb_host_endpoints makes no sense

2014-12-01 Thread Larry Finger
| 33 + 1 file changed, 15 insertions(+), 18 deletions(-) Acked-by: Larry Finger Thanks for porting your changes found in one of the Realtek drivers. Larry diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c

Re: [PATCH] staging: rtl8723au: hal: Removed spaces before starting of a line

2014-12-01 Thread Larry Finger
On 12/01/2014 09:53 AM, Anjana Sasindran wrote: This patch fix the checkpatch.pl warning: WARNING: please, no spaces at the start of a line Signed-off-by: Anjana Sasindran --- drivers/staging/rtl8723au/hal/odm_RegConfig8723A.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) dif

Re: [PATCH] staging: r8188eu: Add new device ID for DLink GO-USB-N150

2014-11-27 Thread Larry Finger
On 11/27/2014 10:28 AM, Greg KH wrote: On Thu, Nov 27, 2014 at 10:10:21AM -0600, Larry Finger wrote: The DLink GO-USB-N150 with revision B1 uses this driver. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH] staging: r8188eu: Add new device ID for DLink GO-USB-N150

2014-11-27 Thread Larry Finger
The DLink GO-USB-N150 with revision B1 uses this driver. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index 65a257f

Re: [PATCH] staging: rtl8712: fix coding style warning

2014-11-15 Thread Larry Finger
On 11/15/2014 08:25 AM, Christian Resell wrote: Simple style fix ("else is not generally useful after a break or return"). For the eudyptula challenge (http://eudyptula-challenge.org/). Signed-off-by: Christian F. Resell --- This patch leads to the following build warnings: CC [M] drivers

[PATCH for 3.18] staging: r8188eu: Fix scheduling while atomic error introduced in commit fadbe0cd

2014-11-12 Thread Larry Finger
rtw_ps_cmd(), report_survey_event(), report_join_res(), survey_timer_hdl(), and rtw_check_bcn_info(). Signed-off-by: Larry Finger Cc: navin patidar --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 22 +++--- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 12 ++-- drive

Re: [PATCH] staging: r8821ae: Remove driver from staging

2014-09-29 Thread Larry Finger
On 09/29/2014 12:05 PM, Greg KH wrote: On Sun, Sep 28, 2014 at 08:39:51PM -0500, Larry Finger wrote: A new version of this driver has been merged into the wireless-testing tree as commit 21e4b0726dc671c423e2dc9a85364716219c4502. It is both possible and desirable to delete the staging version to

Re: [PATCH] staging: r8821ae: Remove driver from staging

2014-09-29 Thread Larry Finger
On 09/29/2014 01:17 AM, Greg KH wrote: On Sun, Sep 28, 2014 at 08:39:51PM -0500, Larry Finger wrote: A new version of this driver has been merged into the wireless-testing tree as commit 21e4b0726dc671c423e2dc9a85364716219c4502. It is both possible and desirable to delete the staging version to

Re: [PATCH] rtl8188eu: Replace rcu_dereference() with rcu_access_pointer()

2014-09-04 Thread Larry Finger
On 09/04/2014 03:58 PM, Andreea Bernat wrote: Hello, I cloned this: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git and after moved to staging-next branch, but in both cases, in those files I don't find any use of rcu_dereference() call (the call which I am looking for to modif

[PATCH RESEND] staging: r8188eu: Add new USB ID

2014-08-25 Thread Larry Finger
The Elecom WDC-150SU2M uses this chip. Reported-by: Hiroki Kondo Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index

[PATCH] staging: r8188eu: Add new USB ID

2014-08-24 Thread Larry Finger
The Elecom WDC-150SU2M uses this chip. Reported-by: Hiroki Kondo Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index

[PATCH 001/001] staging/rtl8188eu: add 0df6:0076 Sitecom Europe B.V.

2014-08-13 Thread Larry Finger
From: Holger Paradies The stick is not recognized. This dongle uses r8188eu but usb-id is missing. 3.16.0 Signed-off-by: Holger Paradies Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu

Re: [PATCH] staging: rtl8723au: Fix static symbol sparse warning

2014-08-01 Thread Larry Finger
On 08/01/2014 08:06 AM, Miguel Oliveira wrote: > Fix sparse warning: > drivers/staging/rtl8723au/core/rtw_efuse.c:579:5: warning: symbol > 'efuse_GetCurrentSize23a' was not declared. Should it be static? > > Signed-off-by: Miguel Oliveira > --- > drivers/staging/rtl8723au/include/rtw_efuse.h |

Re: Realtek RTL8821ae driver

2014-07-21 Thread Larry Finger
On 07/21/2014 09:10 PM, Greg KH wrote: > On Mon, Jul 21, 2014 at 08:50:26PM -0400, Chris Murphy wrote: >> Problem: On Asus TX201LA running 15.6 kernel x86_64, driver repeatedly >> disconnects and reconnects. Dual boot same machine on Win 8.1 is very stable. >> >> Behavior starts as soon as Linux is

[PATCH V2] staging: rtl8192ee: Fix setting highest n rate

2014-07-16 Thread Larry Finger
TX MCS map will equal 0x0c, thus the second test can be ignored. Signed-off-by: Larry Finger --- V2 - Remove extraneous parenthesis drivers/staging/rtl8192ee/base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192ee/base.c b/drivers/staging/rtl8192

[PATCH] staging: rtl8192ee: Fix setting highest n rate

2014-07-14 Thread Larry Finger
TX MCS map will equal 0x0c, thus the second test can be ignored. Signed-off-by: Larry Finger --- drivers/staging/rtl8192ee/base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192ee/base.c b/drivers/staging/rtl8192ee/base.c index 71ed12e..b8b897a 10064

Re: Fwd: Re: Anybody working on rtl8712?

2014-06-21 Thread Larry Finger
On 06/21/2014 12:52 PM, Christian Lamparter wrote: On Saturday, June 21, 2014 06:45:07 PM Kristina Martšenko wrote: On 20/06/14 23:52, Christian Lamparter wrote: On Friday, June 20, 2014 09:19:07 PM Xose Vazquez Perez wrote: Kristina wrote: I'm helping Greg do a bit of cleanup in the staging

Re: [PATCH] staging:rtl8821ae: rewrite legacy wifi check in halbcoutsrc

2014-06-21 Thread Larry Finger
On 06/20/2014 09:52 PM, Nick Krause wrote: Is this patch being merged or is this not an issue. I am confused did I make a mistake in my patch or is there being a different patch being merged. Thank Nick On Fri, Jun 20, 2014 at 10:34 PM, Joe Perches wrote: On Fri, 2014-06-20 at 22:26 -0400, Nic

Re: Anybody working on rtl8712?

2014-06-20 Thread Larry Finger
On 06/20/2014 10:40 AM, Kristina Martšenko wrote: Hi Larry and Florian, I'm helping Greg do a bit of cleanup in the staging tree. I noticed that nobody seems to have worked towards moving rtl8712 out of staging in over a year. Are there any plans to clean it up and move it out soon? Because othe

Re: [PATCH 00/76] staging-next: rtl8723au: More fixes for 3.16

2014-06-09 Thread Larry Finger
On 06/09/2014 10:39 AM, Jes Sorensen wrote: Greg KH writes: On Mon, Jun 09, 2014 at 03:15:52PM +0200, jes.soren...@redhat.com wrote: From: Jes Sorensen Greg, Thanks for pushing my other changes to Linus. This set goes on top of the set I sent you on 2014/05/31 and the fix from 2014/06/03. I

Re: [PATCH linux-next] staging: r8192ee: Adapt flush function prototype

2014-06-07 Thread Larry Finger
Cc: Greg Kroah-Hartman Cc: Larry Finger Ah yes, all the "benefits" of adding a new driver in one tree (staging) that depends of changes in another (wireless). I have been maintaining this patch in my own source for several weeks. Acked-by: Larry Finger Thanks, Larry --- Hi,

Re: randconfig build error with next-20140527, in drivers/staging/rtl8192ee

2014-05-27 Thread Larry Finger
42e4c20f114c71e12cdf35d9b5dd60d2546c7d57 yesterday in staging-next. If it has not reached linux-next, the attached patch should fix the problem. Thanks, Larry >From d10ca90ffaf99f43bb61d5b4001f6a6acfde3454 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 26 May 2014 13:35:48 -0500 Subj

[PATCH 1/3] staging: r8192ee: Fix kernel WARN splat associated with rate control

2014-05-26 Thread Larry Finger
name is used for the rtlwifi drivers in the regular wireless tree, and the staging drivers r8192ee and r8821ae. The fix is to rename the algorithm used in r8192ee. Reported-by: Jet Chen Signed-off-by: Larry Finger Tested-by: Jet Chen --- drivers/staging/rtl8192ee/rc.c | 2 +- 1 file changed, 1

[PATCH 2/3] staging: r8192ee: Fix build errors when PCI is not available

2014-05-26 Thread Larry Finger
A build of this driver fails when PCI is not selected. It would also fail if MAC80211 is not selected. Kconfig is fixed to handle these conditions, and to select additional necessary components. Reported-by: Randy Dunlap Reported-by: Ben Hutchings Signed-off-by: Larry Finger --- drivers

[PATCH 3/3] staging: r8821ae: Fix potential problem with rate control registration

2014-05-26 Thread Larry Finger
The zero day testing facility reported a problem with duplicate registration of the rate-control algorithm. Although not yet reported, this driver needs the same fix. Signed-off-by: Larry Finger --- drivers/staging/rtl8821ae/rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/3] Some fixes for r8192ee and r8821ae

2014-05-26 Thread Larry Finger
Finger Larry Finger (3): staging: r8192ee: Fix kernel WARN splat associated with rate control staging: r8192ee: Fix build errors when PCI is not available staging: r8821ae: Fix potential problem with rate control registration drivers/staging/rtl8192ee/Kconfig | 7 +++ drivers/staging

Re: [PATCH 4/4] staging: r8192ee: Turn on build of the new driver

2014-05-26 Thread Larry Finger
On 05/26/2014 01:06 PM, Ben Hutchings wrote: On Wed, 2014-05-21 at 16:25 -0500, Larry Finger wrote: [...] --- /dev/null +++ b/drivers/staging/rtl8192ee/Kconfig @@ -0,0 +1,8 @@ +config R8192EE + tristate "Realtek RTL8192EE Wireless Network Adapter" depends on MAC80211 &&

Re: [staging: r8192ee] WARNING: CPU: 0 PID: 1 at net/mac80211/rate.c:43 ieee80211_rate_control_register()

2014-05-26 Thread Larry Finger
On 05/26/2014 09:55 AM, Jet Chen wrote: Jet, 0day kernel testing robot got the below dmesg and the first bad commit is git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next commit 0629f3b8c33899140b48d5897259eab8ebae78ca Author: Larry Finger AuthorDate: Wed May 21

[PATCH 4/4] staging: r8192ee: Turn on build of the new driver

2014-05-21 Thread Larry Finger
In addition, this commit contains a TODO file for this driver Signed-off-by: Larry Finger --- drivers/staging/Kconfig| 2 ++ drivers/staging/Makefile | 1 + drivers/staging/rtl8192ee/Kconfig | 8 drivers/staging/rtl8192ee/Makefile | 40

[PATCH 0/4] New driver for Realtek RTL8192EE

2014-05-21 Thread Larry Finger
problems have been fixed. The code needs additional polishing before it can be merged into the regular wireless tree; however, that should not take more than a single cycle. Signed-off-by: Larry Finger Larry Finger (4): staging: r8192ee: Add source files for core driver staging: r8192ee: Add code

Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread Larry Finger
On 05/20/2014 04:31 PM, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 127 ++

New driver for Realtek RTL8192EE

2014-05-16 Thread Larry Finger
Greg, This E-mail is to prepare you for a new Realtek RTL8192EE driver that I intend to submit early next week. I hope it will be in time for kernel 3.16. This device is incorporated in the recently introduced Lenovo T440s tablet, and from the correspondence that I have received, there have b

Re: [PATCH 1/5] staging: rtl8188eu: fix potential leak in rtw_wx_read32()

2014-04-28 Thread Larry Finger
Engelmayer Acked-by: Larry Finger This Ack is valid for all 5 patches. Larry --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu

Re: [PATCH 03/10] staging: rtl8188eu: Remove _ReadLEDSetting() function.

2014-04-22 Thread Larry Finger
On 04/22/2014 09:14 AM, Dan Carpenter wrote: On Tue, Apr 22, 2014 at 07:31:50PM +0530, navin patidar wrote: Hi dan it's just a cleanup patch and i also tested all patches of this patch series on the hardware (TP-LINK TL-WN723N). my mistake i should have added "Tested-by" tag for all patches.

[PATCH] staging: r8188eu: Fix some sparse warnings

2014-04-17 Thread Larry Finger
ng: symbol 'process_pwrbit_data' was not declared. Should it be static? drivers/staging/rtl8188eu/core/rtw_recv.c:1828:5: warning: symbol 'enqueue_reorder_recvframe' was not declared. Should it be static? Reported-by: Dan Carpenter Signed-off-by: Larry Finger Cc: Dan C

[PATCH 2/2 V2] staging: r8188eu: Fix case where ethtype was never obtained and always be checked against 0

2014-04-16 Thread Larry Finger
Zero-initializing ether_type masked that the ether type would never be obtained for 8021x packets and the comparison against eapol_type would always fail. Reported-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Stable --- drivers/staging/rtl8188eu/core/rtw_recv.c | 15 ++- 1

[PATCH 1/2 V2] staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0

2014-04-16 Thread Larry Finger
Zero-initializing ether_type masked that the ether type would never be obtained for 8021x packets and the comparison against eapol_type would always fail. Reported-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Stable --- drivers/staging/rtl8712/rtl871x_recv.c | 13 ++--- 1 file

Re: [PATCH] staging: r8723au: Add missing initialization of change_inx in sort algorithm

2014-04-10 Thread Larry Finger
stack, the array may not be sorted correctly. Signed-off-by: Geert Uytterhoeven --- Acked-by: Larry Finger Geert, Thanks for this. I wonder why my gcc on x86_64 did not flag this problem. Larry drivers/staging/rtl8723au/core/rtw_wlan_util.c |2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 3/3] staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0

2014-04-09 Thread Larry Finger
On 04/09/2014 11:25 AM, Sergei Shtylyov wrote: On 04/09/2014 08:13 PM, Larry Finger wrote: Zero-initializing ether_type masked that the ether type would never be obtained for 8021x packets and the comparition against eapol_type would always fail. Reported-by: Jes Sorensen Signed-off-by

[PATCH V2] staging: r8723au: Fix build warnings

2014-04-09 Thread Larry Finger
e" to match the actual routine. The third warning comes from testing that a u8 quantity is positive. Reported-by: kbuild test robot Signed-off-by: Larry Finger Cc: Jes Sorensen Cc: kbuild-...@01.org --- drivers/staging/rtl8723au/core/rtw_mlme.c | 4 ++-- drivers/staging/rtl8723a

Re: [PATCH 2/3] staging: r8188eu: Fix case where ethtype was never obtained and always be checked against 0

2014-04-09 Thread Larry Finger
On 04/09/2014 11:24 AM, Sergei Shtylyov wrote: On 04/09/2014 08:12 PM, Larry Finger wrote: Zero-initializing ether_type masked that the ether type would never be obtained for 8021x packets and the comparition against eapol_type would always fail. Reported-by: Jes Sorensen Signed-off-by

[PATCH 2/3] staging: r8188eu: Fix case where ethtype was never obtained and always be checked against 0

2014-04-09 Thread Larry Finger
Zero-initializing ether_type masked that the ether type would never be obtained for 8021x packets and the comparition against eapol_type would always fail. Reported-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Stable --- drivers/staging/rtl8188eu/core/rtw_recv.c | 20

[PATCH 0/3] Fix some bugs in staging drivers

2014-04-09 Thread Larry Finger
While analyzing parts of the recently merged r8723au driver, Jes Sorensen found two bugs that are found in other Reaktek drivers in staging. This set of patches fixes them. Signed-off-by: Larry Finger Larry Finger (3): staging: r8188eu: Calling rtw_get_stainfo() with a NULL sta_addr will

[PATCH 1/3] staging: r8188eu: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL

2014-04-09 Thread Larry Finger
This makes the follow-on check for psta != NULL pointless and makes the whole exercise rather pointless. This is another case of why blindly zero-initializing variables when they are declared is bad. Reported-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Stable --- drivers/staging

[PATCH 3/3] staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0

2014-04-09 Thread Larry Finger
Zero-initializing ether_type masked that the ether type would never be obtained for 8021x packets and the comparition against eapol_type would always fail. Reported-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Stable --- drivers/staging/rtl8712/rtl871x_recv.c | 15 +++ 1 file

[PATCH] staging: r8723au: Fix build warnings

2014-04-09 Thread Larry Finger
e" to match the actual routine. The third warning comes from testing that a u8 quantity is positive. Reported-by: kbuild test robot Signed-off-by: Larry Finger Cc: Jes Sorensen Cc: kbuild-...@01.org --- drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c | 2 +- drivers/staging/rtl8723au/

Re: staging-next: r8723au: Kconfig related nitpicks

2014-04-07 Thread Larry Finger
On 04/07/2014 04:08 AM, Paul Bolle wrote: Larry, 0) I stumbled on two minor Kconfig related issues in the r8723au driver in staging-next. 1) drivers/staging/rtl8723au/include/drv_types.h Why is CONFIG_BR_EXT used? I couldn't find a Kconfig symbol BR_EXT nor a preprocessor define for CONFIG_BR_E

[PATCH] staging: r8723au: Fix build problem when RFKILL is not selected

2014-04-06 Thread Larry Finger
ivers/input/Kconfig:8:symbol INPUT is selected by ACPI_CMPC drivers/platform/x86/Kconfig:635: symbol ACPI_CMPC depends on RFKILL To avoid substituting one build error for another, I added a "depends on RFKILL". My suspicion is that this particular error is caused by a kbuild b

[PATCH] staging: r8723au: Fix randconfig build errors

2014-04-05 Thread Larry Finger
23au/r8723au.ko] undefined! ERROR: "cfg80211_disconnected" [drivers/staging/rtl8723au/r8723au.ko] undefined! ERROR: "ieee80211_amsdu_to_8023s" [drivers/staging/rtl8723au/r8723au.ko] undefined! ERROR: "cfg80211_scan_done" [drivers/staging/rtl8723au/r8723au.ko] undefin

Re: [PATCH 0/6 NEXT]staging: r8723au: Add new driver

2014-03-28 Thread Larry Finger
On 03/28/2014 10:26 PM, Joe Perches wrote: On Fri, 2014-03-28 at 21:37 -0500, Larry Finger wrote: The Realtek USB device RTL8723AU is found in Lenovo Yoga 13 tablets. A driver for it has been available in a GitHub repo for several months. [] 133 files changed, 89878 insertions(+) eek

[PATCH 6/6 NEXT] staging: r8723au: Turn on build of new driver

2014-03-28 Thread Larry Finger
This commit also creates a TODO file. Signed-off-by: Larry Finger Cc: Jes Sorensen --- drivers/staging/Kconfig| 2 ++ drivers/staging/Makefile | 1 + drivers/staging/rtl8723au/Kconfig | 37 drivers/staging/rtl8723au/Makefile | 58

[PATCH 0/6 NEXT]staging: r8723au: Add new driver

2014-03-28 Thread Larry Finger
: Larry Finger Cc: Jes Sorensen Larry Finger (6): staging: r8723au: Add source files for new driver - part 1 staging: r8723au: Add source files for new driver - part 2 staging: r8723au: Add source files for new driver - part 3 staging: r8723au: Add source files for new driver - part 4

[PATCH] staging: r8188eu: fix coccinelle warnings

2014-03-16 Thread Larry Finger
From: Fengguang Wu drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:8030:3-9: Replace memcpy with struct assignment Generated by: coccinelle/misc/memcpy-assign.cocci Signed-off-by: Fengguang Wu Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +- 1 file

[PATCH] staging: r8188eu: Add new device ID

2014-02-24 Thread Larry Finger
From: Manu Gupta The D-Link DWA-123 REV D1 with USB ID 2001:3310 uses this driver. Signed-off-by: Manu Gupta Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers

Re: [PATCH 10/13] staging: r8188eu: Remove wrapper _enter_critical_mutex()

2014-02-16 Thread Larry Finger
On 02/15/2014 02:41 PM, Greg KH wrote: On Sat, Feb 15, 2014 at 12:38:11PM -0800, Greg KH wrote: I've applied this series up to here. Nevermind, the others applied, so I've merged them, just not this patch. I have split this patch into two parts that I will send tomorrow. The first one just

Re: [PATCH 02/13] staging: r8188eu: Remove pointless "alignment" entry in recv_frame

2014-02-16 Thread Larry Finger
On 02/16/2014 03:09 AM, Dan Carpenter wrote: On Sun, Feb 16, 2014 at 11:02:52AM +0800, Zhao, Gang wrote: On Sat, 2014-02-15 at 06:54:06 +0800, Larry Finger wrote: This alignment entry in union recv_frame does nothing. It certainly dues not ensure alignment. ^ typo here. I

Re: [PATCH 10/13] staging: r8188eu: Remove wrapper _enter_critical_mutex()

2014-02-15 Thread Larry Finger
On 02/15/2014 04:41 AM, Dan Carpenter wrote: On Fri, Feb 14, 2014 at 04:54:14PM -0600, Larry Finger wrote: diff --git a/drivers/staging/rtl8188eu/hal/usb_ops_linux.c b/drivers/staging/rtl8188eu/hal/usb_ops_linux.c index 1fa5370..d5f6a32 100644 --- a/drivers/staging/rtl8188eu/hal

[PATCH 12/13] staging: r8188eu: Remove wrapper routine _set_workitem()

2014-02-14 Thread Larry Finger
This is simply a wrapper around schedule_work(). Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_led.c | 2 +- drivers/staging/rtl8188eu/include/osdep_service.h | 5 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core

[PATCH 08/13] staging: r8188eu: Remove unused union

2014-02-14 Thread Larry Finger
Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/include/rtw_xmit.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_xmit.h b/drivers/staging/rtl8188eu/include/rtw_xmit.h index 1ac1dd3..62f5db1 100644 --- a/drivers/staging/rtl8188eu/include

[PATCH 11/13] staging: r8188eu: Remove wrapper routine _init_workitem()

2014-02-14 Thread Larry Finger
This is simply another name for INIT_WORK(). Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 +- drivers/staging/rtl8188eu/core/rtw_led.c | 2 +- drivers/staging/rtl8188eu/include/osdep_service.h | 6 -- 3 files changed, 2 insertions(+), 8

[PATCH 10/13] staging: r8188eu: Remove wrapper _enter_critical_mutex()

2014-02-14 Thread Larry Finger
This wrapper returned the result of mutex_lock_interruptible(); however, none of the callers checked the returned value. As a result of a gcc upgrade to version 4.8.1, two false unitialized variable warnings appeared. To silence the warnings, they are initialized to 0. Signed-off-by: Larry

[PATCH 07/13] staging: r8188eu: Remove get_recvframe_data()

2014-02-14 Thread Larry Finger
-by: Larry Finger Cc: Jes Sorensen --- drivers/staging/rtl8188eu/core/rtw_recv.c | 6 ++ drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c | 2 +- drivers/staging/rtl8188eu/include/rtw_recv.h| 9 - 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/staging

[PATCH 09/13] staging: r8188eu: Remove wrapper _exit_critical_mutex()

2014-02-14 Thread Larry Finger
This wrapper is a simple call to mutex_exit(). Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +- drivers/staging/rtl8188eu/hal/usb_ops_linux.c | 2 +- drivers/staging/rtl8188eu/include/osdep_service.h | 7 --- drivers/staging/rtl8188eu/os_dep

[PATCH 13/13] staging: r8188eu: Make firmware buffer persistent

2014-02-14 Thread Larry Finger
From: Stas Sergeev The present code reloads the firmware file from the disk every time the interface re-inits. Change to hold the firmware in memory, and only download to the device. Signed-off-by: Stas Sergeev Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/hal

[PATCH 06/13] staging: r8188eu: Remove get_recvframe_len()

2014-02-14 Thread Larry Finger
This simple routine is replaced by a simple access of the len member. Reported-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Jes Sorensen --- drivers/staging/rtl8188eu/core/rtw_recv.c| 2 +- drivers/staging/rtl8188eu/include/rtw_recv.h | 5 - 2 files changed, 1 insertion(+), 6

[PATCH 00/13] Cleanups for r8188eu

2014-02-14 Thread Larry Finger
the disk file every time the device reinits. Signed-off-by: Larry Finger Larry Finger (12): staging: r8188eu: Remove unnecessary list_head entry from recv_frame union staging: r8188eu: Remove pointless "alignment" entry in recv_frame staging: r8188eu: Remove union w

[PATCH 04/13] staging: r8188eu: Remove pkt_to_recv{frame, data, mem} routines

2014-02-14 Thread Larry Finger
These functions are not called from the outside source. Suggested-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Jes Sorensen --- drivers/staging/rtl8188eu/include/rtw_recv.h | 38 1 file changed, 38 deletions(-) diff --git a/drivers/staging/rtl8188eu/include

[PATCH 05/13] staging: r8188eu: Remove unused get_rxbuf_desc()

2014-02-14 Thread Larry Finger
Reported-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Jes Sorensen --- drivers/staging/rtl8188eu/include/rtw_recv.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index 81fdcf5

[PATCH 01/13] staging: r8188eu: Remove unnecessary list_head entry from recv_frame union

2014-02-14 Thread Larry Finger
Struct recv_frame_hdr already contains a list head. This one is pointless. Suggested-by: Jes Sorensen Signed-off-by: Larry Finger Cc: Jes Sorensen --- drivers/staging/rtl8188eu/core/rtw_recv.c| 7 --- drivers/staging/rtl8188eu/include/rtw_recv.h | 1 - 2 files changed, 4 insertions

[PATCH 02/13] staging: r8188eu: Remove pointless "alignment" entry in recv_frame

2014-02-14 Thread Larry Finger
This alignment entry in union recv_frame does nothing. It certainly dues not ensure alignment. Suggested-by: jes.soren...@redhat.com Signed-off-by: Larry Finger Cc: jes.soren...@redhat.com --- drivers/staging/rtl8188eu/include/rtw_recv.h | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH] staging: rtl8821ae: Fix potential infinite loop

2014-02-12 Thread Larry Finger
Smatch reports the following: drivers/staging/rtl8821ae/rtl8821ae/hw.c:153 _rtl8821ae_set_fw_clock_on() info: ignoring unreachable code. Upon investigation, the code in this region has the capability of creating an infinite loop. Signed-off-by: Larry Finger --- drivers/staging/rtl8821ae

[PATCH] staging: r8188eu: Fix more Smatch warnings and errors

2014-02-12 Thread Larry Finger
previously assumed 'pregpriv' could be null (see line 4469) Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_recv.c | 7 +++ drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 18 +- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/d

[PATCH] staging: r8188eu: Fix Smatch warnings

2014-02-12 Thread Larry Finger
ble_Ch14' 33 <= 255 Not listed here is one remaining buffer overflow message that I believe to be an error in Smatch. These warnings were reported by the 0-DAY kernel build testing backend. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 32

[PATCH 5/6] staging: r8188eu: Eliminate macro to get next list item

2014-02-09 Thread Larry Finger
The driver contains a macro that gets the next item in a linked list. Replace it with a simple copy of the pointer. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_ap.c | 32 +++--- drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 +- drivers/staging

[PATCH 4/6] staging: r8188eu: Replace misspelled local container macro

2014-02-09 Thread Larry Finger
rt of that union. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_ap.c | 16 - drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 +- drivers/staging/rtl8188eu/core/rtw_debug.c| 2 +- drivers/staging/rtl8188eu/core/rtw_mlme.c | 14 ---

[PATCH 2/6] staging: r8188eu: Remove dead file

2014-02-09 Thread Larry Finger
After the previous cleanups, file hal/odm_interface.c is now empty. It is hereby deleted, and removed from Makefile. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/Makefile| 1 - drivers/staging/rtl8188eu/hal/odm_interface.c | 1 - 2 files changed, 2 deletions(-) delete

[PATCH 3/6] staging: r8188eu: Remove some dead code from headers

2014-02-09 Thread Larry Finger
The headers for this driver contain a number of unused structs and macros that are removed. File include/ioctl_cfg80211.h is now empty and was deleted. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/include/ioctl_cfg80211.h | 107 - drivers/staging/rtl8188eu

[PATCH 1/6] staging: r8188eu: Replace wrapper around _rtw_memcmp()

2014-02-09 Thread Larry Finger
This wrapper is replaced with a simple memcmp(). As the wrapper inverts the logic of memcmp(), care needed to be taken. This patch also adds one include of vmalloc.h that was missed in a previous patch. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_ap.c | 16

[PATCH 0/6] Various cleanups of r8188eu

2014-02-09 Thread Larry Finger
As has been noted, this driver is very rough. This set of patches is intended to smooth some of the rough edges. Signed-off-by: Larry Finger Larry Finger (6): staging: r8188eu: Replace wrapper around _rtw_memcmp() staging: r8188eu: Remove dead file staging: r8188eu: Remove some dead code

Re: [PATCH] drivers:statging:rtl8821ae Fixed few coding style errors

2014-02-09 Thread Larry Finger
On 02/09/2014 02:29 AM, Surendra Patil wrote: Fixed few coding style errors in header files base.h:58: WARNING: please, no space before tabs base.h:81: ERROR: "(foo*)" should be "(foo *)" pci.h:338: ERROR: "foo * bar" should be "foo *bar" pci.h:151: ERROR: do not use C99 // comments Signed-off-b

Re: [PATCH 2/2] vers:staging:rtl8821ae: Fixed multiple coding style erors and warnings

2014-02-09 Thread Larry Finger
On 02/09/2014 01:30 AM, Surendra Patil wrote: Fixed multiple coding style errors and warnings wifi.h:1077: WARNING: please, no space before tabs wifi.h:762: WARNING: missing space after struct definition wifi.h:972: WARNING: please, no spaces at the start of a line wifi.h:1825: WARNING: Unnecessa

Re: [PATCH 1/2] drivers:staging:rtl8821ae: Fixed few coding style erors and warnings

2014-02-09 Thread Larry Finger
ually works, it will be submitted to the drivers/net/wireless tree of the regular kernel, and it should be there by 3.15. That said, Acked-by: Larry Finger Larry --- drivers/staging/rtl8821ae/wifi.h | 450 --- 1 file changed, 226 insertions(+), 224 de

[PATCH V2] staging: r8188eu: Fix missing header

2014-02-07 Thread Larry Finger
de vzalloc and vfree. This problem was reported by the kbuild test robot. Signed-off-by: Larry Finger --- V2 - add attribution to the build robot --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 1 + drivers/staging/rtl8188eu/core/rtw_mp.c| 1 + drivers/staging/rtl8188eu/core

Re: [PATCH] staging: r8188eu: Fix missing header

2014-02-07 Thread Larry Finger
On 02/07/2014 06:04 PM, Greg KH wrote: On Fri, Feb 07, 2014 at 05:12:10PM -0600, Larry Finger wrote: Commit 2397c6e0927675d983b34a03401affdb64818d07 entitled "staging: r8188eu: Remove wrappers around vmalloc and vzalloc" and commit: 03bd6aea7ba610a1a19f840c373624b8b0adde0d entitle

[PATCH] staging: r8188eu: Fix missing header

2014-02-07 Thread Larry Finger
de vzalloc and vfree. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 1 + drivers/staging/rtl8188eu/core/rtw_mp.c| 1 + drivers/staging/rtl8188eu/core/rtw_recv.c | 1 + drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 1 + drivers/staging/rtl81

Re: [patch 1/2] staging: r8188eu: array overflow in rtw_mp_ioctl_hdl()

2014-02-06 Thread Larry Finger
On 02/03/2014 04:38 PM, Dan Carpenter wrote: MAX_MP_IOCTL_SUBCODE (35) and mp_ioctl_hdl (32 elements) are no longer in sync. It leads to a bogus pointer dereference. Signed-off-by: Dan Carpenter Acked-by: Larry Finger Larry diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b

[PATCH 07/12] staging: r8188eu: Remove wrappers around vmalloc and vzalloc

2014-02-06 Thread Larry Finger
Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 4 ++-- drivers/staging/rtl8188eu/core/rtw_mp.c | 2 +- drivers/staging/rtl8188eu/core/rtw_recv.c | 2 +- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 2 +- drivers/staging/rtl8188eu

[PATCH 06/12] staging: r8188eu: Remove ODM_Write4Byte

2014-02-06 Thread Larry Finger
This routine is the equivalent of rtw_write32. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c| 2 +- drivers/staging/rtl8188eu/hal/odm_interface.c | 7 --- drivers/staging/rtl8188eu/include/odm_interface.h | 2 -- 3 files changed, 1 insertion(+), 10

[PATCH 09/12] staging: r8188eu: Remove ODM_AllocateMemory

2014-02-06 Thread Larry Finger
This wrapper for vzalloc() is not used. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/hal/odm_interface.c | 6 -- drivers/staging/rtl8188eu/include/odm_interface.h | 1 - 2 files changed, 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_interface.c b/drivers

[PATCH 03/12] staging: r8188eu: Remove ODM_Read4Byte

2014-02-06 Thread Larry Finger
This routine is essentially a duplicate of rtw_read32. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 9 + drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c | 2 +- drivers/staging/rtl8188eu/hal/odm.c | 8 drivers

Re: [patch] staging: r8188eu: memory corruption handling long ssids

2014-02-06 Thread Larry Finger
truct is allocated with rtw_zmalloc() Signed-off-by: Dan Carpenter Acked-by: Larry Finger Larry diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c index 153ec61493ab..96df62f95b6b 100644 --- a/drivers/staging/rtl8188eu/core/rtw_wla

[PATCH 12/12] staging: r8188eu: Remove ODM_InitializeTimer

2014-02-06 Thread Larry Finger
This wrapper is not used. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/hal/odm_interface.c | 8 drivers/staging/rtl8188eu/include/odm_interface.h | 4 2 files changed, 12 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_interface.c b/drivers/staging

[PATCH 05/12] staging: r8188eu: Remove ODM_Write2Byte

2014-02-06 Thread Larry Finger
This routine is the equivalent of rtw_write16. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 4 +++- drivers/staging/rtl8188eu/hal/odm_interface.c| 6 -- drivers/staging/rtl8188eu/include/odm_interface.h| 2 -- 3 files changed, 3

[PATCH 00/12] Remove several pointless wrapper routines

2014-02-06 Thread Larry Finger
The driver contains a large number of wrapper routines. None of them are needed. Signed-off-by: Larry Finger Larry Finger (12): staging: r8188eu: Remove ODM_Read1Byte staging: r8188eu: Remove ODM_Read2Byte staging: r8188eu: Remove ODM_Read4Byte staging: r8188eu: Remove ODM_Write1Byte

[PATCH 08/12] staging: r8188eu: Remove wrappers around vfree

2014-02-06 Thread Larry Finger
Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 5 ++--- drivers/staging/rtl8188eu/core/rtw_mp.c | 2 +- drivers/staging/rtl8188eu/core/rtw_recv.c | 2 +- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 2 +- drivers/staging/rtl8188eu

<    1   2   3   4   5   6   7   >