Lines Matching refs:monitor_dev
224 if (wl->monitor_dev) in wilc_wfi_init_mon_interface()
225 return wl->monitor_dev; in wilc_wfi_init_mon_interface()
227 wl->monitor_dev = alloc_etherdev(sizeof(struct wilc_wfi_mon_priv)); in wilc_wfi_init_mon_interface()
228 if (!wl->monitor_dev) in wilc_wfi_init_mon_interface()
231 wl->monitor_dev->type = ARPHRD_IEEE80211_RADIOTAP; in wilc_wfi_init_mon_interface()
232 strlcpy(wl->monitor_dev->name, name, IFNAMSIZ); in wilc_wfi_init_mon_interface()
233 wl->monitor_dev->netdev_ops = &wilc_wfi_netdev_ops; in wilc_wfi_init_mon_interface()
234 wl->monitor_dev->needs_free_netdev = true; in wilc_wfi_init_mon_interface()
236 if (register_netdevice(wl->monitor_dev)) { in wilc_wfi_init_mon_interface()
238 free_netdev(wl->monitor_dev); in wilc_wfi_init_mon_interface()
241 priv = netdev_priv(wl->monitor_dev); in wilc_wfi_init_mon_interface()
245 return wl->monitor_dev; in wilc_wfi_init_mon_interface()
250 if (!wl->monitor_dev) in wilc_wfi_deinit_mon_interface()
254 unregister_netdevice(wl->monitor_dev); in wilc_wfi_deinit_mon_interface()
256 unregister_netdev(wl->monitor_dev); in wilc_wfi_deinit_mon_interface()
257 wl->monitor_dev = NULL; in wilc_wfi_deinit_mon_interface()