Lines Matching refs:mpath

1424 	struct mesh_path *mpath;  in ieee80211_add_mpath()  local
1436 mpath = mesh_path_add(sdata, dst); in ieee80211_add_mpath()
1437 if (IS_ERR(mpath)) { in ieee80211_add_mpath()
1439 return PTR_ERR(mpath); in ieee80211_add_mpath()
1442 mesh_path_fix_nexthop(mpath, sta); in ieee80211_add_mpath()
1464 struct mesh_path *mpath; in ieee80211_change_mpath() local
1477 mpath = mesh_path_lookup(sdata, dst); in ieee80211_change_mpath()
1478 if (!mpath) { in ieee80211_change_mpath()
1483 mesh_path_fix_nexthop(mpath, sta); in ieee80211_change_mpath()
1489 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument
1492 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in mpath_set_pinfo()
1511 pinfo->frame_qlen = mpath->frame_queue.qlen; in mpath_set_pinfo()
1512 pinfo->sn = mpath->sn; in mpath_set_pinfo()
1513 pinfo->metric = mpath->metric; in mpath_set_pinfo()
1514 if (time_before(jiffies, mpath->exp_time)) in mpath_set_pinfo()
1515 pinfo->exptime = jiffies_to_msecs(mpath->exp_time - jiffies); in mpath_set_pinfo()
1517 jiffies_to_msecs(mpath->discovery_timeout); in mpath_set_pinfo()
1518 pinfo->discovery_retries = mpath->discovery_retries; in mpath_set_pinfo()
1519 if (mpath->flags & MESH_PATH_ACTIVE) in mpath_set_pinfo()
1521 if (mpath->flags & MESH_PATH_RESOLVING) in mpath_set_pinfo()
1523 if (mpath->flags & MESH_PATH_SN_VALID) in mpath_set_pinfo()
1525 if (mpath->flags & MESH_PATH_FIXED) in mpath_set_pinfo()
1527 if (mpath->flags & MESH_PATH_RESOLVED) in mpath_set_pinfo()
1536 struct mesh_path *mpath; in ieee80211_get_mpath() local
1541 mpath = mesh_path_lookup(sdata, dst); in ieee80211_get_mpath()
1542 if (!mpath) { in ieee80211_get_mpath()
1546 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_get_mpath()
1547 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_get_mpath()
1557 struct mesh_path *mpath; in ieee80211_dump_mpath() local
1562 mpath = mesh_path_lookup_by_idx(sdata, idx); in ieee80211_dump_mpath()
1563 if (!mpath) { in ieee80211_dump_mpath()
1567 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_dump_mpath()
1568 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_dump_mpath()
1573 static void mpp_set_pinfo(struct mesh_path *mpath, u8 *mpp, in mpp_set_pinfo() argument
1577 memcpy(mpp, mpath->mpp, ETH_ALEN); in mpp_set_pinfo()
1587 struct mesh_path *mpath; in ieee80211_get_mpp() local
1592 mpath = mpp_path_lookup(sdata, dst); in ieee80211_get_mpp()
1593 if (!mpath) { in ieee80211_get_mpp()
1597 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_get_mpp()
1598 mpp_set_pinfo(mpath, mpp, pinfo); in ieee80211_get_mpp()
1608 struct mesh_path *mpath; in ieee80211_dump_mpp() local
1613 mpath = mpp_path_lookup_by_idx(sdata, idx); in ieee80211_dump_mpp()
1614 if (!mpath) { in ieee80211_dump_mpp()
1618 memcpy(dst, mpath->dst, ETH_ALEN); in ieee80211_dump_mpp()
1619 mpp_set_pinfo(mpath, mpp, pinfo); in ieee80211_dump_mpp()