History log of /hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
05613005ba730bec6f0acf9e57f9a21b396428c7 15-Feb-2016 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Monitor for packet fate stats

Driver collects stats for first few packets after association.
Framework can query for these stats to know the reason if
association/any other failure happens.

Change-Id: Icc413f503e518a24b6d89578b07b45d11422bb5e
CRs-Fixed: 964555
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
9d53c095682868768ab8488e80db98a461ce325d 30-Sep-2015 Srinivas Dasari <dasaris@codeaurora.org> WiFi-HAL: Write per pkt stats to ring buffers without processing

Pronto driver sends the per packet stats in framework expected
format. Write the stats received from driver to ring buffer as
it is as no processing is needed.

Change-Id: Ia5841c30375eeab7e74b1d1b90fa4c76421e5364
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
6c670f1cb4270f00e00b414a2c7cd20b878d8356 13-Aug-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Populate stats of previous AMPDU if first MPDU misses

Per packet stats module collects below stats from first MPDU of
the AMPDU.
1. RxMCS
2. last_transmit_rate
3. rssi
4. tid

But the first MPDU may not be received by
hardware/corrupted sometimes. Populate the cached stats
from first MPDU of the previous AMPDU in such cases.

Don't parse Rx packets if the REORDER flag is set as parsing of
these packets may show duplicate entries in the stats.

Change-Id: I8cf78f42e055b0c22d123f21c91f2c204087afe0
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
d5efb24a0e865b1cc8f43913ad80565cf42f477e 06-Aug-2015 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Fix TID issue in Rx per packet stats

Firmware sends valid TID only for first MPDU. Populate the same
to all other MPDUs.

Change-Id: Ie06b1e032c105c3bcd2ccf3ddf9c92524b71c518
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
271bc72c80d912e05fe8585d8b83df70fe29a616 07-Aug-2015 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Validate debug events with sufficient length only

Frequent updations are expected to the stats structures from
firmware. Validating the events received based on its exact size
may not be correct in this case. So, consider events as valid only
if the size of events is not less than expected.

Rx peer info event has been handled with the help flags already.
So, remove the duplicate check from parse_rx_stats()

Change-Id: I42f2a3f402684fd3de049d7d9fe011068fabb45b
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
c515d6df7f69247f627813c2ca296f1c3d3db96a 08-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Choose appropriate series_bw based on series

try_status has a parameter "series" which needs to be
considered to select the appropriate series_bw structure.

Change-Id: If4cb8c4e54dccf60d083dcaf8ea44a4e51c09046
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
e71133216d9b9e3af5cde78572f220818a72ab6e 03-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Decode rate and set status for Rx packets properly

1. Firmware sends stats for failed Rx packets with corresponding
error code. Set Rx packet status as success only if none of
the error bits are set.
2. Indicate tsf timestamp as the packet timestamp for Rx packets.
3. Correct the rate index calculation.

Change-Id: Icbe0c0bb8d8d61d55d1f01b247eb784365dcf8f4
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
20c7b34cdd5fe85d0491c63efd5cbfae23db1392 03-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Process Rx events only if it carries Rx descriptor

Process only relevant Rx events coming from driver/firmware to
generate Rx per packet stats.

Change-Id: I3e3aa309f0cfee828f8075a78f8ff47f1f6da37a
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
1563c992ab566c13121e8081651fe915fbe74dc4 01-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Use correct bandwidth to compute MCS for Tx stats

Get the bandwidth value from Tx stats try list based on total
tries and calculate rate based on its value.
Set the RSSI value for failed Tx packets to 255, which indicates
an invalid value.

Change-Id: I7c4b43268627eef1ae6576bd6afd37f1bf55c630
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
7c9d211409f19d8b218ed3cc718bc32784d18ee3 30-Jun-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Decode short gi parameter for Rx packets

Decode short gi value from Rx stats and correct rate calculation
based on short gi value.

Change-Id: I5db98d3363298820095ee3d0bcd809745b935a4f
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
16d38e60cfc9ebebf695eb38e9911ee49fece702 27-Jun-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: populate tx stats for AMPDU packets

Firmware sends stats only for the first msdu of the AMPDU.
Populate stats for other packets based on the tx packet bitmap
and block ack bitmap.

Change-Id: I530fccc251228962b105d9c18961d29777417d82
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
8e5a1f11d8d8ca7f0404dd6c926f7b31785a9df2 24-Jun-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Cache and populate Rx aggregated stats

Aggregated Rx packets may have valid data in a specific MSDU of
the MPDU. We need to cache the stats received so far and update
once the expected MSDU received.
Below stats for Rx aggregated packets contains valid values only
in the first mpdu of the AMPDU.
1. RxMCS
2. last_transmit_rate
3. RSSI

and timestamp is valid only in the last msdu of the last mpdu.
Write the updated stats to ring buffer.

Change-Id: Ie09992926ae447995946b64c3e8e07dd0650cd5d
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
16b2e84f187cb67f43ebeb75caee28101f73485d 29-Apr-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Enable rx payload and few other stats in packet stats

1. Enable Rx payload
2. timestamp in ring buffer entry
3. A correction in rx packet status to check for mic failure case.
4. Collect the stats in ring buffer entry format and write the
same to ring buffer.
5. Set header type to 80211 in the rx-flags as we always receive
payload with 80211 header.
6. Calculate tx-rate
7. Calculate rx-rate and MCS
8. Cleanup the user_sock if wifihal initialization fails.

Change-Id: I37ff66e79f510fa7e0f8981d9af28fe562a6eec9
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
0b7d2d51b9accb3a1cbbd08eb1cc9ba8966517f1 30-Apr-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi HAL: Add version field to the packet log structure

Driver updates the version field whenever the packet log
structure changes. Wifihal needs to handle the event
appropriately based on the version info if it changes in future.

Change-Id: I26860067bc36255925d295b57b19d0e7625ba341
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h
0db016e8fc02c05164338d9d1105132b8a520542 22-Apr-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi HAL: Parse and write the tx-rx stats to ring buffer

Parse the tx/rx stats events which are sent from driver and
collect the stats in framework specified format. Write the
collected stats to ringbuffer.

Change-Id: I41eb98ca39bf87d6ff7136e8713847f6cc7580a2
/hardware/qcom/wlan/qcwcn/wifi_hal/pkt_stats.h