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

Commit e338c811 authored by Etan Cohen's avatar Etan Cohen
Browse files

[AWARE] Disable NANv3 data-path capabilities

Disable the firmware to send NANv3 data-path negotiations packets.
Means that device will only use NANv2 data-path negotiation packets.
That is interoperable - though may miss extra information from pure
NANv3 peers - where extra = port/transport-protocol/ipv6 address (we
have an AOSP-specific emulation of this feature).

Bug: 112586769
Test: (ACTS) act.py ThroughputTest:test_iperf_max_ndi_aware_only_passphrases
Test: (CTS) atest SingleDeviceTest
Change-Id: I3fd3e3bfc80a7815e035c592967e5448601c8153
parent 1be67b36
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1253,6 +1253,10 @@ bool convertHidlNanEnableRequestToLegacy(
        hidl_request.debugConfigs
            .useSdfInBandVal[(size_t)NanBandIndex::NAN_BAND_5GHZ];

    // disable NANv3 NDPe
    legacy_request->config_ndpe_attr = 1;
    legacy_request->use_ndpe_attr = 0;

    return true;
}

@@ -1764,6 +1768,10 @@ bool convertHidlNanConfigRequestToLegacy(
        hidl_request.bandSpecificConfig[(size_t)NanBandIndex::NAN_BAND_5GHZ]
            .discoveryWindowIntervalVal;

    // disable NANv3 NDPe
    legacy_request->config_ndpe_attr = 1;
    legacy_request->use_ndpe_attr = 0;

    return true;
}