Commit graph

325 commits

Author SHA1 Message Date
Amarnath Hullur Subramanyam
523a38f9c4 Wifi: Corrected NanSRFState enum type
The NanSRFState enum was incorrectly specifying NAN_DO_NOT_USE_SRF
as 1 which was not insync with the wifi firmware expected value
causing the case of active subscribe and solicited publish to fail.
This commit updates the enum type appropriately.

Bug: 30898004
Change-Id: I89f092964daeeb962b57ea474131bb58984a4d43
2016-08-23 16:10:11 -07:00
Subhani Shaik
720544bb0d [NAN] Add msg to indicate transmit followup queue is full
BUG: 29642700
Change-Id: I84ae1ec945c8795edad0dee2b0c575f3f633f6db
2016-07-28 08:13:53 -07:00
Subhani Shaik
7491031a5b Fix service instance Id in the data request
The service instance Id needs to match the handle received during
the match indication. The current match handle is 32bit,fixing
the service instance id.
2016-06-02 16:22:22 -07:00
Etan Cohen
666b6c2e2e [NAN] Add NAN data-path APIs
Bug: 26562610
Change-Id: Ibc2cc1cdc609c31deb77ea54d1ea94c1de2c558a
2016-05-19 14:44:41 -07:00
Subhani Shaik
240c551b37 Add indication for transmit followup
The status of the transmit follow up is not
notified, enabling an indication to notify
the status of transmit in progress.

Change-Id: I91fab766d7265ef6538c003ac454291efd0ec462
2016-05-16 13:28:36 -07:00
Subhani Shaik
923877c716 Add max transmit messages allowed in capabilities
Change-Id: Iebf9003d3ef8614f4943c17c7d5aec003d8ab8a4
2016-05-16 13:28:31 -07:00
Subhani Shaik
6092cea576 New NDP changes.
1) Remove schedule update API and data structures.
2) Add Nan Data Path error codes.
3) Provide channel configuration option.

Bug: 27916896
Bug: 26562610
Change-Id: Id2fbc8af398ee312b8c0dd61388d57cf2e7efcdd
2016-05-04 10:41:43 -07:00
Subhani Shaik
44c39504da Enabling Nan data path support [DO NOT MERGE]
Add APIs and data structures to support nan data path.

Change-Id: I60acc78f1d8a394cab511f4468dbc745a3107ddb
2016-04-01 13:21:33 -07:00
Jun Lim
13ef8430cd WiFi HAL: ND offload enhancement
Initial check-in of ND offload HAL API support

BUG=27598285

Change-Id: I9f2652de2bb0e22a25fe7c0ded6d1f5e6500de6d
Signed-off-by: Jun Lim <jun.lim@broadcom.com>
2016-03-10 15:26:06 -08:00
gautam
bf5b9bf486 Enabling responder for rtt
Added minor changes in API for RTT

Change-Id: Ib93305d3246ab501b8389f479d8193f353024f21
Signed-off-by: gautam <gautam.shukla@broadcom.com>
2016-02-29 19:44:25 +05:30
Mukesh Agrawal
4d0c8f7f68 Merge "WiFi HAL: add packet fate monitoring API" into mm-wireless-dev 2016-02-18 00:31:47 +00:00
Mitchell Wills
ded9b10b92 Merge "Remove REPORT_EVENT_CONTEXT_HUB gscan option" into mm-wireless-dev 2016-02-17 20:30:56 +00:00
Mukesh Agrawal
a5c9342b16 Merge "halutil: adding PNO driver events" into mm-wireless-dev 2016-02-17 19:25:14 +00:00
Sreenath Sharma
d1b3e1925c halutil: adding PNO driver events
Adding PNO driver events

BUG=26259438

Change-Id: Iad9ebc5c8b810fa1cf2389c1c2de0e765434fcf1
Signed-off-by: Sreenath Sharma <sreenath.sharma@broadcom.com>
2016-02-12 16:32:33 +05:30
Roshan Pius
5aa942ee3b Modify the wake reasons accounting API's
Modify the existing wake accounting reasons HAL API so that the
individual wake accounting reason array buffers are allocated
and freed by framework.

BUG:26902794
Change-Id: Iea74e61890f785107b05f9b4a3a58449ba449f0d
2016-02-11 14:16:15 -08:00
Mitchell Wills
45cd7dd198 Remove REPORT_EVENT_CONTEXT_HUB gscan option
Since all scan results will now be reported to the context hub this flag
is no longer needed.

Change-Id: I4ea3e88cc891be87660c12b7797819ea861cda26
2016-02-10 15:22:23 -08:00
Mitchell Wills
3febafdf46 Rename WIFI_SCAN_DISABLED event to WIFI_SCAN_FAILED
disabled was not very clear as to the actual meaning of the event and
left the implication that the scan could be reenabled.

Change-Id: I3f53b13a958cd35e93fde7bf9690d84744ffe63a
2016-02-09 11:40:48 -08:00
Etan Cohen
ee6c9fd926 Merge changes I2a4e674e,Ie65f095c into mm-wireless-dev
* changes:
  WiFi HAL: add additional connectivity events
  WiFi HAL: add driver memory dump API
2016-02-09 17:17:13 +00:00
Wei Wang
2ad893d001 Enable RTT Responder Role (3/4).
Change-Id: I14c7a13e423f1a6389449805c86c04d9a8d75440
2016-02-06 00:49:03 -08:00
Subhani Shaik
8056836755 WiFi HAL: add packet fate monitoring API
When a connection attempt fails, we're often unable
to determine the cause from existing log files. This
is because our log files only report the view from user
space. From this vantage point, we can't tell if,
e.g., an outbound frame was ever sent over the air.
(Or, for inbound frames: if they were heard by our
radio.)

To give ourselves a broader view, we add the packet fate
monitoring API. This API will let us determine, e.g.,
if an outbound frame was transmitted by our radio.

BUG: 26807558
Change-Id: I197729117f9086ece8cf00313bb9d3e7c0197b97
2016-02-04 17:18:26 -08:00
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