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:
Holger Schurig
2008-03-19 17:08:32 +01:00
committed by John W. Linville
parent e98a88dd33
commit ff829ae016
3 changed files with 4 additions and 9 deletions

View File

@@ -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 */