Lines Matching full:mesh
12 #include "mesh.h"
80 msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPnetDiameterTraversalTime)
82 MSEC_TO_TU(s->u.mesh.mshcfg.dot11MeshHWMPactivePathTimeout)
84 (msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPpreqMinInterval))
85 #define max_preq_retries(s) (s->u.mesh.mshcfg.dot11MeshHWMPmaxPREQretries)
87 msecs_to_jiffies(sdata->u.mesh.mshcfg.min_discovery_timeout)
89 msecs_to_jiffies(sdata->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval)
221 * mesh_path_error_tx - Sends a PERR mesh management frame
228 * @sdata: local mesh subif
240 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_error_tx()
308 ewma_mesh_fail_avg_add(&sta->mesh->fail_avg, failed * 100); in ieee80211s_update_metric()
309 if (ewma_mesh_fail_avg_read(&sta->mesh->fail_avg) > in ieee80211s_update_metric()
314 ewma_mesh_tx_rate_avg_add(&sta->mesh->tx_rate_avg, in ieee80211s_update_metric()
329 ewma_mesh_fail_avg_read(&sta->mesh->fail_avg); in airtime_link_metric_get()
331 if (sta->mesh->plink_state != NL80211_PLINK_ESTAB) in airtime_link_metric_get()
347 rate = ewma_mesh_tx_rate_avg_read(&sta->mesh->tx_rate_avg); in airtime_link_metric_get()
366 * @sdata: local mesh subif
367 * @mgmt: mesh management frame
500 ewma_mesh_fail_avg_init(&sta->mesh->fail_avg); in hwmp_route_info_get()
502 ewma_mesh_fail_avg_add(&sta->mesh->fail_avg, 1); in hwmp_route_info_get()
546 ewma_mesh_fail_avg_init(&sta->mesh->fail_avg); in hwmp_route_info_get()
548 ewma_mesh_fail_avg_add(&sta->mesh->fail_avg, 1); in hwmp_route_info_get()
563 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_preq_frame_process()
699 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_prep_frame_process()
719 sdata->u.mesh.mshstats.dropped_frames_ttl++; in hwmp_prep_frame_process()
748 sdata->u.mesh.mshstats.fwded_unicast++; in hwmp_prep_frame_process()
749 sdata->u.mesh.mshstats.fwded_frames++; in hwmp_prep_frame_process()
754 sdata->u.mesh.mshstats.dropped_frames_no_route++; in hwmp_prep_frame_process()
761 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_perr_frame_process()
813 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_rann_frame_process()
857 sdata->u.mesh.mshstats.dropped_frames_no_route++; in hwmp_rann_frame_process()
884 * addressed PREQs destined for root mesh STA */ in hwmp_rann_frame_process()
922 if (!sta || sta->mesh->plink_state != NL80211_PLINK_ESTAB) { in mesh_rx_path_sel_frame()
965 * @mpath: mesh path to discover
974 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_queue_preq()
1027 * @sdata: local mesh subif
1031 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_start_discovery()
1086 sdata->u.mesh.last_sn_update = jiffies; in mesh_path_start_discovery()
1089 ttl = sdata->u.mesh.mshcfg.element_ttl; in mesh_path_start_discovery()
1091 sdata->u.mesh.mshstats.dropped_frames_ttl++; in mesh_path_start_discovery()
1142 /* Allow injected packets to bypass mesh routing */ in mesh_nexthop_resolve()
1198 if (!sta || sta->mesh->plink_state != NL80211_PLINK_ESTAB) { in mesh_nexthop_lookup_nolearn()
1210 * mesh_nexthop_lookup - put the appropriate next hop on a mesh frame. Calling
1222 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_nexthop_lookup()
1238 msecs_to_jiffies(sdata->u.mesh.mshcfg.path_refresh_time)) && in mesh_nexthop_lookup()
1292 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_tx_root_frame()