Lines Matching refs:ifmsh

242 	struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;  in mesh_path_error_tx()  local
248 if (time_before(jiffies, ifmsh->next_perr)) in mesh_path_error_tx()
291 ifmsh->next_perr = TU_TO_EXP_TIME( in mesh_path_error_tx()
292 ifmsh->mshcfg.dot11MeshHWMPperrMinInterval); in mesh_path_error_tx()
579 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_preq_frame_process() local
607 if (SN_GT(target_sn, ifmsh->sn)) in hwmp_preq_frame_process()
608 ifmsh->sn = target_sn; in hwmp_preq_frame_process()
610 if (time_after(jiffies, ifmsh->last_sn_update + in hwmp_preq_frame_process()
612 time_before(jiffies, ifmsh->last_sn_update)) { in hwmp_preq_frame_process()
613 ++ifmsh->sn; in hwmp_preq_frame_process()
614 ifmsh->last_sn_update = jiffies; in hwmp_preq_frame_process()
616 target_sn = ifmsh->sn; in hwmp_preq_frame_process()
625 target_sn = ++ifmsh->sn; in hwmp_preq_frame_process()
627 ifmsh->last_sn_update = jiffies; in hwmp_preq_frame_process()
655 ttl = ifmsh->mshcfg.element_ttl; in hwmp_preq_frame_process()
664 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_preq_frame_process()
668 if (forward && ifmsh->mshcfg.dot11MeshForwarding) { in hwmp_preq_frame_process()
675 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_preq_frame_process()
695 ifmsh->mshstats.fwded_unicast++; in hwmp_preq_frame_process()
697 ifmsh->mshstats.fwded_mcast++; in hwmp_preq_frame_process()
698 ifmsh->mshstats.fwded_frames++; in hwmp_preq_frame_process()
715 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_prep_frame_process() local
730 if (!ifmsh->mshcfg.dot11MeshForwarding) in hwmp_prep_frame_process()
777 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_perr_frame_process() local
787 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_perr_frame_process()
813 if (!ifmsh->mshcfg.dot11MeshForwarding) in hwmp_perr_frame_process()
829 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_rann_frame_process() local
907 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_rann_frame_process()
913 if (ifmsh->mshcfg.dot11MeshForwarding) { in hwmp_rann_frame_process()
994 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_queue_preq() local
1003 spin_lock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1004 if (ifmsh->preq_queue_len == MAX_PREQ_QUEUE_LEN) { in mesh_queue_preq()
1005 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1015 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1026 list_add_tail(&preq_node->list, &ifmsh->preq_queue.list); in mesh_queue_preq()
1027 ++ifmsh->preq_queue_len; in mesh_queue_preq()
1028 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1030 if (time_after(jiffies, ifmsh->last_preq + min_preq_int_jiff(sdata))) in mesh_queue_preq()
1033 else if (time_before(jiffies, ifmsh->last_preq)) { in mesh_queue_preq()
1037 ifmsh->last_preq = jiffies - min_preq_int_jiff(sdata) - 1; in mesh_queue_preq()
1040 mod_timer(&ifmsh->mesh_path_timer, ifmsh->last_preq + in mesh_queue_preq()
1051 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_start_discovery() local
1058 spin_lock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_path_start_discovery()
1059 if (!ifmsh->preq_queue_len || in mesh_path_start_discovery()
1060 time_before(jiffies, ifmsh->last_preq + in mesh_path_start_discovery()
1062 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_path_start_discovery()
1066 preq_node = list_first_entry(&ifmsh->preq_queue.list, in mesh_path_start_discovery()
1069 --ifmsh->preq_queue_len; in mesh_path_start_discovery()
1070 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_path_start_discovery()
1100 ifmsh->last_preq = jiffies; in mesh_path_start_discovery()
1102 if (time_after(jiffies, ifmsh->last_sn_update + in mesh_path_start_discovery()
1104 time_before(jiffies, ifmsh->last_sn_update)) { in mesh_path_start_discovery()
1105 ++ifmsh->sn; in mesh_path_start_discovery()
1123 mesh_path_sel_frame_tx(MPATH_PREQ, 0, sdata->vif.addr, ifmsh->sn, in mesh_path_start_discovery()
1125 ttl, lifetime, 0, ifmsh->preq_id++, sdata); in mesh_path_start_discovery()
1256 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_nexthop_lookup() local
1262 if (ifmsh->mshcfg.dot11MeshNolearn && in mesh_nexthop_lookup()
1322 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_tx_root_frame() local
1323 u32 interval = ifmsh->mshcfg.dot11MeshHWMPRannInterval; in mesh_path_tx_root_frame()
1326 flags = (ifmsh->mshcfg.dot11MeshGateAnnouncementProtocol) in mesh_path_tx_root_frame()
1329 switch (ifmsh->mshcfg.dot11MeshHWMPRootMode) { in mesh_path_tx_root_frame()
1332 ++ifmsh->sn, 0, NULL, 0, broadcast_addr, in mesh_path_tx_root_frame()
1333 0, ifmsh->mshcfg.element_ttl, in mesh_path_tx_root_frame()
1340 interval = ifmsh->mshcfg.dot11MeshHWMPactivePathToRootTimeout; in mesh_path_tx_root_frame()
1344 ++ifmsh->sn, target_flags, in mesh_path_tx_root_frame()
1346 0, ifmsh->mshcfg.element_ttl, interval, in mesh_path_tx_root_frame()
1347 0, ifmsh->preq_id++, sdata); in mesh_path_tx_root_frame()