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)
committerChristian Lamparter <chunkeey@googlemail.com>
Sat, 5 May 2012 17:12:56 +0000 (19:12 +0200)
commit8db57a27c9083a7ad243284afd27a5589fef78d5
treede2fa729b76d1b34f85a0e1d343c1dc44e3a9a60
parenta88e5db6ff3338703bac61097fd9372350d3259f
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>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
include/linux/ieee80211.h