summaryrefslogtreecommitdiff
path: root/wifi/1.0/default/wifi_status_util.cpp
AgeCommit message (Collapse)Author
2017-07-06wifi(implementation): Create 1.1 interface packageRoshan Pius
1. Move the implementation in 1.0/default to 1.1/default. 2. Move all of the implementation to android::hardware::V1_1::implementation namespace. 3. All of the header files include the android::hardware::V1_0 namespace so that it can access the types from 1.0 package. ("using namespace" is against Google style guide though :(). The other option to prefix each 1.0 type with the namespace name. For example: V1_0::WifiStatus. 4. Added the implementation of the new 1.1 method IWifiChip.setTxPowerLimit(). 4. The executable name and the .rc still has 1.0 name in it to avoid changing all the device.mk files. TODO: Hookup to the new legacy HAL API. Bug: 62437848 Test: mmm -j128 hardware/interfaces/wifi/1.1/default/ Test: Device boots up and able to connect to wifi networks. Test: New VTS tests passes Change-Id: Ib36282939e70b064f246041a03d8870f5cb6410e
2017-01-30wifi: Fixing NitsRoshan Pius
Changes in the CL to fix bugs found while integrating with framework: 1. Added IWifiApIface.setCountryCode() Bug: 34682168 2. Fixed documentation nits in .hal files. Bug: 34468218 3. Changed roaming state enum values. Bug: 34715231 4. Added log for EBUSY in legacyErrorToString() Bug: 34715469 5. Remove "-Wno-unused parameter" from Android.mk Bug: 34611289 6. Remove the erroneous |onFailure| callback invocation in wifi.cpp. 7. Add null terminations to strings passed to legacy HAL API's 8. Remove unused |IWifiStaIface.stopDebugPacketFateMonitoring|. Test: Compiles Change-Id: If3a3e2f360a378c59dc56b8bbe3a0c6d400b3bd8
2016-12-15wifi: Port over O features to HIDLRoshan Pius
Porting over the 3 new features added to legacy HAL for O to HIDL interface: 1. Firmware roaming control. 2. Scan randomizations support. 3. Probe IE whitelisting for privacy enhancements. Bug:32638647 Test: Compiles Change-Id: Ia4666e3824186bbcfb8599b337eee7c81f256503
2016-12-02wifi: Don't include legacy hal header in wifi_status_utilRoshan Pius
This was missed from the cleanup when we moved the libhardware_legacy header inside the legacy_hal:: namespace. Bug: 33274910 Test: Compiles Change-Id: I233f5478733427c739d30bf41f20f120a4c4199a
2016-11-16wifi: Helper functions for invoking hidl cont callbacksRoshan Pius
The helper functions are used to invoke an internal method which implements the functionality and then invoke the HIDL callback with the return values. HIDL's auto-generated code uses on-stack callbacks to return non-primitive/multiple values from HIDL methods. This is unwieldy and the implementation of the method's functionality gets mixed up with the semantics of handling these callbacks. This tries to hide the semantics of HIDL auto-generated code from the functionality. Converted all IWifi methods to use these new helper functions. Bug: 32337072 Test: Compiles Change-Id: I57cbafcc2ecb52ec5055f4bd80bc064bd438b850
2016-11-16wifi: Rename failure_reason_util to wifi_status_utilRoshan Pius
The HIDL interface now returns a |WifiStatus| instance to indicate the status of any operation. This is replacing the existing asynchronous delivery of success or failure (using |FailureReason| instance). Rename the existing util class to |wifi_status_util| and add a couple of methods to create a |WifiStatus| instance with empty description. Bug: 32056230 Test: Compiles Change-Id: I8488f7cd7d6ad6bd7a0c3c82a7ef83299d877d45