diff options
Diffstat (limited to 'net/mac80211/mesh_pathtbl.c')
-rw-r--r-- | net/mac80211/mesh_pathtbl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c index 89aacfd2756d..7d050ed6fe5a 100644 --- a/net/mac80211/mesh_pathtbl.c +++ b/net/mac80211/mesh_pathtbl.c | |||
@@ -722,7 +722,6 @@ void mesh_plink_broken(struct sta_info *sta) | |||
722 | struct mpath_node *node; | 722 | struct mpath_node *node; |
723 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 723 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
724 | int i; | 724 | int i; |
725 | __le16 reason = cpu_to_le16(WLAN_REASON_MESH_PATH_DEST_UNREACHABLE); | ||
726 | 725 | ||
727 | rcu_read_lock(); | 726 | rcu_read_lock(); |
728 | tbl = rcu_dereference(mesh_paths); | 727 | tbl = rcu_dereference(mesh_paths); |
@@ -736,9 +735,9 @@ void mesh_plink_broken(struct sta_info *sta) | |||
736 | ++mpath->sn; | 735 | ++mpath->sn; |
737 | spin_unlock_bh(&mpath->state_lock); | 736 | spin_unlock_bh(&mpath->state_lock); |
738 | mesh_path_error_tx(sdata, | 737 | mesh_path_error_tx(sdata, |
739 | sdata->u.mesh.mshcfg.element_ttl, | 738 | sdata->u.mesh.mshcfg.element_ttl, |
740 | mpath->dst, cpu_to_le32(mpath->sn), | 739 | mpath->dst, mpath->sn, |
741 | reason, bcast); | 740 | WLAN_REASON_MESH_PATH_DEST_UNREACHABLE, bcast); |
742 | } | 741 | } |
743 | } | 742 | } |
744 | rcu_read_unlock(); | 743 | rcu_read_unlock(); |