• Home
  • Raw
  • Download

Lines Matching refs:ifmsh

240 	struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;  in mesh_path_error_tx()  local
246 if (time_before(jiffies, ifmsh->next_perr)) in mesh_path_error_tx()
289 ifmsh->next_perr = TU_TO_EXP_TIME( in mesh_path_error_tx()
290 ifmsh->mshcfg.dot11MeshHWMPperrMinInterval); in mesh_path_error_tx()
577 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_preq_frame_process() local
605 if (SN_GT(target_sn, ifmsh->sn)) in hwmp_preq_frame_process()
606 ifmsh->sn = target_sn; in hwmp_preq_frame_process()
608 if (time_after(jiffies, ifmsh->last_sn_update + in hwmp_preq_frame_process()
610 time_before(jiffies, ifmsh->last_sn_update)) { in hwmp_preq_frame_process()
611 ++ifmsh->sn; in hwmp_preq_frame_process()
612 ifmsh->last_sn_update = jiffies; in hwmp_preq_frame_process()
614 target_sn = ifmsh->sn; in hwmp_preq_frame_process()
623 target_sn = ++ifmsh->sn; in hwmp_preq_frame_process()
625 ifmsh->last_sn_update = jiffies; in hwmp_preq_frame_process()
653 ttl = ifmsh->mshcfg.element_ttl; in hwmp_preq_frame_process()
662 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_preq_frame_process()
666 if (forward && ifmsh->mshcfg.dot11MeshForwarding) { in hwmp_preq_frame_process()
673 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_preq_frame_process()
693 ifmsh->mshstats.fwded_unicast++; in hwmp_preq_frame_process()
695 ifmsh->mshstats.fwded_mcast++; in hwmp_preq_frame_process()
696 ifmsh->mshstats.fwded_frames++; in hwmp_preq_frame_process()
713 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_prep_frame_process() local
728 if (!ifmsh->mshcfg.dot11MeshForwarding) in hwmp_prep_frame_process()
775 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_perr_frame_process() local
785 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_perr_frame_process()
811 if (!ifmsh->mshcfg.dot11MeshForwarding) in hwmp_perr_frame_process()
827 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in hwmp_rann_frame_process() local
905 ifmsh->mshstats.dropped_frames_ttl++; in hwmp_rann_frame_process()
911 if (ifmsh->mshcfg.dot11MeshForwarding) { in hwmp_rann_frame_process()
992 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_queue_preq() local
1001 spin_lock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1002 if (ifmsh->preq_queue_len == MAX_PREQ_QUEUE_LEN) { in mesh_queue_preq()
1003 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1013 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1024 list_add_tail(&preq_node->list, &ifmsh->preq_queue.list); in mesh_queue_preq()
1025 ++ifmsh->preq_queue_len; in mesh_queue_preq()
1026 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_queue_preq()
1028 if (time_after(jiffies, ifmsh->last_preq + min_preq_int_jiff(sdata))) in mesh_queue_preq()
1031 else if (time_before(jiffies, ifmsh->last_preq)) { in mesh_queue_preq()
1035 ifmsh->last_preq = jiffies - min_preq_int_jiff(sdata) - 1; in mesh_queue_preq()
1038 mod_timer(&ifmsh->mesh_path_timer, ifmsh->last_preq + in mesh_queue_preq()
1049 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_start_discovery() local
1056 spin_lock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_path_start_discovery()
1057 if (!ifmsh->preq_queue_len || in mesh_path_start_discovery()
1058 time_before(jiffies, ifmsh->last_preq + in mesh_path_start_discovery()
1060 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_path_start_discovery()
1064 preq_node = list_first_entry(&ifmsh->preq_queue.list, in mesh_path_start_discovery()
1067 --ifmsh->preq_queue_len; in mesh_path_start_discovery()
1068 spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); in mesh_path_start_discovery()
1098 ifmsh->last_preq = jiffies; in mesh_path_start_discovery()
1100 if (time_after(jiffies, ifmsh->last_sn_update + in mesh_path_start_discovery()
1102 time_before(jiffies, ifmsh->last_sn_update)) { in mesh_path_start_discovery()
1103 ++ifmsh->sn; in mesh_path_start_discovery()
1121 mesh_path_sel_frame_tx(MPATH_PREQ, 0, sdata->vif.addr, ifmsh->sn, in mesh_path_start_discovery()
1123 ttl, lifetime, 0, ifmsh->preq_id++, sdata); in mesh_path_start_discovery()
1254 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_nexthop_lookup() local
1260 if (ifmsh->mshcfg.dot11MeshNolearn && in mesh_nexthop_lookup()
1320 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_tx_root_frame() local
1321 u32 interval = ifmsh->mshcfg.dot11MeshHWMPRannInterval; in mesh_path_tx_root_frame()
1324 flags = (ifmsh->mshcfg.dot11MeshGateAnnouncementProtocol) in mesh_path_tx_root_frame()
1327 switch (ifmsh->mshcfg.dot11MeshHWMPRootMode) { in mesh_path_tx_root_frame()
1330 ++ifmsh->sn, 0, NULL, 0, broadcast_addr, in mesh_path_tx_root_frame()
1331 0, ifmsh->mshcfg.element_ttl, in mesh_path_tx_root_frame()
1338 interval = ifmsh->mshcfg.dot11MeshHWMPactivePathToRootTimeout; in mesh_path_tx_root_frame()
1342 ++ifmsh->sn, target_flags, in mesh_path_tx_root_frame()
1344 0, ifmsh->mshcfg.element_ttl, interval, in mesh_path_tx_root_frame()
1345 0, ifmsh->preq_id++, sdata); in mesh_path_tx_root_frame()