History log of /hardware/qcom/wlan/qcwcn/wifi_hal/common.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ce366b22f46bbfa5d6c523e23704d8677ab2b176 29-Mar-2018 mazumdar <mazumdar@codeaurora.org> WiFi-Hal: Add write/read and enable/disable ops to Android Packet Filter

Add write/read and enable/disable ops for APF (Android Packet Filter).

Change-Id: Iae573751db0ec80d4404dccfd5056e2767ac113d
Bug: 36221302
Test: dumpsys wifi with ag/3937960
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
8d0cc788cf10762d8434292667d1dd305d03b53e 29-Nov-2017 Ajit Vaishya <ajitv@codeaurora.org> WiFi-Hal: Add checks on logger capabilities of driver

Check the logger feature capabilities advertized by driver in logger
APIs. Return WIFI_ERROR_NOT_SUPPORTED if the respective feature is
not supported by driver.

CRs-Fixed: 2150998 2174271
Change-Id: Icbac7b9cd34a547c4a371f490bf1ff24b6327dfe
Bug: 71716861
(cherry-picked from 2d4390b47afd8e895d9ecb46c45e98080386fdd8)
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
619c8b89e87de363ceaa7731cf8205b9d8a99cb6 08-Mar-2018 Srinivas Dasari <dasaris@codeaurora.org> WiFi-Hal: Cleanup unused command register/deregister code

wifi_register_cmd and wifi_unregister_cmd APIs are not used
anymore and can be cleaned up.

Bug: 74215851
Change-Id: I2c7de027515ffa85a3c58cea2b41f02c3ee0e56e
(cherry-picked from b690ce2542d5ec41014d760860704be50067136d)
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
486a43078fc42efab6bb28a195286f611fc3c72b 03-Jan-2018 Srinivas Dasari <dasaris@codeaurora.org> Wifi-HAL: Provision to get the Wi-Fi interface's MAC mode

This commit introduces a call back to get the interface and
hardware MAC mode information from the driver. This event
is notified from the driver on any connection / disconnection
of a specific interface.
This shall depict the mode (SCC / MCC / DBS) of the MAC
hardware at any given point of time.

Bug: 68349158
Test: Compiles

(cherry-picked from 0833d0fa4eac75ef172b09b51925ad0dafbfc8e7)

Change-Id: Ic9ac81315a9dd50053e927892eb5cf43b999b0d3
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
9b620802a517b1745255e7622b81c426918b7a2e 29-Nov-2017 Subhani Shaik <subhanis@codeaurora.org> WiFi-Hal: Clean up the return codes in wifi-hal

Use error codes from "enum wifi_error" throughout the wifi-hal.
Convert the error codes returned by kernel to "enum wifi_error"
codes appropriately before passing them to upper layers.

Change-Id: I62937e3c7870ba1b48b8aeedf38c89c2424532b4
(cherry-picked from
d54aafdb39c095318c7fecab6551e018297069ed)
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
c6e7a5e097683654a45099a22a11f9d266f6a3e3 25-Jul-2017 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Map kernel returned error code to wifihal error

Framework expects error codes of type wifi_error from wifihal.
Map the error codes returned by kernel to wifi_error value and
return the same to framework

Bug: 63971485
Test: Ran VTS tests on marlin.
Change-Id: Ifbb8cdb9c1177da0c6715ee2a63d4299b71f74e3
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
4a24d3f2c6595a5a9c25bbac4442f4ec953d11a3 21-Feb-2017 Subhani Shaik <subhanis@codeaurora.org> WiFiHAL: Remove unused param warnings in WifiEvent class

Compiler throws a warning when it finds unused parameters in
WifiEvent class. The parameters showing as unused are member
funtion arguments and the member functions are going to be
overriden in derived classes. It's not good to change the
prototype of the functions to resolve these errors.
So introduce a dummy define UNUSED() to use the parameter and
mute the warning by calling the same.

Change-Id: I0abe95e9490a1874968a506e38ccdac25edd9dd2
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
f58c12182ec6ff0a64c3ee7e2f8d3e6256751f16 17-Feb-2017 Srinivas Dasari <dasaris@codeaurora.org> WiFi-HAL: changes to support cld80211 family

wifihal debug infrastructure recieves host logs, firmware logs
and other debug stats from driver on NETLINK_USERSOCK.
Use cld80211 library APIs to receive the same inorder to migrate
from NETLINK_USERSOCK to NETLINK_GENERIC.

Change-Id: I3eca2ff02ababd3255e3876b2e247eb0d3071e67
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
3f2e1858bc47159058040bbdf3b5b2dfff1acf99 27-Oct-2016 Subhani Shaik <subhanis@codeaurora.org> WiFiHAL: Get Roaming capabilities

Get maximum number of blacklist bssids and maximum number of
whitelist ssids supported by driver

Change-Id: I0abfdd6f9c1c8d77ce5d16bd78a51483de72c947
Merged-In: I0abfdd6f9c1c8d77ce5d16bd78a51483de72c947
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
127a19b9711189fdee49643f035787c6ba59a8c3 16-Oct-2016 Subhani Shaik <subhanis@codeaurora.org> WiFiHAL: Get wifi capabilities during initialization

Get wifi driver capabilities during wifiHAL initialization and
save it locally. When framework queries for capabilities, these
are populated from wifiHAL itself instead of sending command to
driver

Change-Id: If0f7a0e5dd49135f1adc58f3047f385ef352eff9
Merged-In: If0f7a0e5dd49135f1adc58f3047f385ef352eff9
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
96cba44a19d233e56e5f3452ac841edb3eb3d017 12-Dec-2016 Paul Stewart <pstew@google.com> Merge "Update for libnl 3.2.25"
29f65dcaa8a536d6d9b558eec57f7752ff0073e5 11-Nov-2016 Paul Stewart <pstew@google.com> Update for libnl 3.2.25

NL headers have moved. Private headers are now in their own
subdirectory.

Bug: 32700211
Test: Compile, connect to WiFi, run "iw link"

Change-Id: I69fd006ebe3048538d563d1f91ccf15ebfabd8db
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
84228ea6c6aaabd4717dc8932f1b0a73b6105d88 22-Jul-2016 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Avoid race condition in RSSI monitoring commands/events

There is a possiblility while handling the wlan driver event
in the handleEvent of the RssiMonitor, the RssiMonitor stop
is also triggered. The stop monitor cleans RssiMonitor command
instance. In this case the handleEvent will crash as the object
is already deleted. To avoid this scenario moving the handler
creation under hal_info and adding checks to ensure that handler
is enabled/disabled prior to starting and stopping the monitor
command.

BUG: 29936203
Change-Id: Id0ab73313a03510f0b15b101e381112c4ace4aef
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
42f5dc2b5f632ce601d876fad18830de3ea38b89 24-Mar-2016 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Protect packet fate stats resources with mutex

Wifihal collects packet fate stats to a local buffer and the stats
will be copied to the buffers provided by framework in get() APIs.
Protect reads and writes to this buffer with a mutex to avoid
read from get() while write is going on in the event context.

BUG: 27799235
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
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/common.h
5c63f6a5f46ca95fe003bac5cfae2fc74a0b22a7 24-Jan-2016 Subhani Shaik <subhanis@codeaurora.org> Wifi-HAL: Remove CLANG Warnings and errors.

Enable LOCAL_CLANG flag. Remove CLANG Errors and warnings.
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
cdbde22981846f02ce30a940b22a3f3c44ebba0d 19-Jan-2016 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Support for packet filtering APIs

These APIs allow driver/firmware to start packet filtering
when framework enables filters

Change-Id: I10a5ef17e7266a520854061f0a2aa24a5f77db03
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
045a80359d42a8f4bc136b51e42c173d11344099 01-Oct-2015 Srinivas Dasari <dasaris@codeaurora.org> 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
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
d008ebbdb38a4723318a46f377aaf1766e2b8423 19-Aug-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Introduce a delay after country code set

Querying for valid channels immediately after country code change
may result in invalid channel list as kernel takes some time to
populate the channels in driver. A little delay(50 ms) between
set_country_code and get_valid_channels can solve the issue.

Bug: 22937052
Change-Id: If252ca9512be1cbc9d0b3e4fc80cb703657fc6f2
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
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/common.h
2d953ba14654205d59c3214217a1fa4e0cd0dc33 06-Aug-2015 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Removing usage of rand and srand functions

Usage of rand and srand function is a moderate security
vulnerability, thus removing the usage of this and replacing
with arc4random.

Change-Id: I5f24e96817bf3de09848f5626278ac65b00e07ed
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
864f2a6901fe97d268d44c053b9fede65a821c51 21-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Maintaining Gscan Event Handlers as part of hal_info

This commit removes the global usage of various Gscan event
handlers and makes it part of hal_info structure so that it gets
cleaned up as part of wifihal cleanup.
This commit also addresses the appropriate cleanup as part of
wifihal cleanup.

Bug: 22504320
Change-Id: I56ea636e6d47b5fcdd66a9e6db4e2a36e8dac8ba
/hardware/qcom/wlan/qcwcn/wifi_hal/common.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/common.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/common.h
e0d30a0148b9a6fc9d54cc190f26b5b069e93647 22-Jun-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi HAL: Implement changes required for routing GSCAN over LOWI

- With this change, Wi-Fi HAL first tries to direct GSCAN requests through
HAL<-->LOWI interface rather than directly sending them to the driver.
Routing is done based on version and capability check. If HAL<-->LOWI
interface is not supported, Wi-Fi HAL will then proceed the normal way
by sending commands to the driver.
-Moved the utility functions used to open LOWI shared library, retrieve
handler to LOWI APIs table, and initialize LOWI module out of RTT module
into the HAL common module.

Change-Id: Ib81ff69bec07e71ab4b4d553f1038e122b535ae6
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
fd4f062fe7681fd3e6d660e602d0202836ff6905 10-Jun-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: unblock poll using exit socket pair

When a cleanup request received in tx thread, it sets the flag
info->clean_up and exits. Actual cleanup happens in Rx-thread
context where as the Rx thread might be blocked in poll().
To unblock poll(), create a socket pair and send message from
Tx-thread context.

Change-Id: I90b6fd6c07ae77d50f791f70d3279352079e9d5e
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
ddae66e0dd0f0b30e8f8a7c8dc84a205f8a98f98 25-May-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi Hal: support to send offloaded packets and rssi monitoring

Add vendor command support to start and stop the following,
1. Send offloaded packets
2. Rssi monitoring

Rssi monitoring gets an event whenever the rssi of an ap breaches
the configured range. Provide the event data to upper layers
by calling the callback.

Change-Id: Ib2be8b3739e681080e65f3001e468e504a06fcc1
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
2e1716c72278e0c1f9165c65e7017551c6e6eb26 29-May-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi HAL: Add RBs to collect driver and firmware prints.

Add new ring buffer to collect driver prints and firmware prints.

Change-Id: Ibf0483a367bd8507c86b802e59f8184cd0a04731
/hardware/qcom/wlan/qcwcn/wifi_hal/common.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/common.h
76cff4cb3188c57d6043ead1932135346d1eb624 13-Apr-2015 Subhani Shaik <subhanis@codeaurora.org> WifiLogger: Support for generic NL socket handling and wake lock logging.

Registration of generic NL sockets to parse the messages
from the host driver. Support to address the wake lock
events logging as part of the Wi-Fi debug support.
API support for start_logging, get_buffer_status,
get_ring_data, and get_feature_set is also included.

Change-Id: I707a03d286e87d879dfd3ab906a4e6aa68721e4f
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
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/common.h
4af494a4400d1ee3944e227626d0452e033284d5 27-Mar-2015 Amarnath Hullur Subramanyam <amarnath@qca.qualcomm.com> Fast forwarding all the changes till tip of l release.

Change-Id: I2eabf5c9d14a33e11e6fefaf54d70ac972292a55
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
8abcd11e6ffef0ed6948497ff03df2c55abc5bb9 17-Jun-2014 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi Hal: Gscan implementation

Change-Id: I8e68d12968af8d6e9e0efbdbd25e66d1881debb4
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
a779e36f603bbb1b3cd82afeeb4d519d69f6c9fc 01-Jun-2014 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi Hal: Link layer stats implementation

Change-Id: I1643981fc0b5293f806f854edf245f36c1a1a752
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h
b573b879161949728b9cbdb0ef2dc8db32a47bfc 09-Apr-2014 Vinit Deshapnde <vinitd@google.com> Moving Wifi HAL to hardware

This change moves all Wifi HAL headers to libhardware_legacy; and moves
hal implementation under hardware/<vendor>/wlan. This way different
vendors will be able to tailor implementation to their drivers.

Change-Id: I55789bb6788ab694f4896aa36d76f7887b32dad6
/hardware/qcom/wlan/qcwcn/wifi_hal/common.h