staging: wilc1000: moved last_scanned_shadow & last_scanned_cnt to wilc_priv struct
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 4 Sep 2018 06:39:21 +0000 (12:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 15:17:38 +0000 (17:17 +0200)
commit0e866cfb0dd973e6d3d7f472d05a6e5f386510b0
tree9c5557d71a055d7a29e176cd96c1769c289e88ac
parent009324daf6a021cb5978b1bcb8b53018c191e1ab
staging: wilc1000: moved last_scanned_shadow & last_scanned_cnt to wilc_priv struct

Avoid use of static variables and moved the varibles as part of private
data. last_scanned_shadow & last_scanned_cnt variable is moved to
'wilc_priv' to maintain for each interface. After moving static
variable, clear_shadow_scan() doesn't require check 'op_ifcs'
count as now for each interface the againg timer is initiated.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h