[PATCH v2 1/4] staging: wilc1000: remove unused flags in handle_cfg_param()

2018-10-29 Thread Adham.Abozaeid
From: Adham Abozaeid handle_cfg_param() receives a bit map that describes what to be changed. Some of these bits flags aren't referred to from elsewhere and can be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 216 --

[PATCH v2 3/4] staging: wilc1000: Don't keep a copy of wiphy parameters in the driver

2018-10-29 Thread Adham.Abozaeid
From: Adham Abozaeid host_if_drv.cfg_values is a write only member, and can be removed Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 13 - drivers/staging/wilc1000/host_interface.h | 1 - 2 files changed, 14 deletions(-) diff --git

[PATCH v2 2/4] staging: wilc1000: validate cfg parameters before scheduling the work

2018-10-29 Thread Adham.Abozaeid
From: Adham Abozaeid Validate cfg parameters after being called by cfg80211 in set_wiphy_params before scheduling the work executed in handle_cfg_param Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 61 ++-

[PATCH v2 0/4] staging: wilc1000: validate input to set_wiphy_param and return proper errors

2018-10-29 Thread Adham.Abozaeid
From: Adham Abozaeid Validate input parameters to set_wiphy_param before scheduling handle_cfg_param() to validate them. This way proper errors can be returned to caller. Also cleaned up unused code in handle_cfg_param. Changes since v1: - Correction spelling in subject of patch#2

[PATCH v2 4/4] staging: wilc1000: Remove unused mutex cfg_values_lock

2018-10-29 Thread Adham.Abozaeid
From: Adham Abozaeid After removing cfg_values member, cfg_values_lock that was used to protect it can also be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 9 - drivers/staging/wilc1000/host_interface.h | 2 -- 2 files changed, 11 deletions(-)

[PATCH 0/4] staging: wilc1000: validate input to set_wiphy_param and return proper errors

2018-10-25 Thread Adham.Abozaeid
Validate input parameters to set_wiphy_param before scheduling handle_cfg_param() to validate them. This way proper errors can be returned to caller. Also cleaned up unused code in handle_cfg_param. Adham Abozaeid (4): staging: wilc1000: remove unused flags in handle_cfg_param() stagign:

[PATCH 2/4] stagign: wilc1000: validate cfg parameters before scheduling the work

2018-10-25 Thread Adham.Abozaeid
Validate cfg parameters after being called by cfg80211 in set_wiphy_params before scheduling the work executed in handle_cfg_param Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 61 ++- .../staging/wilc1000/wilc_wfi_cfgoperations.c | 50

[PATCH 3/4] staging: wilc1000: Don't keep a copy of wiphy parameters in the driver

2018-10-25 Thread Adham.Abozaeid
host_if_drv.cfg_values is a write only member, and can be removed Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 13 - drivers/staging/wilc1000/host_interface.h | 1 - 2 files changed, 14 deletions(-) diff --git

[PATCH 1/4] staging: wilc1000: remove unused flags in handle_cfg_param()

2018-10-25 Thread Adham.Abozaeid
handle_cfg_param() receives a bit map that describes what to be changed. Some of these bits flags aren't referred to from elsewhere and can be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 216 --

[PATCH 4/4] staging: wilc1000: Remove unused mutex cfg_values_lock

2018-10-25 Thread Adham.Abozaeid
After removing cfg_values member, cfg_values_lock that was used to protect it can also be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 9 - drivers/staging/wilc1000/host_interface.h | 2 -- 2 files changed, 11 deletions(-) diff --git

Re: [PATCH 2/4] stagign: wilc1000: validate cfg parameters before scheduling the work

2018-10-26 Thread Adham.Abozaeid
On 10/26/18 2:36 AM, Dan Carpenter wrote: > On Thu, Oct 25, 2018 at 09:11:00PM +, adham.aboza...@microchip.com wrote: > > You'll need to resend these because your email from header is in the > wrong format. Also there is a typo in the subject. s/stagign/staging/. > Apologies Dan for that!

[PATCH v4 0/3] staging: wilc1000: validate input to set_wiphy_param and return proper

2018-11-08 Thread Adham.Abozaeid
From: Adham Abozaeid Validate input parameters to set_wiphy_param before scheduling handle_cfg_param() to validate them. This way proper errors can be returned to caller. Also cleaned up unused code in handle_cfg_param. Changes since v1: - Correction spelling in subject of patch#2 - Added From:

[PATCH v4 3/3] staging: wilc1000: Remove unused mutex cfg_values_lock

2018-11-08 Thread Adham.Abozaeid
From: Adham Abozaeid From: Adham Abozaeid After removing cfg_values member, cfg_values_lock that was used to protect it can also be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 9 - drivers/staging/wilc1000/host_interface.h | 2 -- 2 files

[PATCH v4 2/3] staging: wilc1000: Don't keep a copy of wiphy parameters in the driver

2018-11-08 Thread Adham.Abozaeid
From: Adham Abozaeid From: Adham Abozaeid host_if_drv.cfg_values is a write only member, and can be removed Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 13 - drivers/staging/wilc1000/host_interface.h | 1 - 2 files changed, 14 deletions(-)

[PATCH v4 1/3] staging: wilc1000: validate cfg parameters before scheduling the work

2018-11-08 Thread Adham.Abozaeid
From: Adham Abozaeid From: Adham Abozaeid Validate cfg parameters after being called by cfg80211 in set_wiphy_params before scheduling the work executed in handle_cfg_param Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 61 ++-

[PATCH v3 4/4] staging: wilc1000: Remove unused mutex cfg_values_lock

2018-11-05 Thread Adham.Abozaeid
From: Adham Abozaeid After removing cfg_values member, cfg_values_lock that was used to protect it can also be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 9 - drivers/staging/wilc1000/host_interface.h | 2 -- 2 files changed, 11 deletions(-)

[PATCH v3 2/4] staging: wilc1000: validate cfg parameters before scheduling the work

2018-11-05 Thread Adham.Abozaeid
From: Adham Abozaeid Validate cfg parameters after being called by cfg80211 in set_wiphy_params before scheduling the work executed in handle_cfg_param Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 61 ++-

[PATCH v3 3/4] staging: wilc1000: Don't keep a copy of wiphy parameters in the driver

2018-11-05 Thread Adham.Abozaeid
From: Adham Abozaeid host_if_drv.cfg_values is a write only member, and can be removed Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 13 - drivers/staging/wilc1000/host_interface.h | 1 - 2 files changed, 14 deletions(-) diff --git

[PATCH v3 0/4] staging: wilc1000: validate input to set_wiphy_param and return proper errors

2018-11-05 Thread Adham.Abozaeid
From: Adham Abozaeid Validate input parameters to set_wiphy_param before scheduling handle_cfg_param() to validate them. This way proper errors can be returned to caller. Also cleaned up unused code in handle_cfg_param. Changes since v1: - Correction spelling in subject of patch#2 - Added From:

[PATCH v3 1/4] staging: wilc1000: remove unused flags in handle_cfg_param()

2018-11-05 Thread Adham.Abozaeid
From: Adham Abozaeid handle_cfg_param() receives a bit map that describes what to be changed. Some of these bits flags aren't referred to from elsewhere and can be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 216 --

Re: [PATCH v3 2/4] staging: wilc1000: validate cfg parameters before scheduling the work

2018-11-08 Thread Adham.Abozaeid
On 11/8/18 4:22 AM, Greg KH wrote: > On Tue, Nov 06, 2018 at 12:01:18AM +, adham.aboza...@microchip.com wrote: >> From: Adham Abozaeid >> >> Validate cfg parameters after being called by cfg80211 in set_wiphy_params >> before scheduling the work executed in handle_cfg_param >> >>

[PATCH v5 2/3] staging: wilc1000: Don't keep a copy of wiphy parameters in the driver

2018-11-09 Thread Adham.Abozaeid
From: Adham Abozaeid host_if_drv.cfg_values is a write only member, and can be removed Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 13 - drivers/staging/wilc1000/host_interface.h | 1 - 2 files changed, 14 deletions(-) diff --git

[PATCH v5 1/3] staging: wilc1000: validate cfg parameters before scheduling the work

2018-11-09 Thread Adham.Abozaeid
From: Adham Abozaeid Validate cfg parameters after being called by cfg80211 in set_wiphy_params before scheduling the work executed in handle_cfg_param Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 61 ++-

[PATCH v5 3/3] staging: wilc1000: Remove unused mutex cfg_values_lock

2018-11-09 Thread Adham.Abozaeid
From: Adham Abozaeid After removing cfg_values member, cfg_values_lock that was used to protect it can also be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 9 - drivers/staging/wilc1000/host_interface.h | 2 -- 2 files changed, 11 deletions(-)

[PATCH v5 0/3] staging: wilc1000: validate input to set_wiphy_param and return proper

2018-11-09 Thread Adham.Abozaeid
From: Adham Abozaeid Validate input parameters to set_wiphy_param before scheduling handle_cfg_param() to validate them. This way proper errors can be returned to caller. Also cleaned up unused code in handle_cfg_param. Changes since v1: - Correction spelling in subject of patch#2 - Added From:

[PATCH] staging: wilc1000: use cfg80211 ssid list instead of repacking it

2019-03-25 Thread Adham.Abozaeid
From: Adham Abozaeid Avoid repacking ssid values into struct wilc_probe_ssid, and use the cfg80211 provided struct to pass the ssid list to wilc_scan. With this change, struct wilc_probe_ssid, struct wilc_probe_ssid_info and function wilc_wfi_cfg_alloc_fill_ssid will not be needed anymore.

[PATCH] staging: wilc1000: assign scan result callback before starting the scan

2019-03-27 Thread Adham.Abozaeid
From: Adham Abozaeid When scan is triggered, sometimes scan results are received before the scan result callback is assigned, causing the recieved results to be ignored. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v2] staging: wilc1000: remove redundant reset of station statistics

2019-01-29 Thread Adham.Abozaeid
From: Adham Abozaeid Driver sends configuration wids to reset connection statistics in the device, but the device already resets it when starting a new connection Signed-off-by: Adham Abozaeid --- Changes in v2: - Decrease the size of wid_list array

Re: [PATCH 1/1] staging: wilc1000: remove redundant reset of station statistics

2019-01-29 Thread Adham.Abozaeid
On 1/29/19 1:39 AM, Dan Carpenter wrote: > On Mon, Jan 28, 2019 at 10:38:20PM +, adham.aboza...@microchip.com wrote: >> From: Adham Abozaeid >> >> Driver sends configuration wids to reset connection statistics in the >> device, but the device already resets it when starting a new connection

[PATCH 1/1] staging: wilc1000: remove redundant reset of station statistics

2019-01-28 Thread Adham.Abozaeid
From: Adham Abozaeid Driver sends configuration wids to reset connection statistics in the device, but the device already resets it when starting a new connection Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 20 +--- 1 file changed, 1

Re: [PATCH RFC] staging: wilc1000: give usleep_range a range

2019-04-08 Thread Adham.Abozaeid
Hi Nicholas On 4/6/19 5:01 AM, Nicholas Mc Guire wrote: > External E-Mail > > > Someone that knows the motivation for setting the time to 2 millisecond > might need to check if the 2 milliseconds where seen as tollerable max or > min - I'm assuming it was the min so extending. 2 msec is the time

Re: [PATCH RFC] staging: wilc1000: give usleep_range a range

2019-04-08 Thread Adham.Abozaeid
Hi Nicholas On 4/6/19 5:01 AM, Nicholas Mc Guire wrote: > External E-Mail > > > usleep_range() is called in non-atomic context so there is little point > in setting min==max the jitter of hrtimer is determined by interruptions > anyway. usleep_range can only perform the intended coalescence if

[PATCH] staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context

2019-04-16 Thread Adham.Abozaeid
From: Adham Abozaeid txq_add_mgmt_pkt allocates memory while being called from atomic context so needs to use GFP_ATOMIC Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_wlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] staging: wilc1000: add passive scan support

2019-06-20 Thread Adham.Abozaeid
From: Adham Abozaeid Add passive scan support to the driver by passing the scan type to the HW and configure the HW scan time if configured by the cfg80211. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 18 +++---

Re: [PATCH] staging: wilc1000: remove redundant masking of pkt_offset

2019-05-21 Thread Adham.Abozaeid
On 5/21/19 6:17 AM, Colin King wrote: > External E-Mail > > > From: Colin Ian King > > The masking update of pkg_offset is redundant as the updated > value is never read and pkg_offset is re-assigned on the next > iteration of the loop. Clean this up by removing the redundant > assignment. > >

Re: [PATCH RFC] staging: wilc1000: give usleep_range a range

2019-04-10 Thread Adham.Abozaeid
Hi Nicolas On 4/8/19 6:36 PM, Nicholas Mc Guire wrote: > On Mon, Apr 08, 2019 at 09:10:00PM +, adham.aboza...@microchip.com wrote: >> Hi Nicholas >> >> On 4/6/19 5:01 AM, Nicholas Mc Guire wrote: >>> External E-Mail >>> >>> >>> Someone that knows the motivation for setting the time to 2

[PATCH] staging: wilc1000: look for rtc_clk clock in spi mode

2019-09-16 Thread Adham.Abozaeid
From: Adham Abozaeid If rtc_clk is provided from DT, use it and enable it. This is optional. The signal may be hardcoded and no need to be requested, but if DT provides it, use it. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_spi.c | 11 +++ 1 file changed, 11

Re: [PATCH] staging: wilc1000: look for rtc_clk clock in spi mode

2019-09-16 Thread Adham.Abozaeid
On 9/16/19 5:49 PM, kbuild test robot wrote: > > [auto build test ERROR on linus/master] > [cannot apply to v5.3 next-20190916] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] This patch applies for staging-testing, not linus/master.

[PATCH] staging: wilc1000: remove unused function

2019-07-31 Thread Adham.Abozaeid
From: Adham Abozaeid function wilc_resolve_disconnect_aberration isn't referenced, so removing it Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 9 - drivers/staging/wilc1000/wilc_hif.h | 1 - 2 files changed, 10 deletions(-) diff --git

[PATCH] staging: wilc1000: merge drv_handle and operation_mode wids

2019-07-31 Thread Adham.Abozaeid
From: Adham Abozaeid wilc_set_wfi_drv_handler and wilc_set_operation_mode sends the same parameters to the FW, so it's better to combine them together. Kept wilc_set_wfi_drv_handler implementation since it sends all the required parameters, and renamed it to wilc_set_operation_mode to be more

[PATCH v2 1/2] staging: wilc1000: merge drv_handle and operation_mode wids

2019-08-01 Thread Adham.Abozaeid
From: Adham Abozaeid wilc_set_wfi_drv_handler and wilc_set_operation_mode sends the same parameters to the FW, so it's better to combine them together. Kept wilc_set_wfi_drv_handler implementation since it sends all the required parameters, and renamed it to wilc_set_operation_mode to be more

[PATCH v2 0/2] staging: wilc1000: merge drv_handle and operation_mode wids

2019-08-01 Thread Adham.Abozaeid
From: Adham Abozaeid This patch series merges drv_handle and operation_mode wids since they provide duplicate information to WILC. Also it removes function wilc_resolve_disconnect_aberration that's not referenced Changes since v1: - Removed missed reference for wilc_set_wfi_drv_handler from

[PATCH v2 2/2] staging: wilc1000: remove unused function

2019-08-01 Thread Adham.Abozaeid
From: Adham Abozaeid function wilc_resolve_disconnect_aberration isn't referenced, so removing it Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 9 - drivers/staging/wilc1000/wilc_hif.h | 1 - 2 files changed, 10 deletions(-) diff --git

Re: [PATCH] staging: wilc1000: merge drv_handle and operation_mode wids

2019-08-01 Thread Adham.Abozaeid
Hi Greg On 8/1/19 9:41 AM, Greg KH wrote: > External E-Mail > > > On Wed, Jul 31, 2019 at 08:58:19PM +, adham.aboza...@microchip.com wrote: > This patch causes the following build error: > drivers/staging/wilc1000/wilc_hif.c: In function wilc_deinit: >

Re: [PATCH 3/6] staging: wilc1000: remove unused members

2019-08-06 Thread Adham.Abozaeid
Hi Dan On 8/6/19 5:46 AM, Dan Carpenter wrote: > External E-Mail > > > On Thu, Jul 25, 2019 at 09:31:34PM +, adham.aboza...@microchip.com wrote: >> From: Adham Abozaeid >> >> remove obtaining_ip from struct wilc_vif >> > How is this "unused"? It looks like it is used to me. The main usage

Re: [PATCH 3/6] staging: wilc1000: remove unused members

2019-08-08 Thread Adham.Abozaeid
Hi Dan On 8/7/19 4:03 AM, Dan Carpenter wrote: > External E-Mail > > > On Tue, Aug 06, 2019 at 07:32:08PM +, adham.aboza...@microchip.com wrote: >> Hi Dan >> >> On 8/6/19 5:46 AM, Dan Carpenter wrote: >>> External E-Mail >>> >>> >>> On Thu, Jul 25, 2019 at 09:31:34PM +,

Re: [PATCH 3/6] staging: wilc1000: remove unused members

2019-08-08 Thread Adham.Abozaeid
On 8/7/19 4:03 AM, Dan Carpenter wrote: > External E-Mail > > > On Tue, Aug 06, 2019 at 07:32:08PM +, adham.aboza...@microchip.com wrote: >> Hi Dan >> >> On 8/6/19 5:46 AM, Dan Carpenter wrote: >>> External E-Mail >>> >>> >>> On Thu, Jul 25, 2019 at 09:31:34PM +,

[PATCH] staging: wilc1000: Don't reset WILC CPU disgracefully

2019-08-08 Thread Adham.Abozaeid
From: Adham Abozaeid Send abort request to WILC from wilc_wlan_stop instead of resetting the CPU. The abort request was being sent from wilc_wlan_cleanup after the CPU was reset which wasn't the correct order. The abort request handler in the chip will take care of resetting the CPU.

[PATCH v2 0/2] staging: wilc1000: Don't reset WILC CPU disgracefully

2019-08-09 Thread Adham.Abozaeid
From: Adham Abozaeid This patch series modifies wilc_wlan_stop to send an abort request to wilc instead of disgracefully resetting its CPU. changes sinces v1: - return kernel error codes from wilc_wlan_stop - added missing checks for bus operations Adham Abozaeid (2): staging: wilc1000:

[PATCH v2 2/2] staging: wilc1000: return kernel error codes from wilc_wlan_stop

2019-08-09 Thread Adham.Abozaeid
From: Adham Abozaeid return -EIO for bus failures, 0 otherwise. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_wlan.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c

[PATCH v2 1/2] staging: wilc1000: Don't reset WILC CPU disgracefully

2019-08-09 Thread Adham.Abozaeid
From: Adham Abozaeid Send abort request to WILC from wilc_wlan_stop instead of resetting the CPU. The abort request was being sent from wilc_wlan_cleanup after the CPU was reset which wasn't the correct order. The abort request handler in the chip will take care of resetting the CPU.

[PATCH v2] staging: wilc1000: flush the workqueue before deinit the host

2019-07-22 Thread Adham.Abozaeid
From: Adham Abozaeid Before deinitializing the host interface, the workqueue should be flushed to handle any pending deferred work Signed-off-by: Adham Abozaeid --- changes in v2: - Regenerated patch from branch's head drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 + 1 file changed,

[PATCH 4/6] staging: wilc1000: avoid overriding powersave state

2019-07-25 Thread Adham.Abozaeid
From: Adham Abozaeid Don't override powersave state with respect to the open interfaces and let the firmware take care of when it's appropriate to do so Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 11 ++-

[PATCH 0/6] staging: wilc1000: don't override user power management selection

2019-07-25 Thread Adham.Abozaeid
From: Adham Abozaeid This patch series has changes to avoid overriding the user's selection of power management. The current implementation overrides power management settings according to ip address state, scan state and number and type of open interfaces. Adham Abozaeid (6): staging:

[PATCH 6/6] staging: wilc1000: remove manual sleep mode

2019-07-25 Thread Adham.Abozaeid
From: Adham Abozaeid manual sleep mode was used to put the wilc1000 chip in sleep while in disconnected state. This is taken care of in the firmware Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 4 drivers/staging/wilc1000/wilc_sdio.c | 4 +---

[PATCH 3/6] staging: wilc1000: remove unused members

2019-07-25 Thread Adham.Abozaeid
From: Adham Abozaeid remove obtaining_ip from struct wilc_vif Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 9 ++--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 --- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 - 3 files changed,

[PATCH 5/6] staging: wilc1000: apply power management regardless of open interfaces

2019-07-25 Thread Adham.Abozaeid
From: Adham Abozaeid Don't ignore power management if 2 interfaces are open Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_hif.c b/drivers/staging/wilc1000/wilc_hif.c index

[PATCH 1/6] staging: wilc1000: remove inetaddr notifier

2019-07-25 Thread Adham.Abozaeid
From: Adham Abozaeid Driver registers an inetaddr notifier to disable powersave while the ip address is being obtained which should be controlled only by cfg80211. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_netdev.c | 65 -- 1 file changed, 65

[PATCH 2/6] staging: wilc1000: remove ip timeout timer

2019-07-25 Thread Adham.Abozaeid
From: Adham Abozaeid during_ip_timer is not required after removing the code that disables powersave while the ip is being obtained. Its handler clear_during_ip is also removed Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_hif.c | 2 --

[PATCH] staging: wilc1000: flush the workqueue before deinit the host ifc

2019-07-22 Thread Adham.Abozaeid
From: Adham Abozaeid Before deinitializing the host interface, the workqueue should be flushed to handle any pending deferred work Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 4/4] staging: wilc1000: use GENMASK to extract wid type

2019-11-22 Thread Adham.Abozaeid
From: Ajay Singh Refactor code by make use of 'GENMASK' to extract the WID type from buffer received from firmware. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/wlan.h | 1 + drivers/staging/wilc1000/wlan_cfg.c | 8 2 files changed, 5 insertions(+), 4 deletions(-) diff

[PATCH 1/4] staging: wilc1000: use runtime configuration for sdio oob interrupt

2019-11-22 Thread Adham.Abozaeid
From: Ajay Singh Set SDIO Out-of-band interrupt configuration at run time by passing parameter during module load. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/Kconfig | 10 -- drivers/staging/wilc1000/sdio.c | 7 ++- 2 files changed, 6 insertions(+), 11 deletions(-)

[PATCH 2/4] staging: wilc1000: remove unused compile time featurization

2019-11-22 Thread Adham.Abozaeid
From: Ajay Singh Removed the unused compile type featurization. It's not recommended to have compile type feature. Currently removing these defines as they are not used. If any of these parameters are needed later should be added using run time feature. Signed-off-by: Ajay Singh ---

[PATCH 3/4] staging: wilc1000: use kernel provided struct cast to extract mac header

2019-11-22 Thread Adham.Abozaeid
From: Ajay Singh To parse the mac header make use of *struct ieee80211_hdr* instead of extracting individual fields separately using pointer operation. Signed-off-by: Ajay Singh --- drivers/staging/wilc1000/netdev.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git

Re: [PATCH 1/4] staging: wilc1000: use runtime configuration for sdio oob interrupt

2019-12-03 Thread Adham.Abozaeid
On 11/25/19 2:26 AM, Julian Calaby wrote: > Hi Adham, > > The OOB interrupt is a GPIO and this is an SDIO card, so why not just > set the relevant pin in the devicetree and detect it based on that? > > I'm pretty sure that the Broadcom fmac driver does something like this. Thanks Julian and Dan

[PATCH] staging: wilc1000: check if device is initialzied before changing vif

2019-10-28 Thread Adham.Abozaeid
From: Adham Abozaeid When killing hostapd, the interface is closed which deinitializes the device, then change virtual interface is called. This change checks if the device is initialized before sending the interface change command to the device Signed-off-by: Adham Abozaeid ---

Re: [PATCH] staging: wilc1000: potential corruption in wilc_parse_join_bss_param()

2019-10-17 Thread Adham.Abozaeid
On 10/17/19 2:18 AM, Dan Carpenter wrote: > The "rates_len" value needs to be capped so that the memcpy() doesn't > copy beyond the end of the array. > > Fixes: c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver") > Signed-off-by: Dan Carpenter > --- >

[PATCH] staging: wilc1000: store bss object and use cfg80211_connect_bss()

2019-10-17 Thread Adham.Abozaeid
From: Adham Abozaeid In a fast disconnect/connect sequence, cfg80211_connect_result() can fail to find the bss object which the driver is connecting to. Detailed sequence of events: * Driver is connected in STA mode * Disconnect request arrives from user space. Driver disconnects and calls

Re: FW: [bug report] staging: wilc1000: added support to dynamically add/remove interfaces

2019-11-18 Thread Adham.Abozaeid
> -Original Message- > From: Dan Carpenter > Sent: Thursday, November 14, 2019 12:03 AM > To: Ajay Kathat - I15481 > Cc: de...@driverdev.osuosl.org > Subject: [bug report] staging: wilc1000: added support to dynamically > add/remove interfaces > > > > [ When we renamed the files,

[PATCH] staging: wilc1000: don't use wdev while setting tx power

2019-10-04 Thread Adham.Abozaeid
From: Adham Abozaeid WILC doesn't support per-vif tx power, and hence, wdev will always be null in calls to set_tx_power. Instead, wiphy should be used to execute the operation Signed-off-by: Adham Abozaeid --- .../staging/wilc1000/wilc_wfi_cfgoperations.c| 16 +++- 1 file

Re: [PATCH] staging: Replace zero-length array with flexible-array member

2020-02-20 Thread Adham.Abozaeid
Hi Gustavo On 2/20/20 6:29 AM, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: >