Lines Matching defs:new

954 	struct probe_resp *new, *old;
961 new = kzalloc(sizeof(struct probe_resp) + resp_len, GFP_KERNEL);
962 if (!new)
965 new->len = resp_len;
966 memcpy(new->data, resp, resp_len);
969 memcpy(new->cntdwn_counter_offsets, csa->counter_offsets_presp,
971 sizeof(new->cntdwn_counter_offsets[0]));
973 new->cntdwn_counter_offsets[0] = cca->counter_offset_presp;
975 rcu_assign_pointer(link->u.ap.probe_resp, new);
987 struct fils_discovery_data *new, *old = NULL;
998 new = kzalloc(sizeof(*new) + params->tmpl_len, GFP_KERNEL);
999 if (!new)
1001 new->len = params->tmpl_len;
1002 memcpy(new->data, params->tmpl, params->tmpl_len);
1003 rcu_assign_pointer(link->u.ap.fils_discovery, new);
1017 struct unsol_bcast_probe_resp_data *new, *old = NULL;
1023 new = kzalloc(sizeof(*new) + params->tmpl_len, GFP_KERNEL);
1024 if (!new)
1026 new->len = params->tmpl_len;
1027 memcpy(new->data, params->tmpl, params->tmpl_len);
1028 rcu_assign_pointer(link->u.ap.unsol_bcast_probe_resp, new);
1044 struct ieee80211_ftm_responder_params *new, *old;
1054 new = kzalloc(sizeof(*new) + len, GFP_KERNEL);
1055 if (!new)
1058 pos = (u8 *)(new + 1);
1060 new->lci_len = lci_len;
1061 new->lci = pos;
1067 new->civicloc_len = civicloc_len;
1068 new->civicloc = pos;
1073 link_conf->ftmr_params = new;
1123 struct beacon_data *new, *old;
1135 /* new or old head? */
1141 /* new or old tail? */
1148 size = sizeof(*new) + new_head_len + new_tail_len;
1150 /* new or old multiple BSSID elements? */
1153 size += struct_size(new->mbssid_ies, elem, mbssid->cnt);
1156 size += struct_size(new->rnr_ies, elem, rnr->cnt);
1162 size += struct_size(new->mbssid_ies, elem, mbssid->cnt);
1165 size += struct_size(new->rnr_ies, elem, rnr->cnt);
1171 new = kzalloc(size, GFP_KERNEL);
1172 if (!new)
1175 /* start filling the new info now */
1181 new->head = ((u8 *) new) + sizeof(*new);
1182 new->tail = new->head + new_head_len;
1183 new->head_len = new_head_len;
1184 new->tail_len = new_tail_len;
1187 u8 *pos = new->tail + new->tail_len;
1189 new->mbssid_ies = (void *)pos;
1190 pos += struct_size(new->mbssid_ies, elem, mbssid->cnt);
1191 pos += ieee80211_copy_mbssid_beacon(pos, new->mbssid_ies,
1194 new->rnr_ies = (void *)pos;
1195 pos += struct_size(new->rnr_ies, elem, rnr->cnt);
1196 ieee80211_copy_rnr_beacon(pos, new->rnr_ies, rnr);
1204 new->cntdwn_current_counter = csa->count;
1205 memcpy(new->cntdwn_counter_offsets, csa->counter_offsets_beacon,
1207 sizeof(new->cntdwn_counter_offsets[0]));
1209 new->cntdwn_current_counter = cca->count;
1210 new->cntdwn_counter_offsets[0] = cca->counter_offset_beacon;
1215 memcpy(new->head, params->head, new_head_len);
1217 memcpy(new->head, old->head, new_head_len);
1221 memcpy(new->tail, params->tail, new_tail_len);
1224 memcpy(new->tail, old->tail, new_tail_len);
1229 kfree(new);
1245 kfree(new);
1252 rcu_assign_pointer(link->u.ap.beacon, new);
1810 * unless it's a new link.
1989 * only when creating a new station entry
3201 * the new value until we associate.
4351 /* due to this new packets will be reassigned to non-ACM ACs */