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

Commit 46417dd8 authored by Gabriel Biren's avatar Gabriel Biren Committed by Gerrit Code Review
Browse files

Merge "Add a null pointer check for wifi_chip in configureChipToSupportIfaceTypeInternal."

parents 10015aff b1c2d07e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ bool findAnyModeSupportingIfaceType(
bool configureChipToSupportIfaceTypeInternal(const sp<IWifiChip>& wifi_chip,
                                             IfaceType type,
                                             ChipModeId* configured_mode_id) {
    if (!configured_mode_id) {
    if (!configured_mode_id || !wifi_chip.get()) {
        return false;
    }
    const auto& status_and_modes = HIDL_INVOKE(wifi_chip, getAvailableModes);