Search Linux Wireless

Re: [PATCH] mac80211: fix the endianness problem of HWMP sequence number in RANN propagation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Johannes

>
> You should mark struct ieee80211_rann_ie to contain __le32, so that
> sparse will warn about things like this.
>

I try to change u32 to __le32 for the following members in struct
ieee80211_rann_ie.

struct ieee80211_rann_ie {
        u8 rann_flags;
        u8 rann_hopcount;
        u8 rann_ttl;
        u8 rann_addr[6];
        __le32 rann_seq;
        __le32 rann_interval;
        __le32 rann_metric;
} __attribute__ ((packed));

But when I compile using "make C=2 CF=-D__CHECK_ENDIAN__", I don't see
any sparse warning on this.

Please advice. Thanks

Regards,
Chun-Yeow
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux