History log of /hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5ed22f03f9d5bae2a4236098e94535bdb17d95da 28-Jul-2017 Subhani Shaik <subhanis@codeaurora.org> Wifi-Hal: Modify tx power API
am: 9aebcc18e7

Change-Id: I9ab17f51d46c54ea8fe58507195ed918c90f3dfb
9aebcc18e7228ae1aaf9b4ca8706cb2aa632c0b2 25-Jul-2017 Subhani Shaik <subhanis@codeaurora.org> Wifi-Hal: Modify tx power API

Modify the current tx power API to select predefined power settings
and apply the same from the BDF file

Bug: 62437848
Test: Manual tests
Change-Id: Ie0b5a837f4b4e221f7045b1276e02f510f22e256
(cherry-picked from 06dcdb8f68a3d5751e708cd431ae56e62f251e36)
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
12acb720a9370784f03a27fe42fef5413d134aee 27-Jul-2017 Subhani Shaik <subhanis@codeaurora.org> Merge "WiFi-HAL: Map kernel returned error code to wifihal error" into oc-dr1-dev
am: 6feb8575f2

Change-Id: I144bce707bd54ca850fb020bd75e979731218924
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/wifi_hal.cpp
a9fced9c474e3490030b3cac446647805074132c 11-Jul-2017 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Support to set tx_power_limits am: 1906cf3d29
am: 682b962975

Change-Id: I8129c6a48e90136f8648461f68ecc7af752b9784
1906cf3d2905098937bba98222aa1a525452d391 30-Jun-2017 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Support to set tx_power_limits

Framework sends tx power limits to wifihal. Forward the same to
WLAN driver with the help of nl80211 vendor command.

Bug: 62437848
Test: Compiles
Change-Id: I3073b98bacec33dc5ec544b8405330e820ed8bec
(cherry-picked from 4735b5927aeb8ef7a4fa18a6f694be86478d3beb)
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
a5e1dd544bb3b0bfd3dcdb9ae90ecf3c2ff003d3 26-Jun-2017 Jiyong Park <jiyong@google.com> Building libwifi-hal-qcom with BOARD_VNDK_VERSION

Add missing header dependency and include system headers such as
unistd.h and pthread.h explicitly.

Bug: 37342627
Test: BOARD_VNDK_VERSION=current m -j libwifi-hal-qcom

Change-Id: Id844f42e02f5b1c83a697862204a52e8cdb8198d
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
3f783bff01e76ef58615bafe1d61e9b67063baad 27-Oct-2016 Subhani Shaik <subhanis@codeaurora.org> WiFiHAL: Add API to enable/disable roaming

Add API to enable/disable firmware roaming.

Change-Id: I1eee5caf05bdabe79da2b6ad1997b13b6ac3e69f
Merged-In: I1eee5caf05bdabe79da2b6ad1997b13b6ac3e69f
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
7a64d494b72c8788b773157f265bf29a83e9c4e0 27-Oct-2016 Subhani Shaik <subhanis@codeaurora.org> WiFiHAL: Configure Roaming parameters

Configure blacklist bssid and whitelist ssid information

Change-Id: I348d504b55febeb3cc0328d85ad40882c6233d9e
Merged-In: I348d504b55febeb3cc0328d85ad40882c6233d9e
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
3561d2cc0bc4beeca22723dd7488f8af0c1211f4 27-Oct-2016 Subhani Shaik <subhanis@codeaurora.org> WiFiHAL: Isolate bssid_blacklist functionality to wifihal

To avoid duplication with roam APIs, blacklist_bssid changes
have been removed from gscan.h. So, do not expose
wifi_set_bssid_blacklist() API to framework and move
the wifi_bssid_params structure definition to wifihal.

Change-Id: I31f85b55a6ce6946ecf700bcfa4db440e3582d35
Merged-In: I31f85b55a6ce6946ecf700bcfa4db440e3582d35
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
96cba44a19d233e56e5f3452ac841edb3eb3d017 12-Dec-2016 Paul Stewart <pstew@google.com> Merge "Update for libnl 3.2.25"
8a932d240773ae845660fd1d4ede0a090dfae51d 14-Nov-2016 Etan Cohen <etancohen@google.com> [AWARE] Add NAN data-path HAL function pointers
am: e59a77eaa0

Change-Id: I228603ba9609d8b15e54cb7966f0a895ce307306
e59a77eaa098a10902d91dd8e8ef220ab529bd43 19-May-2016 Etan Cohen <etancohen@google.com> [AWARE] Add NAN data-path HAL function pointers

Bug: 26562610

Change-Id: Ia4ed05ba09d0cc467bd0f76b494e323f40eba617
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
76035eec6ec9ced54716dbbffb8ec9a2927dc655 30-Aug-2016 Christopher Wiley <wiley@google.com> Do not start/stop the driver in HAL start
am: f71b2eb448

Change-Id: I06ead37bc4b8f65031d7d39b9e0ea87334da97e1
f71b2eb448ef4f1052211ed0f800e10e8469f2dc 15-Jun-2016 Christopher Wiley <wiley@google.com> Do not start/stop the driver in HAL start

The framework expects to control the state of the driver. The HAL
should not be touching it. This code is also a noop on all supported
nexi, where the driver is always started.

Bug: 29321445
Change-Id: If431b278222ca06a29232874bd0c9870bd0be785
Test: Compiles, wifi continues to work on bullhead
(cherry picked from commit 236a52b136b7fdd802389ef1687bd3df37c1adb6)
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
2288a41b30e45c2e0e633043f31678eee1103d2c 25-Feb-2016 Subhani Shaik <subhanis@codeaurora.org> Wifi-Hal: Set nl socket's local port with nl api

The nl library maintains one local port pool for nl sockets, one
port is occupied when new nl socket is allocated and it needs to
released, otherwise the nl socket allocation will fail since no
local port can be used in nl socket allocation.
Wifi hal sets own local port for nl socket directly without
calling api and causes leak.

BUG: 30350620
Change-Id: I4bb1fd2c352c73cc246a2ba7f837e395f022651f
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
0919dfde526ab1f2996334835cbd176906e89d0e 01-Jul-2016 Srinivas Girigowda <sgirigow@codeaurora.org> WiFi-HAL: Fix CLANG warnings

Fix CLANG warnings.

Change-Id: If07194f34abc44e1e58e8b38af59ec705a62ce55
CRs-Fixed: 1015162
Bug: 28825972
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
fc768f88a159e94f013a1bbbed5754245062f121 13-Apr-2016 mukesh agrawal <quiche@google.com> Wifi-HAL: promote some messages from INFO to ERROR

Originally part of
https://partner-android-review.googlesource.com/#/c/558740

BUG=28174258
TEST=compile

Change-Id: I0ec26dcf0cffeb7c8d90461dfcddbc419cfaef99
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
b5841f6c19ec690b1fb032a0aee63d5300b19ce4 13-Apr-2016 mukesh agrawal <quiche@google.com> Wifi-HAL: demote some messages from DEBUG to VERBOSE

Originally part of
https://partner-android-review.googlesource.com/#/c/558740

BUG=27698661
TEST=compile

Change-Id: I7264dd7a0095c24bf1f183c9f929bb79ef095703
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
3ff76888e8710c8d3d7153f3dbc1c9057effa183 13-Apr-2016 mukesh agrawal <quiche@google.com> Wifi-HAL: demote some messages from INFO to VERBOSE

Originally part of
https://partner-android-review.googlesource.com/#/c/558740

BUG=27698661
TEST=compile

Change-Id: I04a6dd680b23322a5382ff144d6ea533f37be2f8
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
48c79d6a55c49d4218f99150682428e6f1fe699f 13-Apr-2016 mukesh agrawal <quiche@google.com> Wifi-HAL: remove some calls to ALOGI

Originally part of
https://partner-android-review.googlesource.com/#/c/558740

BUG=27698661
TEST=compile

Change-Id: I6c8d3e09eedd9675439d6a5a5ad17eabc16416db
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
ff39dc35d458da87b29d339cd35d9d4379f3a00b 13-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "WiFi-HAL: Protect packet fate stats resources with mutex" into nyc-dev
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/wifi_hal.cpp
3ce83cbcbcfe48af8f19da7142da9c97f061ae9a 22-Mar-2016 Subhani Shaik <subhanis@codeaurora.org> Wifi-HAL: RTT API Enhancement

RTT API's are modified to allow responder to indicate the RTT
preamble which can be advertised in BLE Beacon. So, modify
RTT HAL to comply with new API.

BUG: 28071418

Change-Id: I04062e9c603c0f00cc90880f0d6a040b1fe8abe5
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
15edefc411e5d4afe85c0ca404e93f2346fde5b1 01-Mar-2016 Subhani Shaik <subhanis@codeaurora.org> Wifi-HAL: Avoid illegal memory access in wifi_set_packet_filter fn.

In requestResponse(), nl message is getting freed after receiving
a response for the nl message, and wifi_hal is trying to fill the same
message again in wifi_set_packet_filter() for next fragment of
data. This is causing an invalid memory access. To avoid this,
destroy the object after sending each fragment to driver and
allocate a fresh object which in turn creates nl message and
initializes it.

BUG: 27595799
Change-Id: I654203a55206a5efe820146bde43c20b76b55880
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
0bb13c42161821fbf37b1fc8505f54918b4753d4 16-Mar-2016 Mukesh Agrawal <quiche@google.com> Revert "WifiHal: Address Debug framework bugs and misc issues"

Will land more targeted CLs, with more detail about what's being fixed.

This reverts commit c193fd5cb051a566bd1a0e9fd565504cab46ff23.

Change-Id: I95d4856ffa69c575790927a6cc90e6c246a39e67
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
c193fd5cb051a566bd1a0e9fd565504cab46ff23 14-Mar-2016 Subhani Shaik <subhanis@codeaurora.org> WifiHal: Address Debug framework bugs and misc issues

Fix multiple issues
1) Extract wmsg length from nlmsg_hdr with ntohs()
2) Do not free local frame_content in get()
3) Avoid illegal memory access in wifi_set_packet_filter fn
4) Updating new enums related to WIFI Configuration

BUG: 27502434
BUG: 27595799

Change-Id: I369a6b278f3e587f07d3a57be97b61eda658104d
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
e07632b3a892c6e927a7fb2bce7e39b9f2a01281 01-Feb-2016 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi-HAL: Support for wake reason stats API

This API gives wifi wake reason accounting info like:
- Total cmd event wake count
- Total count of driver fw wake
- Total data rx packets, that woke up host

Change-Id: Ied9a7b97d363ad0b224dcd0c0aa26d1b970ffd4f
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
cf87d1926bd4d348ce4f0362f2475b9ab8a14fa7 01-Mar-2016 Wei Wang <weiwa@google.com> Fix a typo in get_available_channel API.

Change-Id: Id6bf290cc69c7a3c192259231845055eb72da3c1
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
f8be5aab9878741a7c65f4e2a1a63de5ff8997aa 09-Feb-2016 Etan Cohen <etancohen@google.com> Merge changes I6ac688a1,Ia9a4c6fc,I73b1941a,I23100918 into mm-wireless-dev

* changes:
WiFi-HAL: Use separate enum and attribute to get bus size
WiFi-HAL: Support for timeout and resource failure events
Wifi-HAL: Support for wifi_get_driver_dump API
Wifi-HAL: Remove CLANG Warnings and errors.
aea1153a84bcab539eeb6400a465a036ddc846fd 20-Jan-2016 Subhani Shaik <subhanis@codeaurora.org> Wifi-HAL: Support for wifi_get_driver_dump API

Add support to collect driver memory dump
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
06363e7d8dfa8fd4715973df08d871d3a760e3d2 26-Jan-2016 Wei Wang <weiwa@google.com> Enable Rtt Responder Role (4/4).

Change-Id: I280422e5e160b9db741a37b6bb185ec79c155f91
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
c33719ad7ac1e63642cbfe4adc20091b5655d0ca 19-Jan-2016 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Support for Neighbor Discovery offload API

Add vendor command support to enable/disable Neighbor
Discovery offload in driver/firmware

Change-Id: I6295245c0749269f014e5245e8b3b17dff53c177
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
17ee741489e21713642ac29853da176bbd5c4698 18-Dec-2015 Subhani Shaik <subhanis@codeaurora.org> Wifi-Hal: Support new Nan API changes

Support the new changes in Nan APIs
1) Support Nan capabilities
2) Add ability to disable indications from fw
3) Pass 2.4g and 5g channels values during nan enable
4) Change func name from UnMatchInd to ExpiredInd
5) Change the variable value to u32 in NanResponseMsg struct
from u16 to match the FW change

Change-Id: I30e8b4c9d7496d9f451f868783b72d13fa992b95
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
0562eeb882b461595155d6ef3e10e563b0e451f5 06-Jan-2016 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Support for gscan and EPNO enhancements

This commit supports the below changes as per new gscan/EPNO
specification,
1. Few new parameters added to the EPNO configuration and an API to
support resetting the EPNO.
2. Remove support for the below deprecated APIs,
1. wifi_set_ssid_white_list
2. wifi_set_gscan_roam_params
3. wifi_enable_lazy_roam
4. wifi_set_bssid_preference
3. Add Buckets scanned parameter to gscan cached results
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
c19f715ece840e705749d2dfd1857210d7e31897 21-Sep-2015 Srinivas Dasari <dasaris@codeaurora.org> WiFi_HAL: Fix static analyzer findings

This commit fixes few issues found by static analyzer.

Change-Id: Ia22718b9545e1e56a784e28a1b2582cb489b8cc9
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
a3c2c8f1bfcddd50047c8ad29e535a54e99acf62 28-Oct-2015 Subhani Shaik <subhanis@codeaurora.org> Wifi-Hal: NAN feature enhancements

Changes related to NAN APIs and structures.
1) Remove NanHeader
2) Replace wifi_handle with wifi_interface_handle in NAN APIs
3) Add publish/subscribe id
4) Remove match_handle and name it as requestor_instance_id
5) Add NanPublishResponse/NanSubscribeResponse structures
6) Remove user_context
7) Add appropriate enums
8) Remove unused structures
9) Removed references for NAN_2.0
10) Sync up with the latest FW changes wrt TLVs.
11) Add support to TransmitFollowUp error relay
mechanism to user space.
12) Replace wifi_request_id with transaction_id to have a
common interface across all layers.
13) Create new nanCommand instance for NAN request APIs

Bug: 26216681
Change-Id: Ieaccdf94f6a84d86f3d9278e2d2e8825c4648ed9
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
19f0819fa32aec7c330b4d7ca962700230c8acb1 10-Sep-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Cleanup unnecessary logs

Cleanup unnecessary logs from llstats, gscan, rssi monitor
common and tdls modules.

Change-Id: If66a8f61b11a101d84546a06514aeb5e0d8fcbfa
Bug: 23942132
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
7325952cbfc88103197937b05c17c6e487e98cd9 19-Aug-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi-HAL: Avoid Gscan race-condition between events/commands

We are seeing a race-condition when the event handler function
is getting events from the driver and at the same time cleanup
is also happening from the command side. Due to the race-condition
we are seeing a crash. This commit addresses this by ensuring that
the cleanup of event handler happens only when wifihal cleanup is
happening and also would happen in the same context in which events
are processed.

BUG: 23277168
Change-Id: Ib0cbcbd23e2c0424d6f81597685d085d95df340d
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
5d2151fc5acf814358412beeaf367ad30e5f8ed4 07-Aug-2015 Subhani Shaik <subhanis@codeaurora.org> WiFi-HAL: Add missing handlers to function table

There were few handlers missing initialization in the function
table which are added as part of this commit.

Change-Id: I136879fd6471b5d424ba86fbe085a66313bc2d6a
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
5946d9d7ee49ff875075fa55eaa32c62841a6ed3 31-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Reducing the log prints in case of gscan

In case of report_event being 2 each scan result is forwarded
resulting in lot of logs, reducing the logs for the same.

Change-Id: I0002939e529fb1eb9bc03895efd3bc4d3fcb64c6
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
637a6f7d11d04193356ec12a95712e4f2bfd20a0 14-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Add reset_log handlers to function table

Add reset_alert and reset_log handlers to function table to
facilitate the upper layers to call these APIs using the
callbacks.

Change-Id: I33e40a5ffe563e1dd19f63287270a8031bb35a64
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
3d926074fb15a3f8b99f3d19c52b43bcb4808fec 08-Jul-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi-HAL: Increase socket buffer size of event_sock

It was observed that during reportevent 2 case the scan status
event was lost since there are multiple back to back fullscan
event coming. This commit increases the buffer size and also
removes some unnecessary gscan logs.

Change-Id: Id35ef90dc435ec9d4a0d56c8bfc20d02eb7b8abc
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
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/wifi_hal.cpp
d0d336f8cfaa370fc8f9ff7426ffba0036063c61 24-Jun-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> WiFi-HAL: Maintain request id in the object of wifiVendorCommand

We may need request id in WifiVendorCommand class to compare with
the request id received in asynchronous events. Maintain the
request id received from invoker in the object of
WifiVendorCommand

Change-Id: I6514c912dc41212dc22703af11220378d19551bc
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
a4384b719d4945cbdd8d2adff142d7775f2ec81a 24-Jun-2015 Vinit Deshpande <vinitd@google.com> Clean 'invalid suffix on literal' warning

Change-Id: Ia8a57868d2de4daf688c9297d09854559ac353d9
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
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/wifi_hal.cpp
c12598185d7a9ea4571b9fb2deec2deb456efd1b 27-May-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi HAL: Remove sending registration msg to driver

Don't send registration message to driver which was required
earlier in order to receive diag events from driver. Now the driver
is sending all events by default.

Change-Id: I51c68ff5aaa37829372c5194161e9db8e459d50e
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
d3ebf0d2f640807b4245ea6546adc4983859a5e3 15-May-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi-HAL: Enable connectivity events

As part of the Debug Framework support enabling the connectivity
events. The infrastructure support to parse the fw diag events
is also enabled.

Change-Id: Ia5dde51967969ae453cd0f1bd41811aff6fe772f
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
d8ed4ebe4c7e317ae378e297d61ad236d0a2a079 06-May-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wifi-HAL: Changes as per Logging Header changes

There are few api signature changes in wifi_logger.h.
This commit takes care of changes as per these api changes.
Also updating the wifi_vendor_hal_func_table appropriately.

Change-Id: I8b2f22ec6ddde8e1652c21bcea6b79cae3efff34
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
6988c4d041b04106a2325a075b2b69a82c1cc6c0 05-May-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi HAL: Add support to get tdls capabilities

Issue a vendor command to get the tdls capabilities from driver.
Parse the response message and get the capabilities.

Change-Id: If1dba8cb5dda9e57d010b1af314caf53542bd9b6
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
ae226e1d745747a0b19d23c147a82197085d8cac 01-May-2015 Amarnath Hullur Subramanyam <amarnath@codeaurora.org> Wi-Fi HAL: Updating the wifi_hal function table

Change-Id: I758d5a4ee456eee1636e258e636a55677a422ddd
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
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/wifi_hal.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/wifi_hal.cpp
4627e3a331ff3a390ee03c44ae9602f178c1fa6c 24-Apr-2015 Subhani Shaik <subhanis@codeaurora.org> Wi-Fi HAL: Wifi HAL cleanup and fix for memory leak

Providing fix for memory leak in wifi_initialize along
with some cleanup

Change-Id: I3d78839b6d0892a090a2f554b05bf249fa7e56b7
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
5ce8c15e2d505392f9fa7933101fe3a89b129cfc 17-Apr-2015 Subhani Shaik <subhanis@codeaurora.org> Wi-Fi HAL: Gscan Wifihal log enhancement

This commit addresses additional wifihal log enhancement with respect
to Gscan features. This includes
a) logging of the input parameters,
b) using __FUNCTION__ macro to only have function name logged instead
of the __func__.
c) Minimized developer level logs.

Change-Id: I7c2af197e012f7aa3abca5e06c3036566d172f97
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
243e16acc51cda0f4d405acef4a22b549502ab61 15-Apr-2015 Subhani Shaik <subhanis@codeaurora.org> Include headers to define implictly used functions

Change-Id: Ia09b445e8568d3fc10f3d81011ad773576722369
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
ebd0927520b5a5190c4b7f1b4e98fcfaea79ba6e 08-Apr-2015 Ahmad Kholaif <akholaif@codeaurora.org> Wi-Fi HAL: Fix synchronous req/resp for GScan APIs

Instead of using requestEvent(), Wi-Fi HAL needs to use requestResponse()
and block waits for a synchronous response from the driver. This applies
to all commands including those with data payload.

Change-Id: I67939f4e01b0655214ec03040e806ae78f658758
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
4963b55c478c0d07ca95da64681a718fb2ce666f 07-Apr-2015 Ahmad Kholaif <akholaif@codeaurora.org> Fix build errors on Qualcomm's Wi-Fi HAL[DO NOT MERGE]

Change-Id: If3adb332ecda1005cc7db711140578a78680a498
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
5c8e437f20a298ff38473ae2cf19cd1e50524fd7 06-Apr-2015 xinhe <xinhe@google.com> fix the comments of Qualcomm HAL stub [DO NOT MERGE]

Change-Id: I48ac174f93ca85f0f4782fef5d5208bc9f06f43b
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
2146d91758836e01d8081eb10c1ceef9b7589580 03-Apr-2015 xinhe <xinhe@google.com> Wifi HAL should not require stubs for all functions [Do not Merge]

Bug:19949178
Change-Id: I77b914d900c0dc75d5bd04d0a547f03053288afc
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
03e973c23816225f1043f2a50f5ad010d56c7916 02-Jul-2014 Vinit Deshpande <vinitd@google.com> RTT support in halutil

Need stubs for RTT apis to avoid breaking mako/msm8226 build.

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

Change-Id: I8e68d12968af8d6e9e0efbdbd25e66d1881debb4
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp
4493578b0985b1a2c3c4704e0d178a9468e68e52 18-May-2014 Vinit Deshpande <vinitd@google.com> Add stubs for link layer API

This fixes the build issues.

Change-Id: I019d7a44997b64a2ad82c02fba40353dac5db7a7
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal.cpp
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/wifi_hal.cpp