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

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

wifi(implementation): Use stub for |read_packet_filter|

Use the stub to take care of vendors who don't implement the new HAL
functionality.

Note: This is just an internal cleanup to be consistent with other
functions.

Bug: 73804303
Test: Compiles
Change-Id: I393194772f35a3620c5acd4d5c3b5a6d072cd507
parent 579ef36e
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -494,10 +494,6 @@ wifi_error WifiLegacyHal::setPacketFilter(const std::string& iface_name,

std::pair<wifi_error, std::vector<uint8_t>>
WifiLegacyHal::readApfPacketFilterData(const std::string& iface_name) {
    if (global_func_table_.wifi_read_packet_filter == nullptr) {
        return {WIFI_ERROR_NOT_SUPPORTED, {}};
    }

    PacketFilterCapabilities caps;
    wifi_error status = global_func_table_.wifi_get_packet_filter_capabilities(
        getIfaceHandle(iface_name), &caps.version, &caps.max_len);
+1 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ bool initHalFuncTableWithStubs(wifi_hal_fn* hal_fn) {
    populateStubFor(&hal_fn->wifi_nan_data_end);
    populateStubFor(&hal_fn->wifi_get_packet_filter_capabilities);
    populateStubFor(&hal_fn->wifi_set_packet_filter);
    populateStubFor(&hal_fn->wifi_read_packet_filter);
    populateStubFor(&hal_fn->wifi_get_roaming_capabilities);
    populateStubFor(&hal_fn->wifi_enable_firmware_roaming);
    populateStubFor(&hal_fn->wifi_configure_roaming);