diff options
author | Srinivas Dasari <dasaris@codeaurora.org> | 2015-10-01 17:10:31 +0530 |
---|---|---|
committer | Srinivas Dasari <dasaris@codeaurora.org> | 2016-01-20 16:18:28 +0530 |
commit | 045a80359d42a8f4bc136b51e42c173d11344099 (patch) | |
tree | 2d5697ac21050cca99dfb93c0da84194bee55530 /qcwcn/wifi_hal/common.cpp | |
parent | 36438f66a163df59550d1eb57b59febcd63d5ce9 (diff) | |
download | wlan-045a80359d42a8f4bc136b51e42c173d11344099.tar.gz |
WiFi-HAL: Add support for beacon_received connectivity event
Allow start logging for connectivity events and parse the
received beacon event. Write the parsed data to ring buffer.
Change-Id: I8b9e77c5533dd8d4876642e901a92808cc7e159d
Diffstat (limited to 'qcwcn/wifi_hal/common.cpp')
-rw-r--r-- | qcwcn/wifi_hal/common.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/common.cpp b/qcwcn/wifi_hal/common.cpp index a8f5e30..877fe22 100644 --- a/qcwcn/wifi_hal/common.cpp +++ b/qcwcn/wifi_hal/common.cpp @@ -267,6 +267,14 @@ void hexdump(void *buf, u16 len) ALOGI("******HexDump End***********"); } +/* Firmware sends RSSI value without noise floor. + * Add noise floor to the same and return absolute values. + */ +u8 get_rssi(u8 rssi_wo_noise_floor) +{ + return abs((int)rssi_wo_noise_floor - 96); +} + #ifdef __cplusplus } #endif /* __cplusplus */ |