History log of /hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
57db12bad7921f7e4efa148f1a3a8ed37e92d5d4 03-Sep-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Write header and payload to same buffer

In case of driver prints and firmware prints, events will be
split into write to ring buffer as header and payload. Write
header and payload to same buffer so that complete record
will be available in a single buffer.

Bug:23783279
Change-Id: I54d3f813fbb14932b483cd6423d41c7187a464a9
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
eb3d1bfb7ba3935f3d5d31fc25a826760584e474 26-Aug-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Write and read data to/from ring buffers record wise

Currently, ring buffer writes and reads happens with byte
boundary. Add support to write only records and do not split any
records.

BUG=23783279
Change-Id: I2342f86cc4c3a678f21f1595b81e0cdf6d24b2c0
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
273ec8f00d5fabae8e41d672042798a84c147309 02-Sep-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Read complete ring buffer when it is full

Ring buffer write fails if the ring buffer is full. Push the ring
buffer data to upper layer and then try writing the same data
again to the ring buffer.

Bug: 23758463
Change-Id: I3c9c310bec43d60c580af43157ca174aa524f378
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
f1c6382b7f8e3021f6ad308e4bd1fa8289b65516 27-Aug-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Unlock mutex before calling framework callback

As part of earlier commit log_handler and alert_handler were
protected by mutex. However, calling framework callback within
mutex context would cause deadlock, thus unlock mutex before
calling the framework callback and reacquire again when required.

Bug: 23530883
Change-Id: If4cd92be906307a9e5ff7a8002b219f93f1bda64
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
32016d0baa7be9c4d1dd2f2fb68325f32ebf1267 19-Aug-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Protect log_handler and alert_handler with mutex

Protect log_handler and alert_handler with mutex as these
can be accessed in both command and event paths.

Bug: 23292340
Change-Id: I0565d818e97f81609152b288cc9074d995232744
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
0b89754a29ef5fe71f79330afc351e027026bf69 27-Apr-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi-Hal: Deinitialize ring buffers while exiting

Free the memory associated with ring buffers when wifi_cleanup
is called. Also take care of failures in ring buffer
initialization.

Change-Id: I51f3c358dd4d27f2fa10d808610276910397c0c5
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
22e2b0152ede2697e67541a3a2c4e1d57f1f2bd4 24-Apr-2015 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Free buffers sent to on_ring_buffer_data

on_ring_buffer_data callback will not free the memory sent to it.
Free the memory after returning from on_ring_buffer_data callback.

Change-Id: I9c70eff2dd73e3215e3f72e19901891b26264255
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp
9de438de8f6b21a0355e9f891133e0f18d026878 10-Apr-2015 Subhani Shaik <subhanis@codeaurora.org> Wi-Fi HAL: Initial implementation of Ring Buffer

Ring buffer consists of discrete buffers alloced and freed as and
when required and not required. These buffers together will
operate as a ring of memory and allows write and read operations
of different sizes. Also provides facility to trigger external
callbacks when the size of ring data crosses configured threshold.

Change-Id: Ide7453dad59a1abc82381619831e268e82ef89da
/hardware/qcom/wlan/qcwcn/wifi_hal/rb_wrapper.cpp