Lines Matching refs:presp

52 	struct beacon_data *presp;  in ieee80211_ibss_build_presp()  local
70 presp = kzalloc(sizeof(*presp) + frame_len, GFP_KERNEL); in ieee80211_ibss_build_presp()
71 if (!presp) in ieee80211_ibss_build_presp()
74 presp->head = (void *)(presp + 1); in ieee80211_ibss_build_presp()
76 mgmt = (void *) presp->head; in ieee80211_ibss_build_presp()
148 presp->cntdwn_counter_offsets[0] = (pos - presp->head); in ieee80211_ibss_build_presp()
150 presp->cntdwn_current_counter = csa_settings->count; in ieee80211_ibss_build_presp()
208 presp->head_len = pos - presp->head; in ieee80211_ibss_build_presp()
209 if (WARN_ON(presp->head_len > frame_len)) in ieee80211_ibss_build_presp()
212 return presp; in ieee80211_ibss_build_presp()
214 kfree(presp); in ieee80211_ibss_build_presp()
232 struct beacon_data *presp; in __ieee80211_sta_join_ibss() local
258 presp = sdata_dereference(ifibss->presp, sdata); in __ieee80211_sta_join_ibss()
259 RCU_INIT_POINTER(ifibss->presp, NULL); in __ieee80211_sta_join_ibss()
260 if (presp) in __ieee80211_sta_join_ibss()
261 kfree_rcu(presp, rcu_head); in __ieee80211_sta_join_ibss()
316 presp = ieee80211_ibss_build_presp(sdata, beacon_int, basic_rates, in __ieee80211_sta_join_ibss()
319 if (!presp) in __ieee80211_sta_join_ibss()
322 rcu_assign_pointer(ifibss->presp, presp); in __ieee80211_sta_join_ibss()
323 mgmt = (void *)presp->head; in __ieee80211_sta_join_ibss()
368 RCU_INIT_POINTER(ifibss->presp, NULL); in __ieee80211_sta_join_ibss()
369 kfree_rcu(presp, rcu_head); in __ieee80211_sta_join_ibss()
387 presp->head_len, GFP_KERNEL); in __ieee80211_sta_join_ibss()
484 struct beacon_data *presp, *old_presp; in ieee80211_ibss_csa_beacon() local
509 old_presp = sdata_dereference(ifibss->presp, sdata); in ieee80211_ibss_csa_beacon()
511 presp = ieee80211_ibss_build_presp(sdata, in ieee80211_ibss_csa_beacon()
516 if (!presp) in ieee80211_ibss_csa_beacon()
519 rcu_assign_pointer(ifibss->presp, presp); in ieee80211_ibss_csa_beacon()
677 struct beacon_data *presp; in ieee80211_ibss_disconnect() local
717 presp = sdata_dereference(ifibss->presp, sdata); in ieee80211_ibss_disconnect()
718 RCU_INIT_POINTER(sdata->u.ibss.presp, NULL); in ieee80211_ibss_disconnect()
719 if (presp) in ieee80211_ibss_disconnect()
720 kfree_rcu(presp, rcu_head); in ieee80211_ibss_disconnect()
1528 struct beacon_data *presp; in ieee80211_rx_mgmt_probe_req() local
1533 presp = sdata_dereference(ifibss->presp, sdata); in ieee80211_rx_mgmt_probe_req()
1536 len < 24 + 2 || !presp) in ieee80211_rx_mgmt_probe_req()
1568 skb = dev_alloc_skb(local->tx_headroom + presp->head_len); in ieee80211_rx_mgmt_probe_req()
1573 skb_put_data(skb, presp->head, presp->head_len); in ieee80211_rx_mgmt_probe_req()