Lines Matching refs:mpath

1927 	struct mesh_path *mpath;  in ieee80211_add_mpath()  local
1939 mpath = mesh_path_add(sdata, dst); in ieee80211_add_mpath()
1940 if (IS_ERR(mpath)) { in ieee80211_add_mpath()
1942 return PTR_ERR(mpath); in ieee80211_add_mpath()
1945 mesh_path_fix_nexthop(mpath, sta); in ieee80211_add_mpath()
1967 struct mesh_path *mpath; in ieee80211_change_mpath() local
1980 mpath = mesh_path_lookup(sdata, dst); in ieee80211_change_mpath()
1981 if (!mpath) { in ieee80211_change_mpath()
1986 mesh_path_fix_nexthop(mpath, sta); in ieee80211_change_mpath()
1992 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument
1995 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in mpath_set_pinfo()
2004 pinfo->generation = mpath->sdata->u.mesh.mesh_paths_generation; in mpath_set_pinfo()
2016 pinfo->frame_qlen = mpath->frame_queue.qlen; in mpath_set_pinfo()
2017 pinfo->sn = mpath->sn; in mpath_set_pinfo()
2018 pinfo->metric = mpath->metric; in mpath_set_pinfo()
2019 if (time_before(jiffies, mpath->exp_time)) in mpath_set_pinfo()
2020 pinfo->exptime = jiffies_to_msecs(mpath->exp_time - jiffies); in mpath_set_pinfo()
2022 jiffies_to_msecs(mpath->discovery_timeout); in mpath_set_pinfo()
2023 pinfo->discovery_retries = mpath->discovery_retries; in mpath_set_pinfo()
2024 if (mpath->flags & MESH_PATH_ACTIVE) in mpath_set_pinfo()
2026 if (mpath->flags & MESH_PATH_RESOLVING) in mpath_set_pinfo()
2028 if (mpath->flags & MESH_PATH_SN_VALID) in mpath_set_pinfo()
2030 if (mpath->flags & MESH_PATH_FIXED) in mpath_set_pinfo()
2032 if (mpath->flags & MESH_PATH_RESOLVED) in mpath_set_pinfo()
2034 pinfo->hop_count = mpath->hop_count; in mpath_set_pinfo()
2035 pinfo->path_change_count = mpath->path_change_count; in mpath_set_pinfo()
2043 struct mesh_path *mpath; in ieee80211_get_mpath() local
2048 mpath = mesh_path_lookup(sdata, dst); in ieee80211_get_mpath()
2049 if (!mpath) { in ieee80211_get_mpath()
2053 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_get_mpath()
2054 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_get_mpath()
2064 struct mesh_path *mpath; in ieee80211_dump_mpath() local
2069 mpath = mesh_path_lookup_by_idx(sdata, idx); in ieee80211_dump_mpath()
2070 if (!mpath) { in ieee80211_dump_mpath()
2074 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_dump_mpath()
2075 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_dump_mpath()
2080 static void mpp_set_pinfo(struct mesh_path *mpath, u8 *mpp, in mpp_set_pinfo() argument
2084 memcpy(mpp, mpath->mpp, ETH_ALEN); in mpp_set_pinfo()
2086 pinfo->generation = mpath->sdata->u.mesh.mpp_paths_generation; in mpp_set_pinfo()
2094 struct mesh_path *mpath; in ieee80211_get_mpp() local
2099 mpath = mpp_path_lookup(sdata, dst); in ieee80211_get_mpp()
2100 if (!mpath) { in ieee80211_get_mpp()
2104 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_get_mpp()
2105 mpp_set_pinfo(mpath, mpp, pinfo); in ieee80211_get_mpp()
2115 struct mesh_path *mpath; in ieee80211_dump_mpp() local
2120 mpath = mpp_path_lookup_by_idx(sdata, idx); in ieee80211_dump_mpp()
2121 if (!mpath) { in ieee80211_dump_mpp()
2125 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_dump_mpp()
2126 mpp_set_pinfo(mpath, mpp, pinfo); in ieee80211_dump_mpp()