mac80211: fix the sparse warnings on endian handling in RANN propagation
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Mon, 19 Mar 2012 13:38:46 +0000 (21:38 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:12:30 +0000 (16:12 -0400)
commit292c41acddfdbe0fb42d4c4ad9b896168fd16e91
treeb7fa07a43ca2362ee491dd2d72bf13be58e93e32
parent70b12f2612a6b352d16342b5952cf9f9de6c1d56
mac80211: fix the sparse warnings on endian handling in RANN propagation

The HWMP sequence number of received RANN element is compared to decide whether to be
propagated. The sequence number is required to covert from 32bit little endian data into
CPUs endianness for comparison. The same applies to the RANN metric.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/ieee80211.h
net/mac80211/mesh_hwmp.c