Lines Matching refs:mgmt
20 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt) in mesh_action_is_path_sel() argument
22 return (mgmt->u.action.u.mesh_action.action_code == in mesh_action_is_path_sel()
672 struct ieee80211_mgmt *mgmt; in ieee80211_mesh_build_beacon() local
679 sizeof(mgmt->u.beacon); in ieee80211_mesh_build_beacon()
719 mgmt = (struct ieee80211_mgmt *) skb_put(skb, hdr_len); in ieee80211_mesh_build_beacon()
720 memset(mgmt, 0, hdr_len); in ieee80211_mesh_build_beacon()
721 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | in ieee80211_mesh_build_beacon()
723 eth_broadcast_addr(mgmt->da); in ieee80211_mesh_build_beacon()
724 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
725 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_mesh_build_beacon()
726 ieee80211_mps_set_frame_flags(sdata, NULL, (void *) mgmt); in ieee80211_mesh_build_beacon()
727 mgmt->u.beacon.beacon_int = in ieee80211_mesh_build_beacon()
729 mgmt->u.beacon.capab_info |= cpu_to_le16( in ieee80211_mesh_build_beacon()
1016 struct ieee80211_mgmt *mgmt, size_t len) in ieee80211_mesh_rx_probe_req() argument
1027 pos = mgmt->u.probe_req.variable; in ieee80211_mesh_rx_probe_req()
1028 baselen = (u8 *) pos - (u8 *) mgmt; in ieee80211_mesh_rx_probe_req()
1038 if ((!ether_addr_equal(mgmt->da, sdata->vif.addr) && in ieee80211_mesh_rx_probe_req()
1039 !is_broadcast_ether_addr(mgmt->da)) || in ieee80211_mesh_rx_probe_req()
1065 memcpy(hdr->da, mgmt->sa, ETH_ALEN); in ieee80211_mesh_rx_probe_req()
1074 struct ieee80211_mgmt *mgmt, in ieee80211_mesh_rx_bcn_presp() argument
1088 !ether_addr_equal(mgmt->da, sdata->vif.addr)) in ieee80211_mesh_rx_bcn_presp()
1091 baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; in ieee80211_mesh_rx_bcn_presp()
1095 ieee802_11_parse_elems(mgmt->u.probe_resp.variable, len - baselen, in ieee80211_mesh_rx_bcn_presp()
1115 mesh_neighbour_update(sdata, mgmt->sa, &elems); in ieee80211_mesh_rx_bcn_presp()
1119 stype, mgmt, &elems, rx_status); in ieee80211_mesh_rx_bcn_presp()
1182 struct ieee80211_mgmt *mgmt, size_t len) in mesh_fwd_csa_frame() argument
1187 u8 *pos = mgmt->u.action.u.chan_switch.variable; in mesh_fwd_csa_frame()
1204 memcpy(mgmt_fwd, mgmt, len); in mesh_fwd_csa_frame()
1214 struct ieee80211_mgmt *mgmt, size_t len) in mesh_rx_csa_frame() argument
1223 if (mgmt->u.action.u.measurement.action_code != in mesh_rx_csa_frame()
1227 pos = mgmt->u.action.u.chan_switch.variable; in mesh_rx_csa_frame()
1250 if (mesh_fwd_csa_frame(sdata, mgmt, len) < 0) in mesh_rx_csa_frame()
1256 struct ieee80211_mgmt *mgmt, in ieee80211_mesh_rx_mgmt_action() argument
1260 switch (mgmt->u.action.category) { in ieee80211_mesh_rx_mgmt_action()
1262 switch (mgmt->u.action.u.self_prot.action_code) { in ieee80211_mesh_rx_mgmt_action()
1266 mesh_rx_plink_frame(sdata, mgmt, len, rx_status); in ieee80211_mesh_rx_mgmt_action()
1271 if (mesh_action_is_path_sel(mgmt)) in ieee80211_mesh_rx_mgmt_action()
1272 mesh_rx_path_sel_frame(sdata, mgmt, len); in ieee80211_mesh_rx_mgmt_action()
1275 mesh_rx_csa_frame(sdata, mgmt, len); in ieee80211_mesh_rx_mgmt_action()
1284 struct ieee80211_mgmt *mgmt; in ieee80211_mesh_rx_queued_mgmt() local
1294 mgmt = (struct ieee80211_mgmt *) skb->data; in ieee80211_mesh_rx_queued_mgmt()
1295 stype = le16_to_cpu(mgmt->frame_control) & IEEE80211_FCTL_STYPE; in ieee80211_mesh_rx_queued_mgmt()
1300 ieee80211_mesh_rx_bcn_presp(sdata, stype, mgmt, skb->len, in ieee80211_mesh_rx_queued_mgmt()
1304 ieee80211_mesh_rx_probe_req(sdata, mgmt, skb->len); in ieee80211_mesh_rx_queued_mgmt()
1307 ieee80211_mesh_rx_mgmt_action(sdata, mgmt, skb->len, rx_status); in ieee80211_mesh_rx_queued_mgmt()