Lines Matching full:mesh
12 #include "mesh.h"
42 from_timer(sdata, t, u.mesh.housekeeping_timer); in ieee80211_mesh_housekeeping_timer()
44 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer()
52 * mesh_matches_local - check if the config of a mesh point matches ours
54 * @sdata: local mesh subif
55 * @ie: information elements of a management frame from the mesh peer
57 * This function checks if the mesh configuration of a mesh point matches the
58 * local mesh configuration, i.e. if both nodes belong to the same mesh network.
63 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_matches_local()
71 * - On mesh config capabilities in mesh_matches_local()
121 * @ie: information elements of a management frame from the mesh peer
130 * mesh_accept_plinks_update - update accepting_plink in local mesh beacons
132 * @sdata: mesh interface in which mesh beacons are going to be updated
142 * the mesh interface might be able to establish plinks with peers that in mesh_accept_plinks_update()
144 * in general the mesh interface is not accepting peer link requests in mesh_accept_plinks_update()
149 if (free_plinks != sdata->u.mesh.accepting_plinks) { in mesh_accept_plinks_update()
150 sdata->u.mesh.accepting_plinks = free_plinks; in mesh_accept_plinks_update()
158 * mesh_sta_cleanup - clean up any mesh sta state
160 * @sta: mesh sta to clean up.
175 sdata->u.mesh.rmc = kmalloc(sizeof(struct mesh_rmc), GFP_KERNEL); in mesh_rmc_init()
176 if (!sdata->u.mesh.rmc) in mesh_rmc_init()
178 sdata->u.mesh.rmc->idx_mask = RMC_BUCKETS - 1; in mesh_rmc_init()
180 INIT_HLIST_HEAD(&sdata->u.mesh.rmc->bucket[i]); in mesh_rmc_init()
186 struct mesh_rmc *rmc = sdata->u.mesh.rmc; in mesh_rmc_free()
191 if (!sdata->u.mesh.rmc) in mesh_rmc_free()
202 sdata->u.mesh.rmc = NULL; in mesh_rmc_free()
214 * Checks using the source address and the mesh sequence number if we have
221 struct mesh_rmc *rmc = sdata->u.mesh.rmc; in mesh_rmc_check()
259 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_meshconf_ie()
287 /* Mesh Formation Info - number of neighbors */ in mesh_add_meshconf_ie()
293 /* Mesh capability */ in mesh_add_meshconf_ie()
299 /* Mesh PS mode. See IEEE802.11-2012 8.4.2.100.8 */ in mesh_add_meshconf_ie()
307 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_meshid_ie()
325 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_awake_window_ie()
348 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_vendor_ies()
371 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_add_rsn_ie()
634 /* The device doesn't support HE in mesh mode or at all */ in mesh_add_he_6ghz_cap_ie()
704 from_timer(sdata, t, u.mesh.mesh_path_timer); in ieee80211_mesh_path_timer()
712 from_timer(sdata, t, u.mesh.mesh_path_root_timer); in ieee80211_mesh_path_root_timer()
713 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_path_root_timer()
767 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_xmit_fast()
840 put_unaligned_le32(atomic_inc_return(&sdata->u.mesh.mesh_seqnum), in ieee80211_mesh_xmit_fast()
842 meshhdr->ttl = sdata->u.mesh.mshcfg.dot11MeshTTL; in ieee80211_mesh_xmit_fast()
854 * ieee80211_fill_mesh_addresses - fill addresses of a locally originated mesh frame
857 * @meshda: destination address in the mesh
858 * @meshsa: source address in the mesh. Same as TA, as frame is
861 * Return the length of the 802.11 (does not include a mesh control header)
885 * ieee80211_new_mesh_header - create a new mesh header
886 * @sdata: mesh interface to be used
887 * @meshhdr: uninitialized mesh header
892 * mesh frame
905 meshhdr->ttl = sdata->u.mesh.mshcfg.dot11MeshTTL; in ieee80211_new_mesh_header()
907 put_unaligned_le32(atomic_inc_return(&sdata->u.mesh.mesh_seqnum), in ieee80211_new_mesh_header()
925 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping()
944 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rootpath()
973 sdata = container_of(ifmsh, struct ieee80211_sub_if_data, u.mesh); in ieee80211_mesh_build_beacon()
987 /* Mesh Channel Switch Parameters */ in ieee80211_mesh_build_beacon()
1035 sdata->u.mesh.security ? WLAN_CAPABILITY_PRIVACY : 0); in ieee80211_mesh_build_beacon()
1155 old_bcn = sdata_dereference(sdata->u.mesh.beacon, sdata); in ieee80211_mesh_rebuild_beacon()
1156 ret = ieee80211_mesh_build_beacon(&sdata->u.mesh); in ieee80211_mesh_rebuild_beacon()
1169 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mbss_info_change_notify()
1185 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_start_mesh()
1195 /* mesh ifaces must set allmulti to forward mcast traffic */ in ieee80211_start_mesh()
1227 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_stop_mesh()
1254 del_timer_sync(&sdata->u.mesh.housekeeping_timer); in ieee80211_stop_mesh()
1255 del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); in ieee80211_stop_mesh()
1256 del_timer_sync(&sdata->u.mesh.mesh_path_timer); in ieee80211_stop_mesh()
1258 /* clear any mesh work (for next join) we may have accrued */ in ieee80211_stop_mesh()
1288 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_process_chnswitch()
1342 … "mesh STA %pM switches to unsupported channel (%d MHz, width:%d, CF1/2: %d/%d MHz), aborting\n", in ieee80211_mesh_process_chnswitch()
1358 … "mesh STA %pM switches to channel requiring DFS (%d MHz, width:%d, CF1/2: %d/%d MHz), aborting\n", in ieee80211_mesh_process_chnswitch()
1405 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rx_probe_req()
1469 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rx_bcn_presp()
1491 /* ignore non-mesh or secure / unsecure mismatch */ in ieee80211_mesh_rx_bcn_presp()
1493 (elems->rsn && sdata->u.mesh.security == IEEE80211_MESH_SEC_NONE) || in ieee80211_mesh_rx_bcn_presp()
1494 (!elems->rsn && sdata->u.mesh.security != IEEE80211_MESH_SEC_NONE)) in ieee80211_mesh_rx_bcn_presp()
1509 sdata->u.mesh.mshcfg.rssi_threshold, rx_status->signal); in ieee80211_mesh_rx_bcn_presp()
1510 if (!sdata->u.mesh.user_mpm || in ieee80211_mesh_rx_bcn_presp()
1511 sdata->u.mesh.mshcfg.rssi_threshold == 0 || in ieee80211_mesh_rx_bcn_presp()
1512 sdata->u.mesh.mshcfg.rssi_threshold < rx_status->signal) in ieee80211_mesh_rx_bcn_presp()
1530 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_finish_csa()
1558 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_csa_beacon()
1616 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_rx_csa_frame()
1696 /* mesh already went down */ in ieee80211_mesh_rx_queued_mgmt()
1697 if (!sdata->u.mesh.mesh_id_len) in ieee80211_mesh_rx_queued_mgmt()
1723 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_bss_info_changed()
1746 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_work()
1750 /* mesh already went down */ in ieee80211_mesh_work()
1751 if (!sdata->u.mesh.mesh_id_len) in ieee80211_mesh_work()
1777 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_init_sdata()
1789 /* Allocate all mesh structures when creating the first mesh interface. */ in ieee80211_mesh_init_sdata()