summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_pathtbl.c
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@gmail.com>2009-11-09 23:46:50 +0000
committerJohn W. Linville <linville@tuxdriver.com>2009-11-13 17:43:54 -0500
commitd611f062f4351d8609910648854908fecf58970d (patch)
treeef3541e0e9347a42b497e3bbdb66045090533308 /net/mac80211/mesh_pathtbl.c
parent90a5e16992fa6105f7ebf3f29f5cf5feb1bbf7dc (diff)
downloadop-kernel-dev-d611f062f4351d8609910648854908fecf58970d.zip
op-kernel-dev-d611f062f4351d8609910648854908fecf58970d.tar.gz
mac80211: update PERR frame format
Update the PERR IE frame format according to latest draft (3.03). Signed-off-by: Rui Paulo <rpaulo@gmail.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Reviewed-by: Andrey Yurovsky <andrey@cozybit.com> Tested-by: Brian Cavagnolo <brian@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_pathtbl.c')
-rw-r--r--net/mac80211/mesh_pathtbl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index 751c4d0..5d54123 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -465,8 +465,9 @@ void mesh_plink_broken(struct sta_info *sta)
mpath->flags &= ~MESH_PATH_ACTIVE;
++mpath->dsn;
spin_unlock_bh(&mpath->state_lock);
- mesh_path_error_tx(mpath->dst,
+ mesh_path_error_tx(MESH_TTL, mpath->dst,
cpu_to_le32(mpath->dsn),
+ PERR_RCODE_DEST_UNREACH,
sdata->dev->broadcast, sdata);
} else
spin_unlock_bh(&mpath->state_lock);
@@ -611,7 +612,8 @@ void mesh_path_discard_frame(struct sk_buff *skb,
mpath = mesh_path_lookup(da, sdata);
if (mpath)
dsn = ++mpath->dsn;
- mesh_path_error_tx(skb->data, cpu_to_le32(dsn), ra, sdata);
+ mesh_path_error_tx(MESH_TTL, skb->data, cpu_to_le32(dsn),
+ PERR_RCODE_NO_ROUTE, ra, sdata);
}
kfree_skb(skb);
OpenPOWER on IntegriCloud