public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/26] staging: wilc1000: avoid use of static and global variable
@ 2018-09-04  6:39 Ajay Singh
  2018-09-04  6:39 ` [PATCH v2 01/26] staging: wilc1000: move 'wilc_enable_ps' global variable into 'wilc' struct Ajay Singh
                   ` (25 more replies)
  0 siblings, 26 replies; 29+ messages in thread
From: Ajay Singh @ 2018-09-04  6:39 UTC (permalink / raw)
  To: linux-wireless
  Cc: devel, gregkh, ganesh.krishna, venkateswara.kaja, aditya.shankar,
	claudiu.beznea, adham.abozaeid, Ajay Singh

This patch set mainly contains changes to avoid the use of static
and global variables. Also contains few patch to avoid the checkpatch
warning arise due to code refactor.

Changes since v1:
 1. rework on patch#10, use dynamically allocating memory to maintain
    multicast mac address filter list.
 2. rework on patch#11, only move hif_workqueue to 'wilc' struct.
 3. dropped patch#12 of previous patchset version.
 4. modified patch#18 & #19 as per the review comments.
 5. patch#22, change 'int' to 'bool' type for 'connecting' variable.
 6. added 3 new patches #24,25 &26 in this series.


Ajay Singh (26):
  staging: wilc1000: move 'wilc_enable_ps' global variable into 'wilc'
    struct
  staging: wilc1000: move 'aging_timer' static variable to wilc_priv
    struct
  staging: wilc1000: fix to use correct index to free scanned info in
    clear_shadow_scan()
  staging: wilc1000: remove unnecessary NULL check in
    clear_shadow_scan()
  staging: wilc1000: moved last_scanned_shadow & last_scanned_cnt to
    wilc_priv struct
  staging: wilc1000: move during_ip_timer & wilc_optaining_ip to
    'wilc_vif' struct
  staging: wilc1000: remove unused variable 'op_ifcs'
  staging: wilc1000: avoid use of extra 'if' condition in wilc_init()
  staging: wilc1000: move static variable clients_count to 'wilc'
    structure
  staging: wilc1000: refactor code to avoid use of
    wilc_set_multicast_list global
  staging: wilc1000: move hif_workqueue static variables to 'wilc'
    structure
  staging: wilc1000: move 'periodic_rssi' as part of 'wilc_vif' struct
  staging: wilc1000: rename 'dummy_statistics' variable to
    'periodic_stat'
  staging: wilc1000: move 'rcv_assoc_resp' as part of hif_drv
  staging: wilc1000: refactor tcp_process() to avoid extra leading tabs
  staging: wilc1000: use lowercase for get_BSSID() and HIL variable
  staging: wilc1000: move tcp_ack_filter algo related variables to
    'wilc_vif' struct
  staging: wilc1000: avoid line over 80 chars in
    wilc_wlan_txq_filter_dup_tcp_ack()
  staging: wilc1000: use short names to fix over 80 issue in
    tcp_process()
  staging: wilc1000: remove unused code to set and get IP address
  staging: wilc1000: move 'chip_ps_state' static variable as part of
    'wilc' struct
  staging: wilc1000: move 'wilc_connecting' static variable to
    'wilc_vif' struct
  staging: wilc1000: remove unnecessary static variable
    'p2p_listen_state'
  staging: wilc1000: refactor code to move initilization in
    wilc_netdev_init()
  staging: wilc1000: refactor wilc_netdev_init() to handle memory free
    in error path
  staging: wilc1000: remove handle_hif_exit_work() function

 drivers/staging/wilc1000/coreconfigurator.c       |   4 +-
 drivers/staging/wilc1000/host_interface.c         | 215 ++++------------------
 drivers/staging/wilc1000/host_interface.h         |  13 +-
 drivers/staging/wilc1000/linux_wlan.c             |  79 +++++---
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 197 ++++++++++----------
 drivers/staging/wilc1000/wilc_wfi_netdevice.h     |  41 ++++-
 drivers/staging/wilc1000/wilc_wlan.c              | 174 ++++++++---------
 drivers/staging/wilc1000/wilc_wlan.h              |   5 +-
 8 files changed, 307 insertions(+), 421 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2018-09-11 15:30 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-04  6:39 [PATCH v2 00/26] staging: wilc1000: avoid use of static and global variable Ajay Singh
2018-09-04  6:39 ` [PATCH v2 01/26] staging: wilc1000: move 'wilc_enable_ps' global variable into 'wilc' struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 02/26] staging: wilc1000: move 'aging_timer' static variable to wilc_priv struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 03/26] staging: wilc1000: fix to use correct index to free scanned info in clear_shadow_scan() Ajay Singh
2018-09-04  6:39 ` [PATCH v2 04/26] staging: wilc1000: remove unnecessary NULL check " Ajay Singh
2018-09-04  6:39 ` [PATCH v2 05/26] staging: wilc1000: moved last_scanned_shadow & last_scanned_cnt to wilc_priv struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 06/26] staging: wilc1000: move during_ip_timer & wilc_optaining_ip to 'wilc_vif' struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 07/26] staging: wilc1000: remove unused variable 'op_ifcs' Ajay Singh
2018-09-04  6:39 ` [PATCH v2 08/26] staging: wilc1000: avoid use of extra 'if' condition in wilc_init() Ajay Singh
2018-09-04  6:39 ` [PATCH v2 09/26] staging: wilc1000: move static variable clients_count to 'wilc' structure Ajay Singh
2018-09-04  6:39 ` [PATCH v2 10/26] staging: wilc1000: refactor code to avoid use of wilc_set_multicast_list global Ajay Singh
2018-09-04  6:39 ` [PATCH v2 11/26] staging: wilc1000: move hif_workqueue static variables to 'wilc' structure Ajay Singh
2018-09-04  6:39 ` [PATCH v2 12/26] staging: wilc1000: move 'periodic_rssi' as part of 'wilc_vif' struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 13/26] staging: wilc1000: rename 'dummy_statistics' variable to 'periodic_stat' Ajay Singh
2018-09-04  6:39 ` [PATCH v2 14/26] staging: wilc1000: move 'rcv_assoc_resp' as part of hif_drv Ajay Singh
2018-09-04  6:39 ` [PATCH v2 15/26] staging: wilc1000: refactor tcp_process() to avoid extra leading tabs Ajay Singh
2018-09-04  6:39 ` [PATCH v2 16/26] staging: wilc1000: use lowercase for get_BSSID() and HIL variable Ajay Singh
2018-09-04  6:39 ` [PATCH v2 17/26] staging: wilc1000: move tcp_ack_filter algo related variables to 'wilc_vif' struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 18/26] staging: wilc1000: avoid line over 80 chars in wilc_wlan_txq_filter_dup_tcp_ack() Ajay Singh
2018-09-04  6:39 ` [PATCH v2 19/26] staging: wilc1000: use short names to fix over 80 issue in tcp_process() Ajay Singh
2018-09-04  6:39 ` [PATCH v2 20/26] staging: wilc1000: remove unused code to set and get IP address Ajay Singh
2018-09-04  6:39 ` [PATCH v2 21/26] staging: wilc1000: move 'chip_ps_state' static variable as part of 'wilc' struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 22/26] staging: wilc1000: move 'wilc_connecting' static variable to 'wilc_vif' struct Ajay Singh
2018-09-04  6:39 ` [PATCH v2 23/26] staging: wilc1000: remove unnecessary static variable 'p2p_listen_state' Ajay Singh
2018-09-04  6:39 ` [PATCH v2 24/26] staging: wilc1000: refactor code to move initilization in wilc_netdev_init() Ajay Singh
2018-09-04  6:39 ` [PATCH v2 25/26] staging: wilc1000: refactor wilc_netdev_init() to handle memory free in error path Ajay Singh
2018-09-11  9:21   ` Claudiu Beznea
2018-09-10 14:24     ` Ajay Singh
2018-09-04  6:39 ` [PATCH v2 26/26] staging: wilc1000: remove handle_hif_exit_work() function Ajay Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox