Home
last modified time | relevance | path

Searched refs:mon_ndev (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c2565 struct net_device* mon_ndev = NULL; in rtw_cfg80211_add_monitor_if() local
2583 mon_ndev = alloc_etherdev(sizeof(struct rtw_netdev_priv_indicator)); in rtw_cfg80211_add_monitor_if()
2584 if (!mon_ndev) { in rtw_cfg80211_add_monitor_if()
2590 mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP; in rtw_cfg80211_add_monitor_if()
2591 strncpy(mon_ndev->name, name, IFNAMSIZ); in rtw_cfg80211_add_monitor_if()
2592 mon_ndev->name[IFNAMSIZ - 1] = 0; in rtw_cfg80211_add_monitor_if()
2593 mon_ndev->needs_free_netdev = true; in rtw_cfg80211_add_monitor_if()
2594 mon_ndev->priv_destructor = rtw_ndev_destructor; in rtw_cfg80211_add_monitor_if()
2596 mon_ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops; in rtw_cfg80211_add_monitor_if()
2598 pnpi = netdev_priv(mon_ndev); in rtw_cfg80211_add_monitor_if()
[all …]