summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal/common.cpp
AgeCommit message (Collapse)Author
2021-07-12wifihal: Fetch lowi caps again if not obtainedVinay Gannevaram
lowi server capabilities are fetched from fw after lowi initialization and wifi is turned on. When wifihal queries caps before wifi is on, it will receive no capabilities. Hence wifihal should retry for capabilites before sending lowi request CRs-Fixed: 2986700 Change-Id: Ic8871794dbdd2d0a876449eb8116bad6095257bc
2020-12-10Resolve compilation error for fib_rule_port_range with fib_rules.hSreeramya Soratkal
New members of type fib_rule_port_range are added in the structure rtnl_rule in netlink-private/types.h. This causes compilation error corresponding to the structure rtnl_rule of netlink-private/types.h which is included in wifi_hal. Update the header dependency in wifi_hal to include fib_rules.h to resolve compilation issues with fib_rules_port_range. CRs-Fixed: 2836075 Change-Id: I83a7c55ee96f74a80c59caaa0e8a3437eaec60c0
2019-05-02wifi-hal: Map kernel error ENOBUFS to wifi-hal error codeAnkita Bajaj
Kernel error ENOBUFS is not mapped to any defined wifi-hal error code. Map ENOBUFS error to WIFI_ERROR_TOO_MANY_REQUESTS wifi-hal error. Change-Id: I1d372a70a713a25505849da1a6716650007a7f64 CRs-Fixed: 2439902
2018-06-21WiFi-Hal: Cleanup unused command register/deregister codeSrinivas Dasari
wifi_register_cmd and wifi_unregister_cmd APIs are not used anymore and can be cleaned up Bug: 74215851 Change-Id: I55819a8dfa40607c1e94dfa649b5bd26ed4cc4d9 CRs-Fixed: 2264462
2018-01-31WiFiHal: Bring wlan-aosp.lnx.4.0 in sync with AOSPSrinivas Girigowda
Bring wlan-aosp.lnx.4.0 in sync with AOSP label PPR1.180125.002. AOSP git history. 959ab4e Wifi-Hal: Add support for NAN debug commands 5c8b7a4 Wifi-Hal: Add support for new NAN debug commands 543806c Add -Wno-error to compile with global -Werror. e37749f Wifi-Hal: Modify range measurements from cm to mm 0a8de31 Wifi-Hal: Modify range measurements from cm to mm Change-Id: Id225b5b16d403ceff77a05215050ade0e0e0e6d6 CRs-Fixed: 2180470
2017-09-11WiFi-Hal: Clean up the return codes throughout wifi-halSrinivas Dasari
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: I84bbaaf6dacde78508deed2db8dbffd9e8b3f974 CRs-Fixed: 2081875
2016-12-12Merge "Update for libnl 3.2.25"Paul Stewart
2016-11-11Update for libnl 3.2.25Paul Stewart
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
2016-07-26WiFi-HAL: Donot dump empty vendor data bufferSubhani Shaik
While creating nl messge with the help of WifiVendorCommand.create(), there is a log to dump the data being sent. This log is getting printed for most of the wifihal messages. But actual data gets filled in the nl message later. So don't dump if the buffer is empty. BUG: 28825972 Change-Id: Ifac90b092e63fc5456f13e9f94ed0143b008b5ec
2016-04-14Wifi-HAL: promote some messages from INFO to ERRORmukesh agrawal
Originally part of https://partner-android-review.googlesource.com/#/c/558740 BUG=28174258 TEST=compile Change-Id: I0ec26dcf0cffeb7c8d90461dfcddbc419cfaef99
2016-04-14Wifi-HAL: demote some messages from INFO to VERBOSEmukesh agrawal
Originally part of https://partner-android-review.googlesource.com/#/c/558740 BUG=27698661 TEST=compile Change-Id: I04a6dd680b23322a5382ff144d6ea533f37be2f8
2016-04-14Wifi-HAL: remove some calls to ALOGEmukesh agrawal
Originally part of https://partner-android-review.googlesource.com/#/c/558740 BUG=27698661 TEST=compile Change-Id: I4b94a1e8e0d155fb78e128e9ffe29b050fba9ecc
2016-04-13Wifi-HAL: remove some calls to ALOGImukesh agrawal
Originally part of https://partner-android-review.googlesource.com/#/c/558740 BUG=27698661 TEST=compile Change-Id: I6c8d3e09eedd9675439d6a5a5ad17eabc16416db
2016-04-13Wifi-HAL: remove some calls to ALOGDmukesh agrawal
Originally part of https://partner-android-review.googlesource.com/#/c/558740 BUG=27698661 BUG=27835354 TEST=compile Change-Id: I4bc744370131af1058cbbb634f92579ed1b8283f
2016-03-04Wifi-Hal: Remove debug messagesSubhani Shaik
Remove unwanted log messages in the Wifihal code. Change-Id: Ib87db2f1714a858e6a2ae0d71d0cdb3bc028ddef BUG=27357943
2016-01-20Revert "WiFi-HAL: Donot initialize Lowi module for gscan calls"Srinivas Dasari
This reverts commit a55479d081d7a1c19a8eaca3eebfa480542c5ca3. Change-Id: Ic3b72fcc5065f6300b0d5e5bbbec38d6b3eb2fcd
2016-01-20WiFi-HAL: Add support for beacon_received connectivity eventSrinivas Dasari
Allow start logging for connectivity events and parse the received beacon event. Write the parsed data to ring buffer. Change-Id: I8b9e77c5533dd8d4876642e901a92808cc7e159d
2015-09-11WiFi-HAL: Cleanup unnecessary logsAmarnath Hullur Subramanyam
Cleanup unnecessary logs from llstats, gscan, rssi monitor common and tdls modules. Change-Id: If66a8f61b11a101d84546a06514aeb5e0d8fcbfa Bug: 23942132
2015-08-26WiFi-HAL: Update handler if an event is already registeredAmarnath Hullur Subramanyam
If an already registered vendor event tries to register for the second time, update the call back function but do not add a new entry to the handlers. Bug: 23483365 Change-Id: I93446721b2e75b768c8f7b40583e7ac7d1e5c282
2015-08-07WiFi-HAL: Donot initialize Lowi module for gscan callsAmarnath Hullur Subramanyam
Lowi module initialization is causing crash and this happens as part of gscan functionality. Since, Lowi is not processing GSCAN functionality now do not initialize Lowi module to avoid the crash. Bug: 23004442 Change-Id: Ibadd2f78eb2511054c671fa7434ee3d024e45fc9
2015-07-09Wi-Fi HAL: Implement changes required for routing GSCAN over LOWIAmarnath Hullur Subramanyam
- 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
2015-06-11Wi-Fi Hal: support to send offloaded packets and rssi monitoringAmarnath Hullur Subramanyam
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
2015-03-27Fast forwarding all the changes till tip of l release.Amarnath Hullur Subramanyam
Change-Id: I2eabf5c9d14a33e11e6fefaf54d70ac972292a55
2014-07-10Wifi Hal: Gscan implementationAmarnath Hullur Subramanyam
Change-Id: I8e68d12968af8d6e9e0efbdbd25e66d1881debb4
2014-07-10Wifi Hal: Link layer stats implementationAmarnath Hullur Subramanyam
Change-Id: I1643981fc0b5293f806f854edf245f36c1a1a752
2014-05-07Build fixes for changes ported from KWDVinit Deshapnde
Libnl is now shared and needs different headers. Change-Id: Ib56264566e17f5cdbd63ee6e0af4e5e70f63e40d
2014-05-07Moving Wifi HAL to hardwareVinit Deshapnde
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