Commit graph

305 commits

Author SHA1 Message Date
Subhani Shaik
e7b148c146 WiFi HAL: add additional connectivity events
The current list of events supported by the wifi_connectivity_event
ring buffer omits some important events. Add three new events, so
that we can log the events for driver/firmware that support them.

BUG: 26832275
Change-Id: I2a4e674e5f7b52cc630eac32191fdc0b75d60422
2016-02-04 17:17:36 -08:00
Subhani Shaik
271bfa7c4a WiFi HAL: add driver memory dump API
Add API for dumping state of WiFi driver. This API
will be used in combination with the (existing)
firmware memory dump API, to identify inconsistent
state between driver and firmware.

BUG: 26803847

Change-Id: Ie65f095ca6be4203f8aad0b541c1903dc6cce1f5
2016-02-04 17:17:19 -08:00
Etan Cohen
86ac7fa992 Merge "Initial proposal of RTT HAL API changes for 11mc responder role." into mm-wireless-dev 2016-01-27 18:55:25 +00:00
Etan Cohen
8abbec7396 Merge "Wifi-HAL: New NAN Discovery engine changes" into mm-wireless-dev 2016-01-27 18:55:23 +00:00
Paul Jensen
fc78eb998e Merge "WiFi HAL API changes for WiFi packet filtering" into mm-wireless-dev 2016-01-27 13:07:48 +00:00
Wei Wang
8d44928ade Initial proposal of RTT HAL API changes for 11mc
responder role.

Change-Id: If1ea5fee99fb3405ae643e9192feda40d16a285b
2016-01-26 19:21:22 -08:00
Mitchell Wills
0b8832836b Merge "N WifiScanner HAL Changes" into mm-wireless-dev 2016-01-25 19:07:35 +00:00
Subhani Shaik
fd3a4acb3b Wifi-HAL: New NAN Discovery engine changes
1) Add nan_capabilities API.
2) Add support to enable NAN on a particular 2.4/5GHz channel.
3) Disable notifications to responses.
2016-01-21 12:45:57 -08:00
Paul Jensen
749a60e3d3 WiFi HAL API changes for WiFi packet filtering
Change-Id: I9b41755ac5baf2ec5f9d764d9f6c1c7b8551140a
2016-01-21 12:54:17 +00:00
Mitchell Wills
682adbf141 N WifiScanner HAL Changes
Merge on_scan_results_available and on_scan_event gscan callbacks
Indicate which buckets were scanned in results callbacks
Add report scan to context hub flag
Add ePNO scoring parameters

Remove unused/superceeded functions
 * ssid hotlist
 * ssid whitelist
 * gscan roam
 * bssid preference

Change-Id: Ie1df191c77e967d3f53d625be8cc5eb76607c08f
2016-01-19 11:44:50 -08:00
Erik Kline
00a0c3addf Add WiFi HAL wifi_configure_nd_offload() function pointer
Bug: 18085352
Bug: 26238390
Change-Id: Ic80e670971cf687febe02bae1fdfff8f8e40203c
2016-01-15 15:16:24 +09:00
Subhani Shaik
19316765f7 NAN API update
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) Add new NAN status types for TCA, Transmit, and invalid
   configuration of Band, DW/DB intervals, random factor
   update and scan period.
10) Add new fields in Publish/Subscribe Stats.
11) Replace wifi_request_id with transaction_id to have a
    common interface across all layers.

Bug: 26216681
Change-Id: Ife7cf7e7ed64d2f8db236f23919cd6412dc8b496
2016-01-07 07:52:52 -08:00
Randy Pan
712a265e97 WiFi exponential back off scan enhancement
Correct the comments on exponential back off scan formula.
Rename "exponent" to "base" to match the formula.
Also make the meaning of AP (Access Point vs. Apps Processor)
explicit for struct wifi_scan_cmd_params.

Bug: 26236392
Change-Id: I5873e1c8667dd964d125e37e2f0eeddec79eda13
2015-12-18 10:22:03 -08:00
Prerepa Viswanadham
deb60d5f89 Add wifi wake reason accounting - HAL API
Change-Id: Id321418feaf808a0c0a0fb08c12279f90fd31da2
2015-12-15 12:10:22 -08:00
Vincent Becker
efcc15accd Vibra: Remove vibrator AOSP implementation from libhardware_legacy
To enable the vendor implementation of the vibrator HAL, it is needed
to use hardware modules, a default one for AOSP and the vendor one.
The legacy implementation is no more needed so let's remove it.

This change is related to other changes in:
 - hardware/libhardware
 - frameworks/base

Change-Id: I844279f5535289f079d412fdc44c5cb3c9c1130c
Author: Vincent Becker <vincentx.becker@intel.com>
Signed-off-by: Vincent Becker <vincentx.becker@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: David Wagner <david.wagner@intel.com>
Author-tracking-BZ: 49760
2015-11-17 19:31:02 +00:00
Elliott Hughes
6d604a605e am 87175f0b: Merge "Stop being silly."
* commit '87175f0b54e82321b2aee958e8e89455a7027443':
  Stop being silly.
2015-07-31 16:09:56 +00:00
Elliott Hughes
df3845a712 Stop being silly.
Change-Id: Ifb26361dae95a08827fcac6e725ab8f7961c78aa
2015-07-31 08:54:02 -07:00
Jerry Lee
8af982d029 Clean up bad command implementation
b/22349265

Change-Id: I856a7d1fdfd9c0af42d2007d3b6235a38728bdbb
Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
2015-07-15 17:26:48 -07:00
JerryLee
c969430460 Add wifi offload feature: mkeep_alive
b/21405946

Change-Id: Id8651f56d36d142772218defc9f9521dac82624a
Signed-off-by: JerryLee <jerrylee@broadcom.com>
2015-06-24 14:15:49 -07:00
JerryLee
1de429dcaa Add a debuggability interface: stop logging
bug: 21730601

Change-Id: Ie92229023b76a5b4a8f5657543a0cd0cb8a19968
Signed-off-by: JerryLee <jerrylee@broadcom.com>
2015-06-24 11:41:10 -07:00
Ashwin
7b9ec3c42b Added RSSI monitor bitmask
Reserved a bit for RSSI monitor feature in the feature bitmask

Change-Id: Ied470f65c26bed25f7ccc4faa3ac8fbac1e74009
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
2015-06-24 10:57:59 -07:00
Vinit Deshpande
bd18526aa0 am e853591..90f8307 from mirror-m-wireless-internal-release
90f8307 wifi hal definitions for keep alive packet offload and rssi monitoring
2015-06-05 10:59:17 -07:00
Prerepa Viswanadham
90f830793d wifi hal definitions for keep alive packet offload and rssi monitoring
Change-Id: I37caa4696b2aac0f33ea9606eeeba174b6408f02
2015-06-03 13:40:44 -07:00
Amarnath Hullur Subramanyam
e853591968 Adding API for setting LCI/LCR information.
Change-Id: I69c928e77b367b727ce50bb365754c6abfdb3126
2015-06-03 03:26:22 -07:00
Vinit Deshpande
a64d14b766 am 1ee8d6b..e28e2bb from mirror-m-wireless-internal-release
e28e2bb Introduce REPORT_EVENTS_NO_BATCH flag for ePNO
ddcab17 WifiLogger: Add new events and tags
1abb250 change wifi Logging header
bd14c1c add pointers to new roaming HAL functions

Change-Id: I4645ceb57de34109d417bc9b84ff6d2cb202a78d
2015-05-13 18:39:30 -07:00
Vinit Deshpande
e28e2bbfda Introduce REPORT_EVENTS_NO_BATCH flag for ePNO
When GSscan and ePNO are being executed together, we
don't want APs on additional channels from ePNO to be
cached. Making this requirement explicit by adding
REPORT_EVENTS_NO_BATCH flag on bucket.

Change-Id: I61dcd608d3be8acb697508607dbe5077ebe836c0
2015-05-11 10:33:31 -07:00
Amarnath Hullur Subramanyam
ddcab1720d WifiLogger: Add new events and tags
As part of the Debug Framework development new events and tags
are required in G_SCAN. Additional generic tags are also being
added to support various events.

Change-Id: Ia5bc8dc1a5310818c3fcf3f9e166ffc5341f032c
2015-05-07 16:11:02 -07:00
Jerry Lee
1abb250450 change wifi Logging header
Allocate the memory at JNI layer. Thus, instead pass
    down ** , pass * down

Bug:20853404
Change-Id: I27cb2900989fb4f8261dc6e3283af101422d2ea7
2015-05-05 16:23:24 -07:00
Pierre Vandwalle
bd14c1c098 add pointers to new roaming HAL functions
Change-Id: I5094f7921018f0e8e1b6171e3b88ead9d00f95af
2015-05-02 16:26:05 -07:00
Prerepa Viswanadham
a9c3179c44 Merge commit '778ad70' into master_merge
Change-Id: I2928bb3e4c82d13caf3a1cd4b15f1d17969a610d
2015-05-01 11:02:19 -07:00
Chilam Ng
1ee8d6bb93 HAL changes for ANQPO
Change-Id: I60d418ec43beb4bb19e999634c5c3beecb476172
Signed-off-by: Chilam Ng <chilam@broadcom.com>
2015-04-29 15:42:11 -07:00
xinhe
5f06aa3bba Fix halutil build error
Change-Id: I3b4b90b6e4c99e7ace23998d439465c037deaadc
2015-04-24 15:00:02 -07:00
xinhe
7f8da1e692 Fix halutil build error [DO NOT MERGE]
Change-Id: I3b4b90b6e4c99e7ace23998d439465c037deaadc
2015-04-24 11:26:07 -07:00
xinhe
778ad703da TDLS enhancement HAL interface update
Bug:15152152
Change-Id: I8432177ac457c6559cf2c0d2a8bbc8ea8773a2a9
2015-04-22 10:48:20 -07:00
Vinit Deshpande
f2a1742cd5 am 93d458f..93d458f from mirror-m-wireless-internal-release
93d458f change wifi_logger header file
2015-04-14 15:06:10 -07:00
eccopark@broadcom.com
93d458f035 change wifi_logger header file
1) add wifi_set_alert_handler for the alert case
2) add wifi_set_log_handler for the ring data
3) remove unnecessary wifi_request_id for set commands
4) change to use ring_name instead of ring_id.
5) add wifi_reset_alert_handler
   add wifi_reset_log_handler

Change-Id: Ia9aaba050196af6684191cdcdfb0c1d21e917ed2
Signed-off-by: eccopark@broadcom.com <eccopark@broadcom.com>
2015-04-10 18:05:11 -07:00
Prerepa Viswanadham
8e8bf307a5 Merge commit 'b4442c3' into merge_work 2015-04-10 15:20:02 -07:00
Prerepa Viswanadham
a173c47170 Merge commit 'f0973c8' into merge_work 2015-04-10 15:18:27 -07:00
Prerepa Viswanadham
650b8af4ba Merge commit '2cae13a' into merge_work 2015-04-10 15:18:00 -07:00
Kevin Tang
b4442c37ff enhancements to rtt.h
Bug:19917983
Change-Id: Iebbc60f52b38875f661314908b72d17354f76b20
2015-04-06 12:49:54 -07:00
xinhe
e22ec31c48 Wifi HAL should not require stubs for all functions [Do not merge]
Bug:19949178
Change-Id: Icd0352aa5bb0fd0d6a686926294b76c7000154d0
2015-04-03 20:35:11 +00:00
xinhe
fed9d861cc Fix master build break
Change-Id: I1f73293bc986a50b4bb6c976132bf50c3c557141
2015-04-01 21:54:06 -07:00
Etan Cohen
408f8f2978 Merge "Merge commit '4c50959717fcf4b5bf10721b4dda0d2c2f423eaf' into merge" 2015-04-02 03:07:55 +00:00
xinhe
b5a0bc2d71 Add general stubs for wifi hal
Bug:19949178
Change-Id: I0acd06f56d32e567a0aadaf4c2833480288b63ab
2015-04-01 18:14:10 -07:00
Pierre Vandwalle
f0973c8918 fix type in header file
Change-Id: I829bf99c1c84b7474a85b4cd0dbe325f9ff22990
2015-04-01 12:36:32 -07:00
Etan Cohen
546cfd47e7 Merge commit '4c50959717fcf4b5bf10721b4dda0d2c2f423eaf' into merge 2015-03-30 18:17:34 -07:00
Amarnath Hullur Subramanyam
2cae13a872 Preallocating max buffer size for scan_result in wifi_cached_scan_results
Android framework should provide a buffer to the wifihal which needs
to be filled with scan_result. This commit will ensure that would
happen by passing a fixed max buffer size as part of each
wifi_cached_scan_results.

Change-Id: I005dd39f26be62694c46369e16d5f7f89f64021d
2015-03-28 18:41:41 +00:00
Vinit Deshpande
4c50959717 Merge "HAL API to offload passpoint match to wifi chipset" into m-wireless-dev 2015-03-27 21:51:11 +00:00
Vinit Deshpande
28e08ed5cf HAL API to offload passpoint match to wifi chipset
This change introduces wifi_set_passpoint_list and wifi_reset_passpoint_list
which implement the functionality of offloading passpoint match to
the chipset firmware.

Change-Id: I8a3730d4e23891b1dce47b8cf877e9b3c04ac279
2015-03-27 11:41:58 -07:00
eccopark@broadcom.com
3fabb28c4b net: wireless change the header of Logger
1) add the request_id in wifi_get_logger_supported_feature_set
2) Change the wifi_get_firmware_memory_dump API
 1) Normally the size of firmware dump is 700KB.
    Thus, Driver cannot send the data in one time because of limitation of skb length.
    In order to send such big data from kernel Driver,
    we need to send data using event continuously until we send the memory dump completely.
    In the event handler of hal, it will allocate the
    big buffer to store the data.
    Once event handler copy the data completely, event handler
    will call the function callback(on_firmware_memory_dump).
    So, upper layer has to free the buffer after handling the buffer.

Change-Id: If80b03ec8bd9349d952743e17a001c04096aac95
Signed-off-by: eccopark@broadcom.com <eccopark@broadcom.com>
2015-03-27 10:55:38 -07:00