Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbd83ef5 authored by Roshan Pius's avatar Roshan Pius
Browse files

wifi(implementation): Create 1.1 interface package

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
parent ee3daf9a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,10 +17,12 @@
cc_library_static {
    name: "VtsHalWifiV1_0TargetTestUtil",
    srcs: [

        "wifi_hidl_call_util_selftest.cpp",
        "wifi_hidl_test.cpp",
        "wifi_hidl_test_utils.cpp"],
    export_include_dirs: [
        "."
    ],
    shared_libs: [
        "libbase",
        "liblog",
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ LOCAL_SRC_FILES := \
    wifi_status_util.cpp
LOCAL_SHARED_LIBRARIES := \
    android.hardware.wifi@1.0 \
    android.hardware.wifi@1.1 \
    libbase \
    libcutils \
    libhidlbase \
+2 −2
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ class HidlDeathHandler : public android::hardware::hidl_death_recipient {
namespace android {
namespace hardware {
namespace wifi {
namespace V1_0 {
namespace V1_1 {
namespace implementation {
namespace hidl_callback_util {
template <typename CallbackType>
@@ -114,7 +114,7 @@ class HidlCallbackHandler {

}  // namespace hidl_callback_util
}  // namespace implementation
}  // namespace V1_0
}  // namespace V1_1
}  // namespace wifi
}  // namespace hardware
}  // namespace android
Loading