Lines Matching full:beacon
945 old = sdata_dereference(sdata->u.ap.beacon, sdata); in ieee80211_assign_beacon()
948 /* Need to have a beacon head if we don't have one yet */ in ieee80211_assign_beacon()
1027 rcu_assign_pointer(sdata->u.ap.beacon, new); in ieee80211_assign_beacon()
1052 old = sdata_dereference(sdata->u.ap.beacon, sdata); in ieee80211_start_ap()
1160 err = ieee80211_assign_beacon(sdata, ¶ms->beacon, NULL); in ieee80211_start_ap()
1183 old = sdata_dereference(sdata->u.ap.beacon, sdata); in ieee80211_start_ap()
1187 RCU_INIT_POINTER(sdata->u.ap.beacon, NULL); in ieee80211_start_ap()
1215 /* don't allow changing the beacon while CSA is in place - offset in ieee80211_change_beacon()
1221 old = sdata_dereference(sdata->u.ap.beacon, sdata); in ieee80211_change_beacon()
1245 old_beacon = sdata_dereference(sdata->u.ap.beacon, sdata); in ieee80211_stop_ap()
1274 /* remove beacon and probe response */ in ieee80211_stop_ap()
1275 RCU_INIT_POINTER(sdata->u.ap.beacon, NULL); in ieee80211_stop_ap()
2281 if (!sdata_dereference(sdata->u.ap.beacon, sdata)) in ieee80211_change_bss()
2446 if (sdata->u.ap.beacon && in ieee80211_scan()
3037 cfg80211_beacon_dup(struct cfg80211_beacon_data *beacon) in cfg80211_beacon_dup() argument
3043 len = beacon->head_len + beacon->tail_len + beacon->beacon_ies_len + in cfg80211_beacon_dup()
3044 beacon->proberesp_ies_len + beacon->assocresp_ies_len + in cfg80211_beacon_dup()
3045 beacon->probe_resp_len + beacon->lci_len + beacon->civicloc_len; in cfg80211_beacon_dup()
3052 if (beacon->head_len) { in cfg80211_beacon_dup()
3053 new_beacon->head_len = beacon->head_len; in cfg80211_beacon_dup()
3055 memcpy(pos, beacon->head, beacon->head_len); in cfg80211_beacon_dup()
3056 pos += beacon->head_len; in cfg80211_beacon_dup()
3058 if (beacon->tail_len) { in cfg80211_beacon_dup()
3059 new_beacon->tail_len = beacon->tail_len; in cfg80211_beacon_dup()
3061 memcpy(pos, beacon->tail, beacon->tail_len); in cfg80211_beacon_dup()
3062 pos += beacon->tail_len; in cfg80211_beacon_dup()
3064 if (beacon->beacon_ies_len) { in cfg80211_beacon_dup()
3065 new_beacon->beacon_ies_len = beacon->beacon_ies_len; in cfg80211_beacon_dup()
3067 memcpy(pos, beacon->beacon_ies, beacon->beacon_ies_len); in cfg80211_beacon_dup()
3068 pos += beacon->beacon_ies_len; in cfg80211_beacon_dup()
3070 if (beacon->proberesp_ies_len) { in cfg80211_beacon_dup()
3071 new_beacon->proberesp_ies_len = beacon->proberesp_ies_len; in cfg80211_beacon_dup()
3073 memcpy(pos, beacon->proberesp_ies, beacon->proberesp_ies_len); in cfg80211_beacon_dup()
3074 pos += beacon->proberesp_ies_len; in cfg80211_beacon_dup()
3076 if (beacon->assocresp_ies_len) { in cfg80211_beacon_dup()
3077 new_beacon->assocresp_ies_len = beacon->assocresp_ies_len; in cfg80211_beacon_dup()
3079 memcpy(pos, beacon->assocresp_ies, beacon->assocresp_ies_len); in cfg80211_beacon_dup()
3080 pos += beacon->assocresp_ies_len; in cfg80211_beacon_dup()
3082 if (beacon->probe_resp_len) { in cfg80211_beacon_dup()
3083 new_beacon->probe_resp_len = beacon->probe_resp_len; in cfg80211_beacon_dup()
3085 memcpy(pos, beacon->probe_resp, beacon->probe_resp_len); in cfg80211_beacon_dup()
3086 pos += beacon->probe_resp_len; in cfg80211_beacon_dup()
3090 new_beacon->ftm_responder = beacon->ftm_responder; in cfg80211_beacon_dup()
3091 if (beacon->lci) { in cfg80211_beacon_dup()
3092 new_beacon->lci_len = beacon->lci_len; in cfg80211_beacon_dup()
3094 memcpy(pos, beacon->lci, beacon->lci_len); in cfg80211_beacon_dup()
3095 pos += beacon->lci_len; in cfg80211_beacon_dup()
3097 if (beacon->civicloc) { in cfg80211_beacon_dup()
3098 new_beacon->civicloc_len = beacon->civicloc_len; in cfg80211_beacon_dup()
3100 memcpy(pos, beacon->civicloc, beacon->civicloc_len); in cfg80211_beacon_dup()
3101 pos += beacon->civicloc_len; in cfg80211_beacon_dup()
3467 /* if the beacon didn't change, we can finalize immediately */ in __ieee80211_channel_switch()