diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-03-19 12:08:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:50 -0400 |
commit | ff829ae01644c10722132a45981615be962c4a5c (patch) | |
tree | b86f3d285af36523a6960400c715f6d596b0c3d2 /drivers/net/wireless/libertas/scan.h | |
parent | e98a88dd33b7188ce84533e128101dd9630ae592 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.h')
-rw-r--r-- | drivers/net/wireless/libertas/scan.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/scan.h b/drivers/net/wireless/libertas/scan.h index c50c8b74714b..b50cf1415e04 100644 --- a/drivers/net/wireless/libertas/scan.h +++ b/drivers/net/wireless/libertas/scan.h | |||
@@ -34,14 +34,9 @@ struct bss_descriptor { | |||
34 | u8 ssid_len; | 34 | u8 ssid_len; |
35 | 35 | ||
36 | u16 capability; | 36 | u16 capability; |
37 | 37 | u32 rssi; | |
38 | /* receive signal strength in dBm */ | ||
39 | long rssi; | ||
40 | |||
41 | u32 channel; | 38 | u32 channel; |
42 | |||
43 | u16 beaconperiod; | 39 | u16 beaconperiod; |
44 | |||
45 | u32 atimwindow; | 40 | u32 atimwindow; |
46 | 41 | ||
47 | /* IW_MODE_AUTO, IW_MODE_ADHOC, IW_MODE_INFRA */ | 42 | /* IW_MODE_AUTO, IW_MODE_ADHOC, IW_MODE_INFRA */ |