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 15:36:10 +0000 (17:36 +0200)
commit29aff6492dc20abc1131eab8dd5cd3c997c29b40
treede2fa729b76d1b34f85a0e1d343c1dc44e3a9a60
parent74ab1b39b60dea5c42d16e5f93eeb1dcfbe35d96
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