Lines Matching refs:pos

256 	u8 *pos, neighbors;  in mesh_add_meshconf_ie()  local
262 pos = skb_put(skb, 2 + meshconf_len); in mesh_add_meshconf_ie()
263 *pos++ = WLAN_EID_MESH_CONFIG; in mesh_add_meshconf_ie()
264 *pos++ = meshconf_len; in mesh_add_meshconf_ie()
267 ifmsh->meshconf_offset = pos - skb->data; in mesh_add_meshconf_ie()
270 *pos++ = ifmsh->mesh_pp_id; in mesh_add_meshconf_ie()
272 *pos++ = ifmsh->mesh_pm_id; in mesh_add_meshconf_ie()
274 *pos++ = ifmsh->mesh_cc_id; in mesh_add_meshconf_ie()
276 *pos++ = ifmsh->mesh_sp_id; in mesh_add_meshconf_ie()
278 *pos++ = ifmsh->mesh_auth_id; in mesh_add_meshconf_ie()
282 *pos++ = neighbors << 1; in mesh_add_meshconf_ie()
284 *pos = 0x00; in mesh_add_meshconf_ie()
285 *pos |= ifmsh->mshcfg.dot11MeshForwarding ? in mesh_add_meshconf_ie()
287 *pos |= ifmsh->accepting_plinks ? in mesh_add_meshconf_ie()
290 *pos |= ifmsh->ps_peers_deep_sleep ? in mesh_add_meshconf_ie()
292 *pos++ |= ifmsh->adjusting_tbtt ? in mesh_add_meshconf_ie()
294 *pos++ = 0x00; in mesh_add_meshconf_ie()
302 u8 *pos; in mesh_add_meshid_ie() local
307 pos = skb_put(skb, 2 + ifmsh->mesh_id_len); in mesh_add_meshid_ie()
308 *pos++ = WLAN_EID_MESH_ID; in mesh_add_meshid_ie()
309 *pos++ = ifmsh->mesh_id_len; in mesh_add_meshid_ie()
311 memcpy(pos, ifmsh->mesh_id, ifmsh->mesh_id_len); in mesh_add_meshid_ie()
320 u8 *pos; in mesh_add_awake_window_ie() local
331 pos = skb_put(skb, 2 + 2); in mesh_add_awake_window_ie()
332 *pos++ = WLAN_EID_MESH_AWAKE_WINDOW; in mesh_add_awake_window_ie()
333 *pos++ = 2; in mesh_add_awake_window_ie()
334 put_unaligned_le16(ifmsh->mshcfg.dot11MeshAwakeWindowDuration, pos); in mesh_add_awake_window_ie()
391 u8 *pos; in mesh_add_ds_params_ie() local
405 pos = skb_put(skb, 2 + 1); in mesh_add_ds_params_ie()
406 *pos++ = WLAN_EID_DS_PARAMS; in mesh_add_ds_params_ie()
407 *pos++ = 1; in mesh_add_ds_params_ie()
408 *pos++ = ieee80211_frequency_to_channel(chan->center_freq); in mesh_add_ds_params_ie()
419 u8 *pos; in mesh_add_ht_cap_ie() local
431 pos = skb_put(skb, 2 + sizeof(struct ieee80211_ht_cap)); in mesh_add_ht_cap_ie()
432 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie()
447 u8 *pos; in mesh_add_ht_oper_ie() local
467 pos = skb_put(skb, 2 + sizeof(struct ieee80211_ht_operation)); in mesh_add_ht_oper_ie()
468 ieee80211_ie_build_ht_oper(pos, ht_cap, &sdata->vif.bss_conf.chandef, in mesh_add_ht_oper_ie()
619 u8 *pos; in ieee80211_mesh_build_beacon() local
673 pos = skb_put(skb, 2); in ieee80211_mesh_build_beacon()
674 *pos++ = WLAN_EID_SSID; in ieee80211_mesh_build_beacon()
675 *pos++ = 0x0; in ieee80211_mesh_build_beacon()
680 pos = skb_put(skb, 13); in ieee80211_mesh_build_beacon()
681 memset(pos, 0, 13); in ieee80211_mesh_build_beacon()
682 *pos++ = WLAN_EID_CHANNEL_SWITCH; in ieee80211_mesh_build_beacon()
683 *pos++ = 3; in ieee80211_mesh_build_beacon()
684 *pos++ = 0x0; in ieee80211_mesh_build_beacon()
685 *pos++ = ieee80211_frequency_to_channel( in ieee80211_mesh_build_beacon()
689 *pos++ = csa->settings.count; in ieee80211_mesh_build_beacon()
690 *pos++ = WLAN_EID_CHAN_SWITCH_PARAM; in ieee80211_mesh_build_beacon()
691 *pos++ = 6; in ieee80211_mesh_build_beacon()
693 *pos++ = ifmsh->mshcfg.dot11MeshTTL; in ieee80211_mesh_build_beacon()
694 *pos |= WLAN_EID_CHAN_SWITCH_PARAM_INITIATOR; in ieee80211_mesh_build_beacon()
696 *pos++ = ifmsh->chsw_ttl; in ieee80211_mesh_build_beacon()
698 *pos++ |= csa->settings.block_tx ? in ieee80211_mesh_build_beacon()
700 put_unaligned_le16(WLAN_REASON_MESH_CHAN, pos); in ieee80211_mesh_build_beacon()
701 pos += 2; in ieee80211_mesh_build_beacon()
702 put_unaligned_le16(ifmsh->pre_value, pos); in ieee80211_mesh_build_beacon()
703 pos += 2; in ieee80211_mesh_build_beacon()
959 u8 *pos; in ieee80211_mesh_rx_probe_req() local
961 pos = mgmt->u.probe_req.variable; in ieee80211_mesh_rx_probe_req()
962 baselen = (u8 *) pos - (u8 *) mgmt; in ieee80211_mesh_rx_probe_req()
966 ieee802_11_parse_elems(pos, len - baselen, false, &elems); in ieee80211_mesh_rx_probe_req()
1121 u8 *pos = mgmt->u.action.u.chan_switch.variable; in mesh_fwd_csa_frame() local
1135 *(pos + offset_ttl) -= 1; in mesh_fwd_csa_frame()
1136 *(pos + offset_ttl + 1) &= ~WLAN_EID_CHAN_SWITCH_PARAM_INITIATOR; in mesh_fwd_csa_frame()
1155 u8 *pos; in mesh_rx_csa_frame() local
1161 pos = mgmt->u.action.u.chan_switch.variable; in mesh_rx_csa_frame()
1164 ieee802_11_parse_elems(pos, len - baselen, false, &elems); in mesh_rx_csa_frame()