Provide configuration support to set sid on the subscriber side sync and
discovery beacons as part of NAN enable and config request.
(cherry-pick of commit b2c4b3825a5b1ef4713417538755b04225b2b53d)
Bug: 35195516
Test: integrated (sl4a) tests pass
Change-Id: I20548928a9ad81e8d3154eb5b982fd19add7659c
Add new parameter second ndp channel freq in the stats response
message to support the certification efforts.
Change-Id: I9011bd7d4c5f34a15fbfe871b67d255807df8347
Modify publish/subscribe/Data Initiator/Data Indication messages
to accept either PMK or Passphrase key information. Also, provide
a new parameter service name in Data Initiator request and
Data Indication response to generate PMK from passphrase and
service name for out of band requests.
Bug: 35866810
Test: TBD
Change-Id: Ibe572928e892bbd10be79dc2e09911ada348e89d
Add a constant to make the no-cipher specification explicit.
Bug: 35387576
Test: integrated (sl4a) tests pass.
Change-Id: Ia272cad70cd4bedbdbdb4d2c856167305f747a30
Left deprecated field in place since it broke
dependent projects. Dependencies cleaned-up -
remove field.
Bug: 27914592
Test: build only requirements since unused field
Change-Id: I910ffd811ddbca9b83a0190eaede2a58b36fedc8
Roaming enhancements to avoid critical sections between
firmware based network selection and framework based network
selection. Also remove blacklist_bssid changes from gscan.h
to avoid duplication.
BUG: 32883971
Test: Build.
Change-Id: I4c851e9c1969123427f2a92e729b9a5b6fd5b8d8
Merged-In: I4c851e9c1969123427f2a92e729b9a5b6fd5b8d8
By default discovery MAC address randomization is enabled
and default(maximum) interval value is 30 minutes(1800 seconds).
Nan enable and config can specify the interval value in seconds.
Value of zero disables discovery MAC address randomization.
Bug: 33386762
Test: builds
Change-Id: I5dc10db8535227575f96635604665b6f52f8d507
1) Include security params in Publish/Subscribe/Data Request/Response
Structures.
2) Include security params in MatchIndication.
Bug: 33552694
Test: builds
Change-Id: I7a3af05b17f18040b311cf861c8dc0a0bba99d7d
As part of the Power save enhancements:
1) The device level DW intervals to be configured through config API.
2) Awake DW intervals for publish and subscribe(period parameter)
can be configured using the interval values 1, 2, 4, 8, 16.
Bug: 33552536
Test: builds
Change-Id: I3177ba13c861275a5860b825d3c466e0643bcec1
Configure the Service Non Auto responder mode.
Accept all subscribes is the default firmware behavior.
If Non Auto response is configured in the Publish API,
firmware notifies the framework and expects a response
from the Publisher.
Bug: 33209958
Test: integration data-path (sl4a) tests passing
Change-Id: I78f096d0d046f3bd39421269c79b9012a3a3cc0e
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
Remove obsolete pieces from libardware_legacy that were related
to QEMU (i.e. running the system image under emulation) but are
no longer used.
Note that qemu tracing isn't implemented by the emulator anymore
(and has been for a long time).
BUG=25875346
Change-Id: I2593fe9f90241af9c5076fa248c30e0d8ab5d663
Most of this code is device independent, and we're parameterizing the
parts that are not in a way which makes the logic device independent.
Bug: 29321445
Change-Id: Ice9f16d966275378d4fc5a5201eca82f2ea67c5e
Test: Compiles, can associate to an AP.
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.
The status of the transmit follow up is not
notified, enabling an indication to notify
the status of transmit in progress.
Change-Id: I91fab766d7265ef6538c003ac454291efd0ec462
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
Adding a flag to indicate if the device supports tx power level stats
reporting.
While there,
1. Fix the 2 macros used to determine if a feature is supported or not.
2. Increase the number of tx levels to 256
BUG: 27969673
Change-Id: I314648cfaa7755dc48c1f790193c96254b4db691
Add a max tx level which the framework uses to limit the array and is
needed to guard against unitialized value in |num_tx_levels|.
BUG: 27227497
Change-Id: I2438bc1536c65a2c6230bfd6e1267532d9653c8b
Modify the existing radio_stat structure to add time spent in each
tranmission power level.
BUG: 27227497
Change-Id: Ifba9f22bc7a404161ae9124c787854ed3431cb8d
cherry-picked from:
https://partner-android-review.googlesource.com/#/c/543388
Given that there is an explicit enumerated value to indicate
a drop due to lack of buffers, we shouldn't recommend using
the OTHER value for out of buffers.
BUG=27352446
TEST=compile
Change-Id: Id4fdbf530ed9a99e2b9693acb649137d598abf85
For consistency with other packet_fate functions,
wifi_start_pkt_fate_monitoring() should name the first
parameter as |handle|.
BUG=27409524
TEST=compile
Change-Id: Ic6df01e7e80f79eaf5653374106ba6e6a7609e31
Initial check-in of ND offload HAL API support
BUG=27598285
Change-Id: I9f2652de2bb0e22a25fe7c0ded6d1f5e6500de6d
Signed-off-by: Jun Lim <jun.lim@broadcom.com>
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
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
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
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
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
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
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
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
Reserved a bit for RSSI monitor feature in the feature bitmask
Change-Id: Ied470f65c26bed25f7ccc4faa3ac8fbac1e74009
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
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
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
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
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>
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
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
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>
1) define entry type for parsing the data easily.
2) the payload will be attached at end of the wifi_ring_buffer_entry
3) added the feature set
4) remove duplicate wifi_get_ring_data
5) add request_id in wifi_start_logging
6) change the pointer of buffer to double pointer of buffer
in wifi_get_ring_buffers_status and wifi_get_firmware_memory_dump
wifi_get_firmware_version and wifi_get_driver_version
to indicate the buffer supplied by Application layer
Change-Id: I5dc2811155e7efa058a0c3414036461de3e45d98
Signed-off-by: eccopark@broadcom.com <eccopark@broadcom.com>