diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 929f897a8ded..03fe6d1cff42 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1389,6 +1389,8 @@ static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, | |||
1389 | else | 1389 | else |
1390 | memset(next_hop, 0, ETH_ALEN); | 1390 | memset(next_hop, 0, ETH_ALEN); |
1391 | 1391 | ||
1392 | memset(pinfo, 0, sizeof(*pinfo)); | ||
1393 | |||
1392 | pinfo->generation = mesh_paths_generation; | 1394 | pinfo->generation = mesh_paths_generation; |
1393 | 1395 | ||
1394 | pinfo->filled = MPATH_INFO_FRAME_QLEN | | 1396 | pinfo->filled = MPATH_INFO_FRAME_QLEN | |
@@ -1407,7 +1409,6 @@ static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, | |||
1407 | pinfo->discovery_timeout = | 1409 | pinfo->discovery_timeout = |
1408 | jiffies_to_msecs(mpath->discovery_timeout); | 1410 | jiffies_to_msecs(mpath->discovery_timeout); |
1409 | pinfo->discovery_retries = mpath->discovery_retries; | 1411 | pinfo->discovery_retries = mpath->discovery_retries; |
1410 | pinfo->flags = 0; | ||
1411 | if (mpath->flags & MESH_PATH_ACTIVE) | 1412 | if (mpath->flags & MESH_PATH_ACTIVE) |
1412 | pinfo->flags |= NL80211_MPATH_FLAG_ACTIVE; | 1413 | pinfo->flags |= NL80211_MPATH_FLAG_ACTIVE; |
1413 | if (mpath->flags & MESH_PATH_RESOLVING) | 1414 | if (mpath->flags & MESH_PATH_RESOLVING) |
@@ -1416,10 +1417,8 @@ static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, | |||
1416 | pinfo->flags |= NL80211_MPATH_FLAG_SN_VALID; | 1417 | pinfo->flags |= NL80211_MPATH_FLAG_SN_VALID; |
1417 | if (mpath->flags & MESH_PATH_FIXED) | 1418 | if (mpath->flags & MESH_PATH_FIXED) |
1418 | pinfo->flags |= NL80211_MPATH_FLAG_FIXED; | 1419 | pinfo->flags |= NL80211_MPATH_FLAG_FIXED; |
1419 | if (mpath->flags & MESH_PATH_RESOLVING) | 1420 | if (mpath->flags & MESH_PATH_RESOLVED) |
1420 | pinfo->flags |= NL80211_MPATH_FLAG_RESOLVING; | 1421 | pinfo->flags |= NL80211_MPATH_FLAG_RESOLVED; |
1421 | |||
1422 | pinfo->flags = mpath->flags; | ||
1423 | } | 1422 | } |
1424 | 1423 | ||
1425 | static int ieee80211_get_mpath(struct wiphy *wiphy, struct net_device *dev, | 1424 | static int ieee80211_get_mpath(struct wiphy *wiphy, struct net_device *dev, |