]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-hardware-interfaces.git/blobdiff - wifi/1.2/default/wifi_legacy_hal.cpp
Fix implicit-fallthrough warnings. DO NOT MERGE.
[android/platform-hardware-interfaces.git] / wifi / 1.2 / default / wifi_legacy_hal.cpp
index c314e6451ab3606bba510c5da7db7ae108d44003..55ec96dd018a617c225686c940c0d775d2f1d71a 100644 (file)
@@ -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);
@@ -554,6 +550,7 @@ wifi_error WifiLegacyHal::startGscan(
                 }
                 // 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;