libertas: store rssi as an u32
Don't store an (hardware base) u8 value in bss_descriptor, but just an unsigned int (RSSI is really unsigned). Compilers generate more efficent code for ints than for bytes. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
e98a88dd33
commit
ff829ae016
@@ -34,14 +34,9 @@ struct bss_descriptor {
|
||||
u8 ssid_len;
|
||||
|
||||
u16 capability;
|
||||
|
||||
/* receive signal strength in dBm */
|
||||
long rssi;
|
||||
|
||||
u32 rssi;
|
||||
u32 channel;
|
||||
|
||||
u16 beaconperiod;
|
||||
|
||||
u32 atimwindow;
|
||||
|
||||
/* IW_MODE_AUTO, IW_MODE_ADHOC, IW_MODE_INFRA */
|
||||
|
Reference in New Issue
Block a user