Lines Matching full:mesh

12 #include "mesh.h"
41 from_timer(sdata, t, u.mesh.housekeeping_timer); in ieee80211_mesh_housekeeping_timer()
43 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer()
51 * mesh_matches_local - check if the config of a mesh point matches ours
53 * @sdata: local mesh subif
54 * @ie: information elements of a management frame from the mesh peer
56 * This function checks if the mesh configuration of a mesh point matches the
57 * local mesh configuration, i.e. if both nodes belong to the same mesh network.
62 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_matches_local()
70 * - On mesh config capabilities in mesh_matches_local()
119 * @ie: information elements of a management frame from the mesh peer
128 * mesh_accept_plinks_update - update accepting_plink in local mesh beacons
130 * @sdata: mesh interface in which mesh beacons are going to be updated
140 * the mesh interface might be able to establish plinks with peers that in mesh_accept_plinks_update()
142 * in general the mesh interface is not accepting peer link requests in mesh_accept_plinks_update()
147 if (free_plinks != sdata->u.mesh.accepting_plinks) { in mesh_accept_plinks_update()
148 sdata->u.mesh.accepting_plinks = free_plinks; in mesh_accept_plinks_update()
156 * mesh_sta_cleanup - clean up any mesh sta state
158 * @sta: mesh sta to clean up.
173 sdata->u.mesh.rmc = kmalloc(sizeof(struct mesh_rmc), GFP_KERNEL); in mesh_rmc_init()
174 if (!sdata->u.mesh.rmc) in mesh_rmc_init()
176 sdata->u.mesh.rmc->idx_mask = RMC_BUCKETS - 1; in mesh_rmc_init()
178 INIT_HLIST_HEAD(&sdata->u.mesh.rmc->bucket[i]); in mesh_rmc_init()
184 struct mesh_rmc *rmc = sdata->u.mesh.rmc; in mesh_rmc_free()
189 if (!sdata->u.mesh.rmc) in mesh_rmc_free()
200 sdata->u.mesh.rmc = NULL; in mesh_rmc_free()
212 * Checks using the source address and the mesh sequence number if we have
219 struct mesh_rmc *rmc = sdata->u.mesh.rmc; in mesh_rmc_check()
257 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_meshconf_ie()
285 /* Mesh Formation Info - number of neighbors */ in mesh_add_meshconf_ie()
291 /* Mesh capability */ in mesh_add_meshconf_ie()
297 /* Mesh PS mode. See IEEE802.11-2012 8.4.2.100.8 */ in mesh_add_meshconf_ie()
305 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_meshid_ie()
323 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_awake_window_ie()
346 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_vendor_ies()
369 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_rsn_ie()
632 /* The device doesn't support HE in mesh mode or at all */ in mesh_add_he_6ghz_cap_ie()
643 from_timer(sdata, t, u.mesh.mesh_path_timer); in ieee80211_mesh_path_timer()
651 from_timer(sdata, t, u.mesh.mesh_path_root_timer); in ieee80211_mesh_path_root_timer()
652 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_path_root_timer()
701 * ieee80211_fill_mesh_addresses - fill addresses of a locally originated mesh frame
704 * @meshda: destination address in the mesh
705 * @meshsa: source address in the mesh. Same as TA, as frame is
708 * Return the length of the 802.11 (does not include a mesh control header)
732 * ieee80211_new_mesh_header - create a new mesh header
733 * @sdata: mesh interface to be used
734 * @meshhdr: uninitialized mesh header
739 * mesh frame
752 meshhdr->ttl = sdata->u.mesh.mshcfg.dot11MeshTTL; in ieee80211_new_mesh_header()
755 put_unaligned(cpu_to_le32(sdata->u.mesh.mesh_seqnum), &meshhdr->seqnum); in ieee80211_new_mesh_header()
756 sdata->u.mesh.mesh_seqnum++; in ieee80211_new_mesh_header()
774 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping()
791 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rootpath()
820 sdata = container_of(ifmsh, struct ieee80211_sub_if_data, u.mesh); in ieee80211_mesh_build_beacon()
832 /* Mesh Channel Switch Parameters */ in ieee80211_mesh_build_beacon()
877 sdata->u.mesh.security ? WLAN_CAPABILITY_PRIVACY : 0); in ieee80211_mesh_build_beacon()
995 old_bcn = rcu_dereference_protected(sdata->u.mesh.beacon, in ieee80211_mesh_rebuild_beacon()
997 ret = ieee80211_mesh_build_beacon(&sdata->u.mesh); in ieee80211_mesh_rebuild_beacon()
1010 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mbss_info_change_notify()
1026 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_start_mesh()
1036 /* mesh ifaces must set allmulti to forward mcast traffic */ in ieee80211_start_mesh()
1068 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_stop_mesh()
1095 del_timer_sync(&sdata->u.mesh.housekeeping_timer); in ieee80211_stop_mesh()
1096 del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); in ieee80211_stop_mesh()
1097 del_timer_sync(&sdata->u.mesh.mesh_path_timer); in ieee80211_stop_mesh()
1099 /* clear any mesh work (for next join) we may have accrued */ in ieee80211_stop_mesh()
1129 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_process_chnswitch()
1183 … "mesh STA %pM switches to unsupported channel (%d MHz, width:%d, CF1/2: %d/%d MHz), aborting\n", in ieee80211_mesh_process_chnswitch()
1199 … "mesh STA %pM switches to channel requiring DFS (%d MHz, width:%d, CF1/2: %d/%d MHz), aborting\n", in ieee80211_mesh_process_chnswitch()
1246 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rx_probe_req()
1307 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rx_bcn_presp()
1326 /* ignore non-mesh or secure / unsecure mismatch */ in ieee80211_mesh_rx_bcn_presp()
1328 (elems.rsn && sdata->u.mesh.security == IEEE80211_MESH_SEC_NONE) || in ieee80211_mesh_rx_bcn_presp()
1329 (!elems.rsn && sdata->u.mesh.security != IEEE80211_MESH_SEC_NONE)) in ieee80211_mesh_rx_bcn_presp()
1344 sdata->u.mesh.mshcfg.rssi_threshold, rx_status->signal); in ieee80211_mesh_rx_bcn_presp()
1345 if (!sdata->u.mesh.user_mpm || in ieee80211_mesh_rx_bcn_presp()
1346 sdata->u.mesh.mshcfg.rssi_threshold == 0 || in ieee80211_mesh_rx_bcn_presp()
1347 sdata->u.mesh.mshcfg.rssi_threshold < rx_status->signal) in ieee80211_mesh_rx_bcn_presp()
1363 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_finish_csa()
1392 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_csa_beacon()
1449 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_rx_csa_frame()
1526 /* mesh already went down */ in ieee80211_mesh_rx_queued_mgmt()
1527 if (!sdata->u.mesh.mesh_id_len) in ieee80211_mesh_rx_queued_mgmt()
1553 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_bss_info_changed()
1575 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_work()
1579 /* mesh already went down */ in ieee80211_mesh_work()
1580 if (!sdata->u.mesh.mesh_id_len) in ieee80211_mesh_work()
1606 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_init_sdata()
1618 /* Allocate all mesh structures when creating the first mesh interface. */ in ieee80211_mesh_init_sdata()