Skip to content

Commit

Permalink
mac80211: fix endianess on mesh_path_error_tx() calls
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Paulo <rpaulo@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Rui Paulo authored and John W. Linville committed Nov 19, 2009
1 parent 64491f0 commit 9f13084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/mac80211/mesh_pathtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void mesh_plink_broken(struct sta_info *sta)
spin_unlock_bh(&mpath->state_lock);
mesh_path_error_tx(MESH_TTL, mpath->dst,
cpu_to_le32(mpath->sn),
PERR_RCODE_DEST_UNREACH,
cpu_to_le16(PERR_RCODE_DEST_UNREACH),
bcast, sdata);
} else
spin_unlock_bh(&mpath->state_lock);
Expand Down Expand Up @@ -614,7 +614,7 @@ void mesh_path_discard_frame(struct sk_buff *skb,
if (mpath)
sn = ++mpath->sn;
mesh_path_error_tx(MESH_TTL, skb->data, cpu_to_le32(sn),
PERR_RCODE_NO_ROUTE, ra, sdata);
cpu_to_le16(PERR_RCODE_NO_ROUTE), ra, sdata);
}

kfree_skb(skb);
Expand Down

0 comments on commit 9f13084

Please sign in to comment.