[PATCH 01/15] staging: wilc1000: avoid the use of 'wilc_wfi_mon' static variable

Kalle Valo kvalo at codeaurora.org
Mon Feb 4 13:38:46 UTC 2019


<Ajay.Kathat at microchip.com> writes:

> From: Ajay Singh <ajay.kathat at microchip.com>
>
> Avoid use of static variable for monitor net_device and move it inside
> wilc structure.
>
> Signed-off-by: Ajay Singh <ajay.kathat at microchip.com>

[...]

> --- a/drivers/staging/wilc1000/linux_mon.c
> +++ b/drivers/staging/wilc1000/linux_mon.c
> @@ -18,8 +18,6 @@ struct wilc_wfi_radiotap_cb_hdr {
>  	u16 tx_flags;
>  } __packed;
>  
> -static struct net_device *wilc_wfi_mon; /* global monitor netdev */
> -
>  static u8 srcadd[6];
>  static u8 bssid[6];

I hope you are working on moving srcadd and bssid as well (at some
point).

-- 
Kalle Valo


More information about the devel mailing list