Searched refs:nreg (Results 1 – 2 of 2) sorted by relevance
462 struct cfg80211_mgmt_registration *reg, *nreg; in cfg80211_mlme_register_mgmt() local479 nreg = kzalloc(sizeof(*reg) + match_len, GFP_KERNEL); in cfg80211_mlme_register_mgmt()480 if (!nreg) in cfg80211_mlme_register_mgmt()498 kfree(nreg); in cfg80211_mlme_register_mgmt()502 memcpy(nreg->match, match_data, match_len); in cfg80211_mlme_register_mgmt()503 nreg->match_len = match_len; in cfg80211_mlme_register_mgmt()504 nreg->nlportid = snd_portid; in cfg80211_mlme_register_mgmt()505 nreg->frame_type = cpu_to_le16(frame_type); in cfg80211_mlme_register_mgmt()506 nreg->wdev = wdev; in cfg80211_mlme_register_mgmt()507 list_add(&nreg->list, &wdev->mgmt_registrations); in cfg80211_mlme_register_mgmt()
9956 struct cfg80211_beacon_registration *reg, *nreg; in nl80211_register_beacons() local9962 nreg = kzalloc(sizeof(*nreg), GFP_KERNEL); in nl80211_register_beacons()9963 if (!nreg) in nl80211_register_beacons()9975 nreg->nlportid = info->snd_portid; in nl80211_register_beacons()9976 list_add(&nreg->list, &rdev->beacon_registrations); in nl80211_register_beacons()9983 kfree(nreg); in nl80211_register_beacons()