index c314e6451ab3606bba510c5da7db7ae108d44003..55ec96dd018a617c225686c940c0d775d2f1d71a 100644 (file)
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);
}
// Fall through if failed. Failure to retrieve cached scan
// results should trigger a background scan failure.
+ [[fallthrough]];
case WIFI_SCAN_FAILED:
on_failure_user_callback(id);
on_gscan_event_internal_callback = nullptr;