Loading wifi/1.4/default/wifi_chip.cpp +14 −2 Original line number Diff line number Diff line Loading @@ -624,6 +624,15 @@ Return<void> WifiChip::getCapabilities_1_3(getCapabilities_cb hidl_status_cb) { Return<void> WifiChip::debug(const hidl_handle& handle, const hidl_vec<hidl_string>&) { if (handle != nullptr && handle->numFds >= 1) { { std::unique_lock<std::mutex> lk(lock_t); for (const auto& item : ringbuffer_map_) { forceDumpToDebugRingBufferInternal(item.first); } // unique_lock unlocked here } usleep(100 * 1000); // sleep for 100 milliseconds to wait for // ringbuffer updates. int fd = handle->data[0]; if (!writeRingbufferFilesInternal()) { LOG(ERROR) << "Error writing files to flash"; Loading Loading @@ -1120,6 +1129,9 @@ WifiStatus WifiChip::stopLoggingToDebugRingBufferInternal() { legacy_hal::wifi_error legacy_status = legacy_hal_.lock()->deregisterRingBufferCallbackHandler( getFirstActiveWlanIfaceName()); if (legacy_status == legacy_hal::WIFI_SUCCESS) { debug_ring_buffer_cb_registered_ = false; } return createWifiStatusFromLegacyError(legacy_status); } Loading Loading @@ -1335,7 +1347,7 @@ WifiStatus WifiChip::registerDebugRingBufferCallback() { LOG(ERROR) << "Ringname " << name << " not found"; return; } // unlock // unique_lock unlocked here } }; legacy_hal::wifi_error legacy_status = Loading Loading @@ -1637,7 +1649,7 @@ bool WifiChip::writeRingbufferFilesInternal() { } } } // unlock // unique_lock unlocked here } return true; } Loading Loading
wifi/1.4/default/wifi_chip.cpp +14 −2 Original line number Diff line number Diff line Loading @@ -624,6 +624,15 @@ Return<void> WifiChip::getCapabilities_1_3(getCapabilities_cb hidl_status_cb) { Return<void> WifiChip::debug(const hidl_handle& handle, const hidl_vec<hidl_string>&) { if (handle != nullptr && handle->numFds >= 1) { { std::unique_lock<std::mutex> lk(lock_t); for (const auto& item : ringbuffer_map_) { forceDumpToDebugRingBufferInternal(item.first); } // unique_lock unlocked here } usleep(100 * 1000); // sleep for 100 milliseconds to wait for // ringbuffer updates. int fd = handle->data[0]; if (!writeRingbufferFilesInternal()) { LOG(ERROR) << "Error writing files to flash"; Loading Loading @@ -1120,6 +1129,9 @@ WifiStatus WifiChip::stopLoggingToDebugRingBufferInternal() { legacy_hal::wifi_error legacy_status = legacy_hal_.lock()->deregisterRingBufferCallbackHandler( getFirstActiveWlanIfaceName()); if (legacy_status == legacy_hal::WIFI_SUCCESS) { debug_ring_buffer_cb_registered_ = false; } return createWifiStatusFromLegacyError(legacy_status); } Loading Loading @@ -1335,7 +1347,7 @@ WifiStatus WifiChip::registerDebugRingBufferCallback() { LOG(ERROR) << "Ringname " << name << " not found"; return; } // unlock // unique_lock unlocked here } }; legacy_hal::wifi_error legacy_status = Loading Loading @@ -1637,7 +1649,7 @@ bool WifiChip::writeRingbufferFilesInternal() { } } } // unlock // unique_lock unlocked here } return true; } Loading