Re: [PATCH V2] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq

2015-11-08 Thread glen lee
I just check the email, I will get back here after I check the patches related with this issue. regards, glen lee. On 2015년 11월 09일 06:59, Dan Carpenter wrote: Top posting beucase I am a bad person. Punit, you should have CC'd Glen since this is his code. The fix is still not right

Re: [PATCH V2] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq

2015-11-09 Thread glen lee
PRINT_D(INIT_DBG, "Initializing netdev\n"); if (wilc_netdev_init(&wilc)) PRINT_ER("Couldn't initialize netdev\n"); return 0; #endif regards, glen lee. On 2015년 11월 09일 11:03, glen lee wrote: I just check the email, I will get back here

Re: [PATCH V2] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq

2015-11-09 Thread glen lee
On 2015년 11월 09일 17:18, Dan Carpenter wrote: On Mon, Nov 09, 2015 at 05:02:48PM +0900, glen lee wrote: Hi Punit Vara, I cannot find build errors on my build machines. According the log which you have posted before says *wilc is undeclared in the function init_wilc_driver, which means

Re: [PATCH V2] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq

2015-11-09 Thread glen lee
On 2015년 11월 09일 18:05, punit vara wrote: On Mon, Nov 9, 2015 at 2:25 PM, glen lee wrote: On 2015년 11월 09일 17:18, Dan Carpenter wrote: On Mon, Nov 09, 2015 at 05:02:48PM +0900, glen lee wrote: Hi Punit Vara, I cannot find build errors on my build machines. According the log which you

[PATCH] staging: wilc1000: fix bug in sdio/spi

2015-11-11 Thread Glen Lee
sdio_init and wilc_spi_init always return error, so it fails everytime. Fix this by removing else statement. This fixes c1af9db78950a778ec18343c5c5a6d4cfbf58a61, bacd388547f55eb415ce266c8723cc6f1281a25d Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_sdio.c | 2 -- drivers/staging

Re: [PATCH 15/20] staging/wilc1000: pass hif operations through initialization

2015-11-12 Thread glen lee
the problem in this patch at the moment. I will see if I can find something, and I'd appreciate if you would help with it. regards, glen lee On 2015년 11월 11일 08:42, Arnd Bergmann wrote: The wilc_hif_spi and wilc_hif_sdio structures are part of the bus specific code, and the generic code s

Re: [PATCH 15/20] staging/wilc1000: pass hif operations through initialization

2015-11-12 Thread glen lee
On 2015년 11월 12일 20:39, Arnd Bergmann wrote: On Thursday 12 November 2015 19:05:41 glen lee wrote: Hi arnd, I appreciate the patches. I did test this patch series on h/w which is arm based MCU. From this patch wilc is not working properly. After downloading firmware, the firmware cannot

Re: [PATCH 15/20] staging/wilc1000: pass hif operations through initialization

2015-11-15 Thread glen lee
On 2015년 11월 13일 18:17, Arnd Bergmann wrote: On Friday 13 November 2015 16:49:22 glen lee wrote: Hi arnd, I found this. These should be like this. It works fine. + .hif_block_tx_ext = sdio_write, + .hif_block_rx_ext = sdio_read, also, wilc_hif_spi need to be fixed together like

Re: [staging:staging-testing 203/406] undefined reference to `nf_conntrack_untracked'

2015-11-17 Thread glen lee
Hi fengguang, This is because cfg80211 is built as module but wilc1000 is built into the Kernel. Arnd have posted patch series, not yet applied, which also can fix this Kconfig issue. [PATCH 17/19] staging/wilc1000: split out bus specific modules regards, glen lee. On 2015년 11월 18일 10:24

[PATCH 01/16] staging: wilc1000: remove sdio speed control codes

2015-11-17 Thread Glen Lee
ff-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 8 - drivers/staging/wilc1000/linux_wlan_sdio.c | 52 -- drivers/staging/wilc1000/linux_wlan_sdio.h | 3 -- drivers/staging/wilc1000/wilc_sdio.c | 12 --- drivers/staging/wilc1000/wilc_w

[PATCH 02/16] staging: wilc1000: remove spi speed control codes

2015-11-17 Thread Glen Lee
wilc_spi_max_bus_speed wilc_spi_default_bus_speed hif_set_max_bus_speed hif_set_default_bus_speed Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 42 --- drivers/staging/wilc1000/linux_wlan_spi.h | 2 -- drivers/staging/wilc1000/wilc_spi.c | 11

[PATCH 03/16] staging: wilc1000: remove paltform define PLAT_WMS8304

2015-11-17 Thread Glen Lee
This patch removes PLAT_WMS8304 and it's related codes as well. We will not use this way of supporting other platform. This will be supported if necessary by device tree later. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 161 -- 1

[PATCH 00/16] tidy up sdio/spi module and remove wilc_dev

2015-11-17 Thread Glen Lee
This patch series removes global variable wilc_dev and tidy up sdio/spi modules. I sync with arnd's latest patch series because this work depends on his patches. Glen Lee (16): staging: wilc1000: remove sdio speed control codes staging: wilc1000: remove spi speed control codes st

[PATCH 04/16] staging: wilc1000: pass struct wilc to the functions which use hif_func

2015-11-17 Thread Glen Lee
wilc_get_chipid wilc_unknown_isr_ext wilc_pllupdate_isr_ext wilc_sleeptimer_isr_ext Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 3 +- drivers/staging/wilc1000/linux_wlan.c | 5 +-- drivers/staging/wilc1000/wilc_wlan.c | 56 +++ drivers/staging

[PATCH 08/16] staging: wilc1000: wilc_spi_write: pass struct wilc

2015-11-17 Thread Glen Lee
This patch add new function parameter struct wilc and use it instead of wilc_dev, and pass wilc to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 4 ++-- drivers/staging/wilc1000/linux_wlan_spi.h | 3 ++- drivers/staging/wilc1000/wilc_spi.c

[PATCH 11/16] staging: wilc1000: add struct wilc to host_if_drv

2015-11-17 Thread Glen Lee
This patch adds struct wilc to host_if_dev and assign wilc to use driver's primary structure in host_if_dev. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 1 + drivers/staging/wilc1000/host_interface.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dr

[PATCH 09/16] staging: wilc1000: wilc_spi_read: pass struct wilc

2015-11-17 Thread Glen Lee
This patch adds new function parameter struct wilc and use it instead of global variable wilc_dev, and pass wilc to the functions as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 4 ++-- drivers/staging/wilc1000/linux_wlan_spi.h | 2 +- drivers/staging/wilc1000

[PATCH 10/16] staging: wilc1000: wilc_spi_write_read: pass struct wilc

2015-11-17 Thread Glen Lee
This patch adds new function parameter struct wilc and use it instead of global variable wilc_dev, and pass wilc to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 4 ++-- drivers/staging/wilc1000/linux_wlan_spi.h | 2 +- drivers/staging/wilc1000

[PATCH 05/16] staging: wilc1000: pass wilc to all function pointers of wilc_hif_func

2015-11-17 Thread Glen Lee
ns in linux_wlan_sdio.c and linux_wlan_spi.c to replace with global variable wilc_dev in the next patch. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_sdio.c | 84 +- drivers/staging/wilc1000/wilc_spi.c | 113 +--- drivers/staging/wilc1000/wilc_wlan.c

[PATCH 07/16] staging: wilc1000: wilc_sdio_cmd53: pass struct wilc

2015-11-17 Thread Glen Lee
This patch adds new function parameter struct wilc and use it instead of global variable wilc_dev and pass wilc to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 4 ++-- drivers/staging/wilc1000/linux_wlan_sdio.h | 2 +- drivers/staging/wilc1000

[PATCH 16/16] staging: wilc1000: use wilc instead of wilc_dev and remove wilc_dev

2015-11-17 Thread Glen Lee
This patch changes wilc_dev with wilc in the function call wilc_wlan_get_num_conn_ifcs, and remove wilc_dev and it's related codes. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/linux_wlan.c | 5 + drivers/staging/wil

[PATCH 06/16] staging: wilc1000: wilc_sdio_cmd52: pass struct wilc

2015-11-17 Thread Glen Lee
This patch adds new function parameter struct wilc and use it instead of wilc_dev. Pass wilc to the function as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 4 +-- drivers/staging/wilc1000/linux_wlan_sdio.h | 2 +- drivers/staging/wilc1000/wilc_sdio.c

[PATCH 15/16] staging: wilc1000: wilc_dbg: remove wilc

2015-11-17 Thread Glen Lee
This patch remove parameter struct wilc since it is not used and also wilc_dev will be removed. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- drivers/staging/wilc1000/wilc_wlan.c | 2 +- 3 files

[PATCH 12/16] staging: wilc1000: wilc_send_config_pkt: pass struct wilc

2015-11-17 Thread Glen Lee
This patch passes struct wilc to wilc_send_config_pkt. The function wilc_wlan_cfg_set and wilc_wlan_cfg_get function will get wilc to replace wilc_dev with it. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/coreconfigurator.c | 3 +- drivers/staging/wilc1000/coreconfigurator.h | 3

[PATCH 13/16] staging: wilc1000: wilc_wlan_cfg_set: pass struct wilc

2015-11-17 Thread Glen Lee
This patch pass struct wilc to the function and use it instead of global variable wilc_dev. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/linux_wlan.c | 101 drivers/staging/wilc1000/wilc_wlan.c

[PATCH 14/16] staging: wilc1000: wilc_wlan_cfg_get: pass struct wilc

2015-11-17 Thread Glen Lee
This patch passes the struct wilc to the function and use it instead of global variable wilc_dev. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wlan.c| 4 ++-- drivers

[PATCH 1/4] staging: wilc1000: remove define COMPLEMENT_BOOT

2015-11-18 Thread Glen Lee
This patch removes define COMPLEMENT_BOOT in Makefile. The feature was removed by the following commit but the define was not removed. So remove completely. b46d68825c2d3af70ad18b53dfed6516e393b7fa Signed-off-by: Glen Lee --- drivers/staging/wilc1000/Makefile | 2 -- 1 file changed, 2

[PATCH 4/4] staging: wilc1000: use kernel define byte order macros

2015-11-18 Thread Glen Lee
This patch removes define BIG_ENDIAN and use kernel define byte order macros instead of swap itself. Remove unused BYTE_SWAP macro and __CHECK_ENDIAN__ in Makefile also. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/Makefile| 2 +- drivers/staging/wilc1000/wilc_sdio.c | 8

[PATCH 3/4] staging: wilc1000: rename index to tcp_pending_ack_idx

2015-11-18 Thread Glen Lee
This patch renames "index" of struct txq_entry_t to tcp_pending_ack_idx since this name could be confused index of txq_entry_t. It is index of tcp pending ack. It fixes 8e55639d066f4ef402ba88fca08ed1be70e1c4da Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_w

[PATCH 2/4] staging: wilc1000: remove wilc memory allocation config

2015-11-18 Thread Glen Lee
This patch remove memory allocation options in Kconfig. It was used a long time ago to aquire memory, which we will not use this config anymore. Remove it's config, related define and codes as well. We will take PREALLOCATE_AT_LOADING_DRIVER as it is default. Signed-off-by: Glen Lee --- dr

Re: staging: wilc1000: call linux_sdio_init instead of io_init

2015-11-18 Thread glen lee
On 2015년 11월 18일 19:30, Dan Carpenter wrote: Hello Glen Lee, The patch de11ee8b214e: "staging: wilc1000: call linux_sdio_init instead of io_init" from Nov 6, 2015, leads to the following static checker warning: drivers/staging/wilc1000/wilc_sdio.c:574 sdio_init()

Re: [PATCH 1/4] staging: wilc1000: remove define COMPLEMENT_BOOT

2015-11-18 Thread glen lee
On 2015년 11월 19일 15:19, Dan Carpenter wrote: On Thu, Nov 19, 2015 at 11:05:58AM +0900, Glen Lee wrote: This patch removes define COMPLEMENT_BOOT in Makefile. The feature was removed by the following commit but the define was not removed. So remove completely

Re: [PATCH 3/4] staging: wilc1000: rename index to tcp_pending_ack_idx

2015-11-18 Thread glen lee
On 2015년 11월 19일 15:23, Dan Carpenter wrote: On Thu, Nov 19, 2015 at 11:06:00AM +0900, Glen Lee wrote: This patch renames "index" of struct txq_entry_t to tcp_pending_ack_idx since this name could be confused index of txq_entry_t. It is index of tcp pending ack.

[PATCH 05/26] staging: wilc1000: rename u8WLANChannel variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames u8WLANChannel variable to wlan_channel to avoid camelcase. And, remove the relation comment. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 29 +-- 1 file changed, 11 insertions

[PATCH 04/26] staging: wilc1000: rename WILC_WFI_rates variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames WILC_WFI_rates variable to ieee80211_bitrates to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging

[PATCH 06/26] staging: wilc1000: rename u8P2P_oui variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames u8P2P_oui variable to p2p_oui to avoid camelcase. And, remove the relation comment. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions

[PATCH 02/26] staging: wilc1000: rename astrLastScannedNtwrksShadow variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames astrLastScannedNtwrksShadow variable to last_scanned_shadow to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 124 ++ 1 file changed, 58 insertions(+), 66 deletions

[PATCH 03/26] staging: wilc1000: rename WILC_WFI_2ghz_channels variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames WILC_WFI_2ghz_channels variable to ieee80211_2ghz_channels to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH 07/26] staging: wilc1000: rename u8P2Plocalrandom variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames u8P2Plocalrandom variable to p2p_local_random to avoid camelcase. And, remove the relation comment. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 35 --- 1 file changed, 18

[PATCH 01/26] staging: wilc1000: rename u32LastScannedNtwrksCountShadow variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames u32LastScannedNtwrksCountShadow variable to last_scanned_cnt to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 50 +++ 1 file changed, 24 insertions(+), 26 deletions

[PATCH 09/26] staging: wilc1000: rename u8P2P_vendorspec variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames u8P2P_vendorspec variable to p2p_vendor_spec to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 08/26] staging: wilc1000: rename u8P2Precvrandom variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames u8P2Precvrandom variable to p2p_recv_random to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 24 +++ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a

[PATCH 12/26] staging: wilc1000: rename wilc_connected_SSID variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames wilc_connected_SSID variable to wilc_connected_ssid to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 22 +++--- drivers/staging/wilc1000/host_interface.h | 2

[PATCH 13/26] staging: wilc1000: clear_shadow_scan: remove unused argument

2015-11-18 Thread Glen Lee
From: Leo Kim This patch removes pUserVoid that is first argument of clear_shadow_scan function because it is not used in this function. Remove argument in the function call also. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 4 ++-- 1

[PATCH 11/26] staging: wilc1000: rename duringIP_TIME variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames duringIP_TIME variable to during_ip_time to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000

[PATCH 15/26] staging: wilc1000: rename bDirectScan in refresh_scan function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames bDirectScan to direct_scan that is third argument of refresh_scan function to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH 17/26] staging: wilc1000: rename s32Freq variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames s32Freq variable to freq to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000

[PATCH 16/26] staging: wilc1000: rename pstrNetworkInfo variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pstrNetworkInfo variable to network_info to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a

[PATCH 10/26] staging: wilc1000: rename bWilc_ie variable

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames bWilc_ie variable to wilc_ie to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/staging/wilc1000

[PATCH 18/26] staging: wilc1000: reset_shadow_found: remove unused argument

2015-11-18 Thread Glen Lee
From: Leo Kim This patch removes pUserVoid that is first argument of reset_shadow_found function because it is not used in this function. Remove argument in the function call also. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6

[PATCH 19/26] staging: wilc1000: update_scan_time: remove unused argument

2015-11-18 Thread Glen Lee
From: Leo Kim This patch removes pUserVoid that is first argument of update_scan_time function because it is not used in this function. Remove argument in the function call also. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 5 ++--- 1

[PATCH 14/26] staging: wilc1000: rename pUserVoid in refresh_scan function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pUserVoid to user_void that is first argument of refresh_scan function to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 21/26] staging: wilc1000: rename pUserVoid in add_network_to_shadow function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pUserVoid to user_void that is second argument of add_network_to_shadow function to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH 24/26] staging: wilc1000: rename pUserVoid in CfgScanResult function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pUserVoid to user_void that is third argument of CfgScanResult function to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 23/26] staging: wilc1000: rename pstrNetworkInfo in CfgScanResult function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pstrNetworkInfo to network_info that is second argument of CfgScanResult function to avoid camelcase. And, remove the relation comment. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 41

[PATCH 26/26] staging: wilc1000: rename pstrNetworkInfo in get_rssi_avg function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pstrNetworkInfo to network_info that is first argument of get_rssi_avg function to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH 22/26] staging: wilc1000: rename enuScanEvent in CfgScanResult function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames enuScanEvent to scan_event that is first argument of CfgScanResult function to avoid camelcase. And, remove the relation comment. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 14 +++--- 1 file

[PATCH 20/26] staging: wilc1000: rename pUserVoid in is_network_in_shadow function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pUserVoid to user_void that is second argument of is_network_in_shadow function to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH 25/26] staging: wilc1000: rename pJoinParams in CfgScanResult function

2015-11-18 Thread Glen Lee
From: Leo Kim This patch renames pJoinParams to join_params that is fourth argument of CfgScanResult function to avoid camelcase. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions

Re: [PATCH 3/4] staging: wilc1000: rename index to tcp_pending_ack_idx

2015-11-19 Thread glen lee
On 2015년 11월 20일 00:45, Greg KH wrote: On Thu, Nov 19, 2015 at 03:53:34PM +0900, glen lee wrote: On 2015년 11월 19일 15:23, Dan Carpenter wrote: On Thu, Nov 19, 2015 at 11:06:00AM +0900, Glen Lee wrote: This patch renames "index" of struct txq_entry_t to tcp_pending_ack_idx since

[PATCH 2/6] staging: wilc1000: return linux error value

2015-11-19 Thread Glen Lee
Return proper linux error value -ETIMEDOUT instead of -1. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/coreconfigurator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c

[PATCH 3/6] staging: wilc1000: wilc_wlan.c: remove hif_func of wilc_wlan_dev_t

2015-11-19 Thread Glen Lee
off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 18 +-- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- drivers/staging/wilc1000/wilc_wlan.c | 161 -- 3 files changed, 87 insertions(+), 94 deletions(-) diff --git a/drivers/staging/wilc1

[PATCH 5/6] staging: wilc1000: remove unused varialbe tx_buffer_offset

2015-11-19 Thread Glen Lee
This patch removes unused variable tx_buffer_offset of wilc_wlan_dev_t. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 37879cd..502b499 100644

[PATCH 1/6] staging: wilc1000: remove unused variable

2015-11-19 Thread Glen Lee
wilc_sdio_func is not used anymore so just delete it. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan_sdio.c b/drivers/staging/wilc1000/linux_wlan_sdio.c index 92633aa..ae31f7d

[PATCH 4/6] staging: wilc1000: remove io_type of wilc_wlan_dev_t

2015-11-19 Thread Glen Lee
io_type of wilc_wlan_dev_t is unneeded, we can use io_type of struct wilc. Remove io_type of wilc_wlan_dev_t and use io_type of wilc. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wlan.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH 6/6] staging: wilc1000: move all of wilc_wlan_dev_t to struct wilc

2015-11-19 Thread Glen Lee
be moved into struct wilc. This patch moves all members of wilc_wlan_dev_t to struct wilc and use wilc instead of g_wlan. Finally remove wilc_wlan_dev_t and g_wlan. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 22 +++ drivers/staging/wilc1000/wilc_wlan.c

[PATCH 01/10] staging: wilc1000: sdio/spi: use device print api instead of custom one

2015-11-23 Thread Glen Lee
This patch use device print api instead of driver defined print. Remove varialbe dPrint as well. String "[wilc sdio]" and "[wilc spi]" are also removed from all the print statment if exist because it shows which device the message is related to. Signed-off-by: Glen Lee

[PATCH 02/10] staging: wilc1000: remove wilc_debug_func of hif_init

2015-11-23 Thread Glen Lee
This patch removes wilc_debug_func of hif_init and remove it's related functions as well because it is not used anymore. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_sdio.c | 2 +- drivers/staging/wilc1000/wilc_spi.c | 2 +- drivers/staging/wilc1000/wilc_wlan.c | 2 +- dr

[PATCH 04/10] staging: wilc1000: linux_wlan_sdio.c: fix checkpatch warning line over 80

2015-11-23 Thread Glen Lee
This patch fixes checkpatch warning line over 80 characters. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan_sdio.c b/drivers/staging/wilc1000

[PATCH 06/10] staging: wilc1000: wilc_sdio_cmd53: return linux error value

2015-11-23 Thread Glen Lee
This patch changes return value with linux error value, not 1 or 0. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 7 ++- drivers/staging/wilc1000/wilc_sdio.c | 26 -- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a

[PATCH 08/10] staging: wilc1000: linux_wlan_spi.c: remove braces for single statement

2015-11-23 Thread Glen Lee
This patches fixes checkpatch warning: braces {} are not necessary for single statement blocks. Remove some comments also. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/staging

[PATCH 10/10] staging: wilc1000: linux_wlan_spi.c: fix NULL comparison style

2015-11-23 Thread Glen Lee
This patch fixes checkpatch CHECK:comparison to NULL could be written "b". Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/stagin

[PATCH 03/10] staging: wilc1000: remove unused functions

2015-11-23 Thread Glen Lee
This patch removes unused function pointer hif_sync and hif_clear_int, and removes it's related functions sdio_clear_int, sdio_sync, wilc_spi_clear_int and wilc_spi_sync. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_sdio.c | 94 drivers/st

[PATCH 09/10] staging: wilc1000: linux_wlan_spi.c: add a blank

2015-11-23 Thread Glen Lee
This patch fixes checkpatch warning: missing a blank like after declarations. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/staging/wilc1000/linux_wlan_spi.c index

[PATCH 05/10] staging: wilc1000: linux_wlan_sdio.c: remove braces

2015-11-23 Thread Glen Lee
This patch fixes checkpatch warning braces{} are not necessary for single statment blocks. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan_sdio.c b/drivers/staging

[PATCH 07/10] staging: wilc1000: wilc_sdio_cmd52: return linux error value

2015-11-23 Thread Glen Lee
This patch changes return value with linux error value, not 1 or 0. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 6 ++-- drivers/staging/wilc1000/wilc_sdio.c | 51 +++--- 2 files changed, 35 insertions(+), 22 deletions(-) diff --git a

[PATCH 01/10] staging: wilc1000: fix rmmod failure

2015-11-24 Thread Glen Lee
This patch fixes rmmod failure. wilc->firmware needs to be set to NULL because it is used again to check firmware is released when module exit. Fixes: 8b8ad7bc90bc ("staging: wilc1000: rename wilc_firmware in the struct wilc") Signed-off-by: Glen Lee --- drivers/staging/wilc1000

[PATCH 02/10] staging: wilc1000: wilc_wfi_cfgoperations.c: remove over-commenting

2015-11-24 Thread Glen Lee
preferred Linux style. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 681 +- 1 file changed, 23 insertions(+), 658 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000

[PATCH 06/10] staging: wilc1000: wilc_init(): fixes inconsistent returns

2015-11-24 Thread Glen Lee
From: Leo Kim This patch fixes the warning reported by smatch. - wilc_init() warn: inconsistent returns 'sem:&hif_drv->sem_cfg_values' No need to up the sema here since down was not called before get here. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers

[PATCH 03/10] staging: wilc1000: fixes blank lines aren't necessary brace

2015-11-24 Thread Glen Lee
From: Leo Kim This patch fixes the checks reported by checkpatch.pl for Blank lines aren't necessary after an open brace '{' and Blank lines aren't necessary before a close brace '}'. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000

[PATCH 04/10] staging: wilc1000: replace explicit NULL comparisons with !

2015-11-24 Thread Glen Lee
From: Leo Kim This patch replace explicit NULL comparison with ! operator to simplify code. Reported by checkpatch.pl for Comparison to NULL could be written !XXX" or "XXX". Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_cfgop

[PATCH 05/10] staging: wilc1000: fixes potential null dereference 'wid.val'

2015-11-24 Thread Glen Lee
From: Leo Kim This patch fixes the error reported by smatch. - Handle_ListenStateExpired() error: potential null dereference 'wid.val' If kmalloc failed, referenced to a NULL pointer. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c |

[PATCH 08/10] staging: wilc1000: Handle_AddBASession: remove unused function

2015-11-24 Thread Glen Lee
From: Leo Kim This patch removes unused a function Handle_AddBASession. And, removes the relation define. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 69 --- 1 file changed, 69 deletions(-) diff --git a/drivers

[PATCH 09/10] staging: wilc1000: change if with else if

2015-11-24 Thread Glen Lee
From: Leo Kim The if statement should be else if since it is part of whole if condition. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wilc1000

[PATCH 07/10] staging: wilc1000: wilc_deinit(): fixes inconsistent returns

2015-11-24 Thread Glen Lee
im Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 3aea6ec..8f27227 100644 --- a/drivers/staging/wilc1000/host_interface.c +++

[PATCH 10/10] staging: wilc1000: Handle_SetMulticastFilter(): fixes right shifting more than type allows

2015-11-24 Thread Glen Lee
From: Leo Kim This patch fixes the warning reported by smatch. - Handle_SetMulticastFilter() warn: right shifting more than type allows That is unnecessary action of boolean type. just assign 0. Signed-off-by: Leo Kim Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c

[PATCH 2/4] staging: wilc1000: linux_sdio_probe: use return value

2015-11-25 Thread Glen Lee
Return ret from wilc_netdev_init instead of -1 for proper error handling. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan_sdio.c b/drivers/staging/wilc1000

[PATCH 4/4] staging: wilc1000: remove unused files

2015-11-25 Thread Glen Lee
This patch removes linux_wlan_sdio.[ch] which is not used anymore. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/Makefile | 2 +- drivers/staging/wilc1000/linux_wlan_sdio.c | 10 -- drivers/staging/wilc1000/linux_wlan_sdio.h | 1 - 3 files changed, 1 insertion(+), 12

[PATCH 1/4] staging: wilc1000: linux_wlan_spi.c: return linux error value

2015-11-25 Thread Glen Lee
return linux error value instead of 0 or 1 and use -EINVAL. Related codes also changed together. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 14 +++--- drivers/staging/wilc1000/wilc_spi.c | 18 +- 2 files changed, 12 insertions(+), 20

[PATCH 3/4] staging: wilc1000: linux_wlan_sdio.c: move all the codes to wilc_sdio.c

2015-11-25 Thread Glen Lee
. linux_wlan_sdio.[ch] will be deleted in the next patch. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_sdio.c | 160 drivers/staging/wilc1000/linux_wlan_sdio.h | 7 -- drivers/staging/wilc1000/wilc_sdio.c | 164 - 3 files

[PATCH 2/5] staging: wilc1000: remove unneeded function

2015-11-25 Thread Glen Lee
wilc_spi_init in linux_wlan_spi.c is unneeded. It just return true. Rename _wilc_spi_init in wlan_spi.c to wilc_spi_init. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 5 - drivers/staging/wilc1000/linux_wlan_spi.h | 1 - drivers/staging/wilc1000/wilc_spi.c

[PATCH 4/5] staging: wilc1000: remove unused files

2015-11-25 Thread Glen Lee
This patch removes linux_wlan_spi.[ch] which are not used anymore. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/Makefile | 2 +- drivers/staging/wilc1000/linux_wlan_spi.c | 16 drivers/staging/wilc1000/linux_wlan_spi.h | 6 -- 3 files changed, 1 insertion

[PATCH 3/5] staging: wilc1000: linux_wlan_spi.c: move all the codes to wilc_spi.c

2015-11-25 Thread Glen Lee
] will be remove in the next patch. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 165 --- drivers/staging/wilc1000/linux_wlan_spi.h | 4 - drivers/staging/wilc1000/wilc_spi.c | 180 +- 3 files changed, 178

[PATCH 5/5] staging: wilc1000: remove unneeded extern variable

2015-11-25 Thread Glen Lee
This patch removes unnedded extern variable WILC_WFI_devs[] which is not used. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000

[PATCH 1/5] staging: wilc1000: rename spi function names

2015-11-25 Thread Glen Lee
wilc_spi_tx_rx, _wilc_spi_write to wilc_spi_write, _wilc_spi_read to wilc_spi_read. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan_spi.c | 6 +++--- drivers/staging/wilc1000/linux_wlan_spi.h | 6 +++--- drivers/staging/wilc1000/wilc_spi.c | 34 +++ 3

[PATCH 0/3] clean up interface information structure

2015-11-26 Thread Glen Lee
This patch series combines perInterface_wlan_t and struct wilc_vif. vif of struct wilc can be the pointer of net device private data with perInterface_wlan_t. As a conseqeunce, there will be one interface information structure wilc_vif. Glen Lee (3): staging: wilc1000: move perInterface_wlan_t

[PATCH 1/3] staging: wilc1000: move perInterface_wlan_t to wilc_vif

2015-11-26 Thread Glen Lee
rename variable name nic to vif which is proper name for it. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 6 +- drivers/staging/wilc1000/linux_wlan.c | 251 +++--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 148

[PATCH 3/3] staging: wilc1000: remove duplicate netdev

2015-11-26 Thread Glen Lee
There are two net_device pointer which is the same because two structures are merged into wilc_vif in previous patch. Remove wilc_netdev and change with ndev. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 35 +++ drivers/staging/wilc1000

[PATCH 2/3] staging: wilc1000: change vif to pointer to refence real private data

2015-11-26 Thread Glen Lee
vif of struct has it's own memory which is not necessary because we have allocated vif from netdev_priv. Change vif to pointer type and assign vif which is netdev private data. Change it's operator on related codes as well. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/li

Re: [PATCH 1/1] staging: cleanup: Fix incompatible type comparison in wilc1000/host_interface.c

2015-12-03 Thread glen lee
On 2015년 12월 03일 00:12, Mario J. Rugiero wrote: OK. Since the maintainers are CC'd, I guess I should wait for a clarification about this? Hi Mario, The purpose of that is to check if tail is null or not. if it is not null, there is tail to send, so copy to buff. regards, glen lee.

  1   2   3   4   5   6   7   8   >