From: Chun-Yeow Yeoh Date: Mon, 19 Mar 2012 13:38:46 +0000 (+0800) Subject: mac80211: fix the sparse warnings on endian handling in RANN propagation X-Git-Tag: 1.9.6~10 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8db57a27c9083a7ad243284afd27a5589fef78d5;p=carl9170fw.git 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 Signed-off-by: Javier Cardona Signed-off-by: John W. Linville Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 216ac47..592b67a 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -653,9 +653,9 @@ struct ieee80211_rann_ie { u8 rann_hopcount; u8 rann_ttl; u8 rann_addr[6]; - u32 rann_seq; - u32 rann_interval; - u32 rann_metric; + __le32 rann_seq; + __le32 rann_interval; + __le32 rann_metric; } __attribute__ ((packed)); enum ieee80211_rann_flags {