Searched refs:mon_wdev (Results 1 – 1 of 1) sorted by relevance
2627 struct wireless_dev* mon_wdev = NULL; in rtw_cfg80211_add_monitor_if() local2664 mon_wdev = rtw_zmalloc(sizeof(struct wireless_dev)); in rtw_cfg80211_add_monitor_if()2665 if (!mon_wdev) { in rtw_cfg80211_add_monitor_if()2671 mon_wdev->wiphy = padapter->rtw_wdev->wiphy; in rtw_cfg80211_add_monitor_if()2672 mon_wdev->netdev = mon_ndev; in rtw_cfg80211_add_monitor_if()2673 mon_wdev->iftype = NL80211_IFTYPE_MONITOR; in rtw_cfg80211_add_monitor_if()2674 mon_ndev->ieee80211_ptr = mon_wdev; in rtw_cfg80211_add_monitor_if()2685 if (ret && mon_wdev) { in rtw_cfg80211_add_monitor_if()2686 kfree((u8 *)mon_wdev); in rtw_cfg80211_add_monitor_if()2687 mon_wdev = NULL; in rtw_cfg80211_add_monitor_if()