Lines Matching refs:presp
52 struct beacon_data *presp;
70 presp = kzalloc(sizeof(*presp) + frame_len, GFP_KERNEL);
71 if (!presp)
74 presp->head = (void *)(presp + 1);
76 mgmt = (void *) presp->head;
148 presp->cntdwn_counter_offsets[0] = (pos - presp->head);
150 presp->cntdwn_current_counter = csa_settings->count;
208 presp->head_len = pos - presp->head;
209 if (WARN_ON(presp->head_len > frame_len))
212 return presp;
214 kfree(presp);
232 struct beacon_data *presp;
258 presp = rcu_dereference_protected(ifibss->presp,
260 RCU_INIT_POINTER(ifibss->presp, NULL);
261 if (presp)
262 kfree_rcu(presp, rcu_head);
317 presp = ieee80211_ibss_build_presp(sdata, beacon_int, basic_rates,
320 if (!presp)
323 rcu_assign_pointer(ifibss->presp, presp);
324 mgmt = (void *)presp->head;
371 RCU_INIT_POINTER(ifibss->presp, NULL);
372 kfree_rcu(presp, rcu_head);
390 presp->head_len, GFP_KERNEL);
487 struct beacon_data *presp, *old_presp;
515 old_presp = rcu_dereference_protected(ifibss->presp,
518 presp = ieee80211_ibss_build_presp(sdata,
523 if (!presp) {
528 rcu_assign_pointer(ifibss->presp, presp);
688 struct beacon_data *presp;
728 presp = rcu_dereference_protected(ifibss->presp,
730 RCU_INIT_POINTER(sdata->u.ibss.presp, NULL);
731 if (presp)
732 kfree_rcu(presp, rcu_head);
1538 struct beacon_data *presp;
1543 presp = rcu_dereference_protected(ifibss->presp,
1547 len < 24 + 2 || !presp)
1579 skb = dev_alloc_skb(local->tx_headroom + presp->head_len);
1584 skb_put_data(skb, presp->head, presp->head_len);