[PATCH] libertas: store rssi as an int
hs4233 at mail.mn-solutions.de
Wed Mar 19 11:18:24 EDT 2008
> RSSI as defined in 802.11 as a positive 8-bit value; the
> libertas firmware also reports the RSSI in scan results as a
> u8. So I'd suggest a u8 instead of an int; an int isn't the
> right thing to do here.
"struct bss_descriptor" has nothing to do with hardware,
otherwise you would see __le32 there. Using an "u8" saves us
nothing, except we move all u8's at the end of the struct. But
this would give us unaligned u8's and some processors have
problems with that.
More information about the libertas-dev