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()
846 put_unaligned_le32(atomic_inc_return(&sdata->u.mesh.mesh_seqnum), in ieee80211_mesh_xmit_fast()
848 meshhdr->ttl = sdata->u.mesh.mshcfg.dot11MeshTTL; in ieee80211_mesh_xmit_fast()
860 * ieee80211_fill_mesh_addresses - fill addresses of a locally originated mesh frame
863 * @meshda: destination address in the mesh
864 * @meshsa: source address in the mesh. Same as TA, as frame is
867 * Return the length of the 802.11 (does not include a mesh control header)
891 * ieee80211_new_mesh_header - create a new mesh header
892 * @sdata: mesh interface to be used
893 * @meshhdr: uninitialized mesh header
898 * mesh frame
911 meshhdr->ttl = sdata->u.mesh.mshcfg.dot11MeshTTL; in ieee80211_new_mesh_header()
913 put_unaligned_le32(atomic_inc_return(&sdata->u.mesh.mesh_seqnum), in ieee80211_new_mesh_header()
931 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping()
950 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rootpath()
979 sdata = container_of(ifmsh, struct ieee80211_sub_if_data, u.mesh); in ieee80211_mesh_build_beacon()
993 /* Mesh Channel Switch Parameters */ in ieee80211_mesh_build_beacon()
1041 sdata->u.mesh.security ? WLAN_CAPABILITY_PRIVACY : 0); in ieee80211_mesh_build_beacon()
1161 old_bcn = sdata_dereference(sdata->u.mesh.beacon, sdata); in ieee80211_mesh_rebuild_beacon()
1162 ret = ieee80211_mesh_build_beacon(&sdata->u.mesh); in ieee80211_mesh_rebuild_beacon()
1175 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mbss_info_change_notify()
1191 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_start_mesh()
1201 /* mesh ifaces must set allmulti to forward mcast traffic */ in ieee80211_start_mesh()
1233 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_stop_mesh()
1260 del_timer_sync(&sdata->u.mesh.housekeeping_timer); in ieee80211_stop_mesh()
1261 del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); in ieee80211_stop_mesh()
1262 del_timer_sync(&sdata->u.mesh.mesh_path_timer); in ieee80211_stop_mesh()
1264 /* clear any mesh work (for next join) we may have accrued */ in ieee80211_stop_mesh()
1294 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_process_chnswitch()
1348 … "mesh STA %pM switches to unsupported channel (%d MHz, width:%d, CF1/2: %d/%d MHz), aborting\n", in ieee80211_mesh_process_chnswitch()
1364 … "mesh STA %pM switches to channel requiring DFS (%d MHz, width:%d, CF1/2: %d/%d MHz), aborting\n", in ieee80211_mesh_process_chnswitch()
1411 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rx_probe_req()
1475 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_rx_bcn_presp()
1497 /* ignore non-mesh or secure / unsecure mismatch */ in ieee80211_mesh_rx_bcn_presp()
1499 (elems->rsn && sdata->u.mesh.security == IEEE80211_MESH_SEC_NONE) || in ieee80211_mesh_rx_bcn_presp()
1500 (!elems->rsn && sdata->u.mesh.security != IEEE80211_MESH_SEC_NONE)) in ieee80211_mesh_rx_bcn_presp()
1515 sdata->u.mesh.mshcfg.rssi_threshold, rx_status->signal); in ieee80211_mesh_rx_bcn_presp()
1516 if (!sdata->u.mesh.user_mpm || in ieee80211_mesh_rx_bcn_presp()
1517 sdata->u.mesh.mshcfg.rssi_threshold == 0 || in ieee80211_mesh_rx_bcn_presp()
1518 sdata->u.mesh.mshcfg.rssi_threshold < rx_status->signal) in ieee80211_mesh_rx_bcn_presp()
1536 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_finish_csa()
1564 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_csa_beacon()
1622 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_rx_csa_frame()
1702 /* mesh already went down */ in ieee80211_mesh_rx_queued_mgmt()
1703 if (!sdata->u.mesh.mesh_id_len) in ieee80211_mesh_rx_queued_mgmt()
1729 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_bss_info_changed()
1752 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_work()
1756 /* mesh already went down */ in ieee80211_mesh_work()
1757 if (!sdata->u.mesh.mesh_id_len) in ieee80211_mesh_work()
1783 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_init_sdata()
1796 /* Allocate all mesh structures when creating the first mesh interface. */ in ieee80211_mesh_init_sdata()