Commit graph

494 commits

Author SHA1 Message Date
Mikhail Naganov
0fb2f22696 Convert mask types from uint32_t to enum type
This applies to the following types:

- audio_gain_mode_t;
- audio_flags_mask_t;
- audio_channel_representation_t;
- audio_channel_mask_t;
- audio_devices_t.

Enum types are distinct thus proper overloading on the type
is possible in C++. Also, assignments to enum types are
less prone to errors.

Bug: 169889714
Test: basic audio functionality
Change-Id: I6366511b421ccab2782310ecc15a13e08d9c17af
Merged-In: I6366511b421ccab2782310ecc15a13e08d9c17af
2020-11-24 03:42:39 +00:00
Roshan Pius
85bac74511 Merge "libhardware_legacy(wifi): Add STA + STA APIs" 2020-10-20 23:18:30 +00:00
Nate Jiang
4eb8117537 Merge "[Aware] Add instant mode support" 2020-10-20 16:19:00 +00:00
Roshan Pius
354fe63de7 libhardware_legacy(wifi): Add STA + STA APIs
Bug: 170305665
Test: Compiles
Change-Id: I23633ee79b27a602a609edf84efec49b39af0ac9
2020-10-19 17:33:46 -07:00
Mikhail Naganov
afea6a410f Convert mask types from uint32_t to enum type
This applies to the following types:

- audio_gain_mode_t;
- audio_flags_mask_t;
- audio_channel_representation_t;
- audio_channel_mask_t;
- audio_devices_t.

Enum types are distinct thus proper overloading on the type
is possible in C++. Also, assignments to enum types are
less prone to errors.

Bug: 169889714
Test: basic audio functionality
Change-Id: I6366511b421ccab2782310ecc15a13e08d9c17af
2020-10-08 17:25:28 +00:00
Nate Jiang
9e25034006 [Aware] Add instant mode support
Bug: 160725208
Test: build
Change-Id: Ia123cba1669c71317723831385d9c5b234155563
2020-08-26 14:41:52 -07:00
Jimmy Chen
ba1d91c5fd Wifi: add 60GHz feature bit
Added a new feature code INFRA_60G for chips that operate
on the 60GHz band.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest

Change-Id: I4248c6d5e086305a7628497675fbd5b2a5b52e1b
2020-08-11 14:18:42 +08:00
Jimmy Chen
28f471d3bf Wifi: enhanced API to support multiple WIFI chips
Enhance the API to support multiple WIFI chips.
Each WIFI chip is represented by a separate and independent
vendor HAL library providing its own function table
(wifi_hal_fn structure).
New functions added to the function table in order to
better support multiple WIFI chips:
1. In the existing hardware/interfaces/wifi implementation,
WIFI chip modes and concurrency combinations are hard-coded.
Since each WIFI chip can have its own concurrency
combinations, it is no longer possible to hard-code the
modes/combinations.
Add new function wifi_get_chip_modes for reporting
chip modes/concurrency combinations. For backward compatibility,
if the vendor HAL does not implement this function,
the previous hard-coded chip modes and concurrency combinations
will be used.
2. In the existing hardware/interfaces/wifi implementation,
when creating a new interface, it will use a fixed name
such as wlan0 or wlan1. This does not extend well to
multiple WIFI chips, as different WIFI chips may want
to use their own interface names, or the suggested interface
name may have been pre-created by another chip.
In order to better support interface creation on multiple
WIFI chips, add a function wifi_get_supported_interface_name
that allows the vendor HAL to specify its own interface
name for upcoming interface creation. If the vendor HAL returns
an interface name, it should be passed to
wifi_virtual_interface_create to create the interface
with the provided name.
3. In the existing hardware/interfaces/wifi implementation,
wifi_initialize is only called when creating the first
interface (typically when enabling WIFI). However some
chips may want to perform early initialization and provide
some functionality while WIFI is still disabled. One example
is reporting chip-global capabilities that may affect
the UI even before WIFI is enabled.
In order to support this, add a new function
wifi_early_initialize which will perform early initialization.
The function should be called as soon as possible after
loading the vendor HAL, and if it returns a failure, the vendor
HAL should not be considered usable and no WIFI chip should
be created based on it.
4. In some cases it is needed to query chip features before
creating any interfaces. For example, for trying to start
a SoftAP on the 60GHz band, it is needed to detect a chip
which supports the 60GHz band, and only if such chip was detected,
then an AP interface can be created on it.
The wifi_get_supported_feature_set function only works on
a created interface so it is not suitable for this scenario.
To support such scenarios, add a new function
wifi_get_chip_feature_set which returns a set of chip-global
features which are independent of any created interface.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: If0b4934002c5687024c9fc2e65e15c466f94acd2
2020-08-11 14:18:39 +08:00
Ahmed ElArabawy
87805a2f0d Wifi: Add a vendor function to set subsystem restart handler
This commit adds a method to set the handler for wifi subsystem
restart callback.

Bug: 159367026
Test: force a firmware restart and make sure Wifi is recovered.
Change-Id: Id125b85a697a0cdd5cf2677abb0006c85053fd43
2020-07-02 17:36:02 +00:00
Glenn Kasten
241bea678f Merge "Include what you use: <cutils/bitops.h> for popcount" am: a44935a15e am: f1c3aef751
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1353827

Change-Id: I5081765a1f7067786819df994029cd37a56ec570
2020-07-01 23:11:01 +00:00
Glenn Kasten
75957b03d2 Include what you use: <cutils/bitops.h> for popcount
Test: builds OK
Change-Id: Ia469ef1b53b96e14a348405f269009c93394661e
2020-07-01 12:18:21 -07:00
Ahmed ElArabawy
22f7050574 Wifi: Add support for mapping DSCP to Wifi AC
This commit adds the needed enum and methods to handle the mapping
of DSCP into wifi access categories.

Bug: 141500691
Bug: 141550272
Test: Manual
Change-Id: If532a6dc34f4a2c61fc4601cb1b83d2fec053ea5
2020-02-19 16:52:07 -08:00
Purushottam Kushwaha
d619c41ebd wifi-hal: Add support for interface create/delete.
This adds new API to create/delete additional interface through
wifi vendor hal.

Bug: 146539882
Bug: 121156971
Test: Basic wifi sanity test.
Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
Change-Id: I8d2e4c51a1feedba65c88435cd10f2a8f6541e1b
2020-02-03 22:49:10 -08:00
Kumar Anand
536d0779dc wifi: thermal hal api
global handle instead of interface handle as thermal
mitigation is not interface specific.

Bug: 112471991
Test: atest FrameworksWifiTests
Change-Id: I40b8d85156b7a4561a4ef6db9e4655824c10b5ba
2020-01-23 22:26:06 +00:00
Kumar Anand
c97ac315eb Merge "Wifi: Vendor Hal Thermal Mitigation API" 2020-01-07 22:12:23 +00:00
Kumar Anand
3f3fa98701 Wifi: Vendor Hal Thermal Mitigation API
Bug: 140311866
Test: Manual
Change-Id: I0f546c51fc306540514590f6cd0da1217b893ff9
2020-01-02 14:19:41 -08:00
Ahmed ElArabawy
05ac8776ea Wifi: Remove capability for 6GHz
It was decided to base device capability for support of 6GHz band
on overlay configs rather than HAL capability bitmask.
Hence, this commit removes the 6GHz feature flag.

Bug: 145936758
Bug: 139354972
Test: Manual
Change-Id: I0c72161a31452bd0fab226f9f92f0aa859d3f5e4
2019-12-11 09:08:16 -08:00
Ahmed ElArabawy
45b0a7322a Wifi: Add WLAN_MAC_6_0_BAND to the list of bands
This commit adds to the wlan_mac_band enum, the value for 6 GHz.

Bug: 139354972
Test: Manual
Change-Id: I7679223fd491110a77c1507d2c14fe9c83e62005
2019-12-04 17:58:18 -08:00
Ahmed ElArabawy
1bc3c577ac Use uint64 instead of long for better portability
This commit forces the features and feature_set to be 64 bit
for better portability.

Bug: 144576287
Test: Builds passes successfully
Change-Id: I93c74d9f1802520c9bd0aa7f8f15cec4e30ce2ba
2019-11-15 12:44:45 -08:00
Ahmed ElArabawy
a1ce7dc8f0 Wifi: Support check on device capability for 6GHZ
This commit implements support of checking whether device supports 6GHz band.
To accomodate the new feature as well as any future features, feature_set type
was changed from int (32 bits) to long (64 bits).

Bug: 139354972
Test: Manual
Change-Id: If002d8efb854d50af314794926fbdfdc4fb08a5e
2019-11-12 19:04:13 -08:00
Ahmed ElArabawy
063fe291bd Wifi: Add 802.11ax support to RTT
This CL makes modidfication to support Wifi 802.11ax to RTT procedures.
This includes adding support for the 11ax preamble

Bug: 139354972
Test: Manual
Change-Id: I2aca64edcb4bc2ee267db4e4011da246c540a4b8
2019-11-03 00:02:11 -07:00
Tri Vo
2843fd5f4a Merge "libpower: RAII wake lock implementation" am: a53a8a7193
am: aac0a1f5d3

Change-Id: Ie501bc93adbeb28fb364772b92d47427c46ad677
2019-06-26 19:43:16 -07:00
Tri Vo
934f175a42 libpower: RAII wake lock implementation
Main motivation is to prevent wake lock leaks, e.g. b/133175847.

Changing power.h header breaks downstream vendor code that does C
linkage to that header b/135730848. Introduce new wakelock.h header.

Bug: 133175847
Test: boot blueline
Test: device suspends if left alone
Change-Id: I477123938ab20e954ce4d55b8588c0a116ed3882
2019-06-26 13:01:39 -07:00
Ruslan Tkhakokhov
f830e916a0 Merge "Merged-In Revert "libpower: RAII wake lock implementation"" am: 6e5d1db64b
am: 44e3795879

Change-Id: I58743ca5f63430eda716b15e72debb6cba4fb858
2019-06-21 08:27:52 -07:00
Ruslan Tkhakokhov
acf23a23e7 Merged-In Revert "libpower: RAII wake lock implementation"
This reverts commit 23009bb199.

Reason for revert: Breaks the build

Change-Id: I347928c4d444f4b1ce9d79f855c171626c0214c0
2019-06-21 10:32:57 +00:00
Tri Vo
9fcd627425 Merge "libpower: RAII wake lock implementation" am: cc685232f7
am: 8fbabc2d9a

Change-Id: I17e83309955abb6c3ebdb9b6f270a1a4d94ded10
2019-06-20 15:57:49 -07:00
Tri Vo
23009bb199 libpower: RAII wake lock implementation
Bug: 133175847
Test: boot blueline
Test: device suspends if left alone
Change-Id: I5a63fedabb18a9dcd510ca76303f54ec6c0b7f8c
2019-06-20 09:02:16 -07:00
Ahmed ElArabawy
86d26ee18d Merge "Wifi: Update the wifi_sar_scenario enum" 2019-04-03 14:54:00 +00:00
Ahmed ElArabawy
ed29afb0b6 Wifi: Add ether type to sending offloaded packet
In current implementation, the ether type used for offloaded
packets is always hardcoded to IPv4 in lower layers.
This commit adds support to specify ether type of offloaded
packets from user space.

Bug: 122487582
Test: Manual
Change-Id: I1ca7391bd70ecebaf0591e0eafe08b79383538c5
2019-04-02 15:30:59 -07:00
Ahmed ElArabawy
151427c297 Wifi: Update the wifi_sar_scenario enum
This commit updates the enum for wifi_sar_scenario.

Bug: 112205428
Test: Compiles (just a header file change)
Change-Id: If01d0daf5e535e8fdca6eeab115f6c409cc38c46
2019-03-29 01:54:49 +00:00
Ahmed ElArabawy
fc49b8693e Wifi: Add ether_type to sending offloaded packet
This commit is part of the addition of the ether_type as an argument
to the legacy hal function to send an offloaded packet.

Bug: 122487582
Test: Manual
Test: Make sure code builds properly
Change-Id: I5c56acb74f5724ac3d6199433c7632177bfc9704
2019-03-18 15:58:41 -07:00
Jimmy Chen
630281abbf Merge "p2p: synchronize p2p random MAC feature flag from driver." 2019-01-23 02:53:10 +00:00
Jimmy Chen
a922b0809f p2p: synchronize p2p random MAC feature flag from driver.
P2P random MAC needs the driver to support changing MAC address.

Bug: 118904478
Test: manual test
      * Enter WiFI Direct Page
      * check the feature is enabled in logcat
        * WifiP2pService: Supported feature: P2P MAC randomization
      * check p2p0 MAC address is randomized.

Change-Id: Iadae3cf74722d29014caffe7080e0efa44a7659e
2019-01-17 10:59:23 +08:00
Peng Xu
c499510957 Add NDPE attribute config and enable support
Add NDPE attribute config and enable support so that the framework
can decide the usage of it.

Bug: 113149569
Bug: 112586769
Test: (ACTS) act.py ThroughputTest:test_iperf_max_ndi_aware_only_passphrases
Test: (CTS) atest SingleDeviceTest

Change-Id: I0c93ba53fa7de3e346ab0913d04bd670a528ec4e
2019-01-15 17:26:29 -08:00
Ahmed ElArabawy
dc1658a9fc Wifi: Support setting latency mode
This commit adds the enum and prototype to enable setting of wifi
latency mode.

Bug: 34905427
Test: Unit test
Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh
Test: VTS test
Test: run vts -m VtsHalWifiV1_3TargetTest

Change-Id: I846fd5f41b740be9ebf2efb16be87d456b573b2a
2018-12-03 16:00:31 -08:00
Eric Laurent
cdb3eb1a56 audio policy: remove special notifications handling in call
Not needed anymore as this is handled by NotificationManager

Test: make
Change-Id: Ice8101407ca0c22c4eb886203817cd139c0e8cd3
2018-06-29 17:39:14 -07:00
Bernie Innocenti
8c64fe9b12 Add wifi_read_packet_filter() to the legacy wifi hal
This is used to implement readApfPacketFilterData() for legacy wifi
drivers.

Bug: 73804303
Test: builds!
Change-Id: I562911cc064efec747629628df4eab8128449b51
(cherry picked from commit f70b864ede)
2018-03-16 03:13:59 +00:00
Bernie Innocenti
f70b864ede Add wifi_read_packet_filter() to the legacy wifi hal
This is used to implement readApfPacketFilterData() for legacy wifi
drivers.

Test: builds!
Change-Id: I562911cc064efec747629628df4eab8128449b51
2018-03-12 23:24:05 +09:00
Etan Cohen
166e1f9b89 Merge "[RTT][AWARE] Introduce NAN ranging status codes" into pi-dev 2018-03-09 16:10:02 +00:00
Srinivas Dasari
fbf63f350a [RTT][AWARE] Introduce NAN ranging status codes
Bug: 73176307
Test: RangeAwareTest with known failures
Change-Id: I3149f9658b8657908a282af219c466b4a6bfacc7
2018-03-08 13:38:41 -08:00
Ahmed ElArabawy
9dfdd473dc WiFi: Vendor HAL function to wait for driver ready
This commit adds a vendor hal function to wait for the driver to be
ready. This ensures the driver is ready for operatin before framework
starts to use it

Bug: 73482286
Test: Manual test (reboot and make sure wifi comes up consistently)
Test: The reboot test has been performed more than 10 times in a row
Test: Also, tested toggling wifi off/on then rebooted, wifi starts fine

Change-Id: I31bc594525762454b0c2f491486ffe575843c858
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-03-06 19:54:05 +00:00
Ahmed ElArabawy
f0d31da98c WiFi: Add more Power Limit Scenarios for SAR
This commit extends SAR by adding more scenarios to handle near
body/head cases

Bug: 65174506
Test: Manual

Change-Id: I02fe09e450b7ca4800750169f14b1ad05308b8b0
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-01-26 14:18:02 -08:00
Srinivas Dasari
53fb062ce8 wifi: Added new event callback to fetch hardware mode
Introduce new event callback to fetch current wifi hardware
mode.
i.e on_radio_mode_change

Bug: 68349158
Test: Compiles

(cherry-picked from 4a419dbf8550ad057574c7851e7fa0d0ca8ced0e)

Change-Id: Ib31ad152d24b91d8f184f1e16a53a47488ab4df9
2018-01-23 06:56:36 -08:00
Subhani Shaik
a5d8dde1a9 [AWARE]: Modifying the range measurements to millimeters
Bug: 69428593
Test: builds (integration tests pending firmware update)
Change-Id: I070c2126329a487450e3b91ac8eb191ed9948e92
2017-12-14 18:07:52 -08:00
Subhani Shaik
c13dd63623 [AWARE]: Add channel info to confirm, schedule update
Bug: 37007030
Test: builds, integration tests passing
Change-Id: I65322a8e673cfeb5699f022628bcfc2476946bcc
2017-12-12 16:19:25 -08:00
Subhani Shaik
a470c8fb33 [AWARE]: Enable new config options in Enable/Config APIs
1) Enable device level ranging option.
2) config nss.
3) config dw early termination.

Bug: 67745737
Test: builds, integration tests passing
Change-Id: I22315785bd5e42a7ce5e209cecbd997f62053cc8
2017-12-12 16:19:08 -08:00
Subhani Shaik
229806a7e2 [AWARE]: Add support to config NAN discovery beacon interval
Add support to configure discovery beacon interval in NAN enable
and config request.

Bug: 67745737
Test: builds, integration tests passing
Change-Id: I44d1918f740b35e39d751f26a5b5e4ee9b371a84
2017-12-12 16:18:16 -08:00
Subhani Shaik
b600992ac7 [AWARE]: Add support for NAN qos config, schedule update channel
Add qos config parameter in sdea control parameters and also
add schedule update channel as part of nan sync stats.

Change-Id: I8b56bf49dc3b0a7139a1bfd8698114f0fbf2fd16
2017-12-12 16:17:02 -08:00
Ivan Lozano
738437d93c Do not include the IAudioFlinger.h header.
This header does not look like it is used anymore, and compilation
succeeds without it, so it seems safe to remove.

Bug: 64223827
Test: 'mma -j4' throws no compilation errors.
Change-Id: Ic7ca90a7ba576d0ae14ee95d2d20c8ddf612754a
2017-08-08 13:35:10 -07:00
Subhani Shaik
cea38b3bba SAR: 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: Ia8a4c2c3ebbc055fc28cbee224ff685f97589a08
(cherry-picked from 674da97c8fbc40b9e9b7f80bb86c4f0824fa9d7a)
2017-07-25 11:25:52 -07:00
Subhani Shaik
d6a6047351 SAR: Enable API to configure SAR
Bug: 62437848
Test: Compiles
Change-Id: Iebe6dd8af9cedb295b5bd0beaff5c32dc58a038f
(cherry-picked from f66e31d017f9f9b3adc63e79de7a3ac067a62202)
2017-07-11 07:37:00 -07:00
Subhani Shaik
22dcefe8a6 AWARE: Fix rssi_window_size length in config
Bug: 38321768
Test: AttachTest:test_attach_multiple_sessions bad TLV issue resolved
Change-Id: Id9f4a2124a394cf3c44c6eb7560400a0fd690f31
2017-05-22 16:07:15 -07:00
Etan Cohen
d665d7b5bc Merge "[AWARE]: Add support for configuring NAN sid on subscriber side" 2017-04-20 21:55:49 +00:00
Rakesh Sunki
6451ba7735 [AWARE]: Add support for configuring NAN sid on subscriber side
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
2017-04-20 12:47:34 -07:00
Subhani Shaik
4cc6080b2b Fix static_assert compile issue
Change-Id: Ib8a894a7a766e10a7f8bdd4affbb672ad962690e
2017-04-20 07:54:04 +00:00
Subhani Shaik
1fc39e2e65 [AWARE]: Make changes to support NAN Publish Replied Indication
Bring in support for NAN Publish Replied indication.

Bug: 35195773
Test: integration (sl4a) tests
Change-Id: I3e7e488dfb2bc45753882755e3ce452b072d2f91
2017-04-04 15:12:05 -07:00
Subhani Shaik
35d241d686 [AWARE]: Add support to fetch second ndp channel
Add new parameter second ndp channel freq in the stats response
message to support the certification efforts.

Change-Id: I9011bd7d4c5f34a15fbfe871b67d255807df8347
2017-04-04 14:37:52 -07:00
Etan Cohen
ad6f1d5512 Merge "[AWARE]: Add support to accept either passphrase or pmk" 2017-03-23 00:10:34 +00:00
Subhani Shaik
890af5521a [AWARE]: Fix Nan capabilities mismatch
Bug: 36357282
2017-03-16 11:06:08 -07:00
Subhani Shaik
3686f0e883 [AWARE]: Add support to accept either passphrase or pmk
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
2017-03-14 14:56:09 -07:00
Subhani Shaik
8747f478d1 [AWARE]: Add range report in SDEA params
Bug: 36065933
Test: integration (sl4a) tests.
Change-Id: Ice8e87e2a6e4ed4475c7e6dcc691103071e0a03b
2017-03-08 11:45:29 -08:00
Etan Cohen
ea2adcc23a Merge "Include get_iface_handle in header file" 2017-03-08 17:53:07 +00:00
Subhani Shaik
cc38d64254 Include get_iface_handle in header file
Bug: 35868267
Change-Id: I8f826fc15272b39686aea957f6407200cd62fac6
2017-03-01 09:20:46 -08:00
Etan Cohen
b82ef271aa Merge "[AWARE]: Fix documentation for Service responder policy" 2017-02-24 02:15:28 +00:00
Subhani Shaik
a76eea523d [AWARE]: Fix documentation for Service responder policy
Bug: 35665140
Change-Id: I5fe10da87f76acd50e2704f14879eafc91363e2b
2017-02-23 16:30:11 -08:00
Subhani Shaik
a39fe6182c [AWARE]: Enable SDEA based SSI
Bug: 35193423
Test: integrated (sl4a) test
Change-Id: If29d93391071710bd419eeab6e384ca154da9c85
2017-02-21 12:20:04 -08:00
Etan Cohen
427212dafe Merge "[AWARE]: Configure ranging on discovery sessions" 2017-02-21 16:32:20 +00:00
Subhani Shaik
f512262623 [AWARE]: Configure ranging on discovery sessions
Add ranging configuration on discovery session. Remove
from overall NAN configuration (enable/config).

Add controls/structures based on spec protocol.

Bug: 33821639
Test: integration (sl4a) tests pass
Change-Id: Ibd1065c401672ca1f6d3781e373178401d1e4a62
2017-02-17 13:03:18 -08:00
Etan Cohen
85dd512272 [NAN] Security configuration (cipher)
Add a constant to make the no-cipher specification explicit.

Bug: 35387576
Test: integrated (sl4a) tests pass.
Change-Id: Ia272cad70cd4bedbdbdb4d2c856167305f747a30
2017-02-17 11:31:25 -08:00
Etan Cohen
1ea0399492 Merge "[AWARE]: Document the default values in NAN enable/config" 2017-02-16 21:00:11 +00:00
Subhani Shaik
eb72fbaf45 [AWARE]: Document the default values in NAN enable/config
Bug: 34059183
Change-Id: Ic651e93ef46d2f7ecf564f9a504db44d27401422
2017-02-16 19:16:47 +00:00
Subhani Shaik
0b0387e2ab [AWARE]: Fix return code for transmitFollowUp method 2017-02-15 22:20:20 -08:00
Etan Cohen
7cee598173 [AWARE] Clean up deprecated error value field
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
2017-01-18 19:08:49 +00:00
Subhani Shaik
3cdbc44764 [AWARE]: Error code fix in NdpIndiatorRequest
Bug: 32207606
Test: integration (sl4a) tests passing - no regressions
Change-Id: I0d0e995b8506b3fe44cd0dc419a187739fa448de
2017-01-04 15:27:27 -08:00
Subhani Shaik
9c90771dee [AWARE]: Config options to disable indications during Discovery
Bug: 33250076
Test: integration (sl4a) tests passing - no regressions
Change-Id: I79b2ce07ed5798089e7762e6ba8e6f8a057928a6
2017-01-04 15:26:55 -08:00
Subhani Shaik
ddf249539a [AWARE]: Enable ranging in Publish/Subscribe/Indication
Bug: 33821639
Test: unit + integration (sl4a) tests passing
Change-Id: I5aa9f39527a5296fa6a361a459b574521c774591
2016-12-21 22:41:53 -08:00
Randy Pan
ab920d2460 Merge "Roaming Enhancement API" 2016-12-13 19:25:41 +00:00
Subhani Shaik
0001cdb414 [AWARE]: Enable Service Descriptor Extension Attribute
Bug: 33554197
Test: builds
Change-Id: I22e442391776d86aa69e888fade4f03ca4002cbe
2016-12-12 15:06:57 -08:00
Subhani Shaik
eaddf13de1 Roaming Enhancement API
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
2016-12-12 14:39:23 -08:00
Subhani Shaik
f032356db0 [AWARE]: Enable Discovery MAC addr randomization
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
2016-12-12 14:23:18 -08:00
Subhani Shaik
548fbb3ab5 [AWARE]: Enable NAN Security
1) Include security params in Publish/Subscribe/Data Request/Response
   Structures.
2) Include security params in MatchIndication.

Bug: 33552694
Test: builds
Change-Id: I7a3af05b17f18040b311cf861c8dc0a0bba99d7d
2016-12-12 14:17:20 -08:00
Subhani Shaik
79e0e1be8c [AWARE] Config/Publish/Subscribe DW interval config
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
2016-12-12 14:00:03 -08:00
Subhani Shaik
2383b51f66 [AWARE]: Include ndp operating channel in Sync stats
Change-Id: I8bf99a669b9ab52a85100e8e8e3228bb71cf4d04
2016-12-12 12:33:29 -08:00
Subhani Shaik
457e26fd7b [AWARE] Configure Service Auto/None response in firmware
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
2016-11-29 22:18:04 +00:00
Subhani Shaik
b06466da76 Add description to NAN API/error codes
(cherry-pick of commit de91d3f9fe307f0f49acc2650e221bd6b9b698f7)
(cherry-pick of commit af855190314fe919cc4436e402d727c4b6191aa2)

BUG: 27914592
Change-Id: I7d63472c5c9872817e9535e55c8b8c04c5b7c4e2
2016-11-15 15:00:16 +00:00
Amarnath Hullur Subramanyam
41962ea803 Wifi: Corrected NanSRFState enum type
am: 523a38f9c4

Change-Id: I57dc1df39897572634df50f259fa01f646333dc0
2016-08-24 20:11:56 +00:00
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
8c03fcdcc7 [NAN] Add msg to indicate transmit followup queue is full
am: 720544bb0d

Change-Id: I84bdfabc389f41c249c5f9a9b48c489021134433
2016-07-28 17:03:27 +00: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
Chih-hung Hsieh
5df4b908c9 resolve merge conflicts of b3a0cc6 to stage-aosp-master am: 3fd32ebb0c am: 51c912c856
am: 7110b4bccf

Change-Id: I5267b963aa81c8f1cd9ea0e0d1a7e1b599557507
2016-06-28 18:42:00 +00:00
Chih-Hung Hsieh
3fd32ebb0c resolve merge conflicts of b3a0cc6 to stage-aosp-master
Change-Id: Ia40cd728f1d352d9a6611718dda8850afe3dfa63
2016-06-28 10:40:51 -07:00
Chih-hung Hsieh
b3a0cc6fab Merge "Fix misc-macro-parentheses warnings in hardware_legacy." 2016-06-27 23:34:12 +00:00
David 'Digit' Turner
6951ae9b01 resolve merge conflicts of 21cfbd1 to master
Change-Id: Ic2520bcd2ae516d0d6e8f724b11a0f39ccd64177
2016-06-22 10:29:46 +02:00
David 'Digit' Turner
1d07c27cf6 Merge \"Remove qemu dependency.\"
am: 146d8ade97

Change-Id: I77429a76555d35e95ed841c685b9783e5eb9c730
2016-06-22 08:12:34 +00:00
David 'Digit' Turner
14ca884e01 Remove qemu dependency.
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
2016-06-21 14:14:10 +02:00
Christopher Wiley
1650ddc3f6 Move wifi.c out of libhardware_legacy
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.
2016-06-15 10:45:42 -07:00
Subhani Shaik
c54f9bcc94 Fix service instance Id in the data request
am: 7491031a5b

Change-Id: I39118acbdf676865286d5fc9485f9c96737d91d9
2016-06-14 23:26:59 +00:00
Christopher Wiley
baa0a49e7f Remove dead code in wifi.c
There are no callsites of this code today.

Bug: 28619119
Change-Id: Icc61a86dc71f411fd3550d825236f4ac025f4541
Test: Compiles
2016-06-13 15:15:35 -07:00
Chih-Hung Hsieh
0659908b3b Fix misc-macro-parentheses warnings in hardware_legacy.
Add parentheses around macro arguments used beside operators.
Bug: 28705665

Change-Id: I5ddb35e374a172807bf14e381f4808a55bc44417
2016-06-10 10:19:00 -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