Skip to content

Commit 9f13084

Browse files
Rui Paulolinvjw
authored andcommitted
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>
1 parent 64491f0 commit 9f13084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/mac80211/mesh_pathtbl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void mesh_plink_broken(struct sta_info *sta)
468468
spin_unlock_bh(&mpath->state_lock);
469469
mesh_path_error_tx(MESH_TTL, mpath->dst,
470470
cpu_to_le32(mpath->sn),
471-
PERR_RCODE_DEST_UNREACH,
471+
cpu_to_le16(PERR_RCODE_DEST_UNREACH),
472472
bcast, sdata);
473473
} else
474474
spin_unlock_bh(&mpath->state_lock);
@@ -614,7 +614,7 @@ void mesh_path_discard_frame(struct sk_buff *skb,
614614
if (mpath)
615615
sn = ++mpath->sn;
616616
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);
618618
}
619619

620620
kfree_skb(skb);

0 commit comments

Comments
 (0)