aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@gmail.com>2009-11-19 10:49:10 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-19 11:38:24 -0500
commit9f13084d52d40dcce5a5f00586410acdb5a3fbff (patch)
treecc0f739616034672cbf2cb1456fb8136bce1ffbd /net
parent64491f0ec8b653560a030022dccfce67ad353d81 (diff)
mac80211: fix endianess on mesh_path_error_tx() calls
Signed-off-by: Rui Paulo <rpaulo@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/mesh_pathtbl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index 3fbabbf34ea5..a8da23905c70 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -468,7 +468,7 @@ void mesh_plink_broken(struct sta_info *sta)
468 spin_unlock_bh(&mpath->state_lock); 468 spin_unlock_bh(&mpath->state_lock);
469 mesh_path_error_tx(MESH_TTL, mpath->dst, 469 mesh_path_error_tx(MESH_TTL, mpath->dst,
470 cpu_to_le32(mpath->sn), 470 cpu_to_le32(mpath->sn),
471 PERR_RCODE_DEST_UNREACH, 471 cpu_to_le16(PERR_RCODE_DEST_UNREACH),
472 bcast, sdata); 472 bcast, sdata);
473 } else 473 } else
474 spin_unlock_bh(&mpath->state_lock); 474 spin_unlock_bh(&mpath->state_lock);
@@ -614,7 +614,7 @@ void mesh_path_discard_frame(struct sk_buff *skb,
614 if (mpath) 614 if (mpath)
615 sn = ++mpath->sn; 615 sn = ++mpath->sn;
616 mesh_path_error_tx(MESH_TTL, skb->data, cpu_to_le32(sn), 616 mesh_path_error_tx(MESH_TTL, skb->data, cpu_to_le32(sn),
617 PERR_RCODE_NO_ROUTE, ra, sdata); 617 cpu_to_le16(PERR_RCODE_NO_ROUTE), ra, sdata);
618 } 618 }
619 619
620 kfree_skb(skb); 620 kfree_skb(skb);