Message ID | 20240711164654.1688558-10-denkenz@gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | [v2,01/11] udevng: Remove gps from setup_gobi | expand |
diff --git a/drivers/qmimodem/gprs-context.c b/drivers/qmimodem/gprs-context.c index f29f10720710..203a320a42af 100644 --- a/drivers/qmimodem/gprs-context.c +++ b/drivers/qmimodem/gprs-context.c @@ -46,10 +46,10 @@ static void pkt_status_notify(struct qmi_result *result, void *user_data) if (!status) return; - DBG("conn status %d", status->status); + if (!qmi_result_get_uint8(result, RESULT_IP_FAMILY, &ip_family)) + return; - if (qmi_result_get_uint8(result, RESULT_IP_FAMILY, &ip_family)) - DBG("ip family %d", ip_family); + DBG("conn status %d ip family %d", status->status, ip_family); switch (status->status) { case QMI_WDS_CONNECTION_STATUS_DISCONNECTED: