diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2018-09-25 11:53:39 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-25 20:53:57 +0200 |
commit | f41cf2460edfab5813b347b7890edadb47cfd17d (patch) | |
tree | 5272f735ccd5e0f71a3c4be4ee7ed4f69e8a1c0b /drivers/staging/wilc1000/wilc_wfi_netdevice.h | |
parent | a944140250ce2f200d2b54fa7ec03aad4a5d6901 (diff) |
staging: wilc1000: remove p2p related static variables to wilc_vif struct
Avoid use of static variable and move them as part of private
data(wilc_priv) struct.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_netdevice.h')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_netdevice.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index 4ba58871dae4..4f05a16c778e 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -69,6 +69,12 @@ struct wilc_wfi_p2p_listen_params { u32 listen_session_id; }; +struct wilc_p2p_var { + u8 local_random; + u8 recv_random; + bool is_wilc_ie; +}; + struct wilc_priv { struct wireless_dev *wdev; struct cfg80211_scan_request *scan_req; @@ -98,6 +104,7 @@ struct wilc_priv { struct timer_list aging_timer; struct network_info scanned_shadow[MAX_NUM_SCANNED_NETWORKS_SHADOW]; int scanned_cnt; + struct wilc_p2p_var p2p; }; struct frame_reg { |