Skip to content

Fix Windows DUN error 619 caused by missing serial events and incorrect queue state#10

Merged
5656hcx merged 1 commit intomainfrom
dun-call
Mar 19, 2026
Merged

Fix Windows DUN error 619 caused by missing serial events and incorrect queue state#10
5656hcx merged 1 commit intomainfrom
dun-call

Conversation

@5656hcx
Copy link
Contributor

@5656hcx 5656hcx commented Mar 18, 2026

Summary

This change fixes multiple issues in the serial driver that caused Windows Dial‑Up Networking to fail with error 619.

Error Description

Repro: Initiate a dial-up connection against the Qualcomm modem on Windows Settings. The error 619 will pop up:

image

Root Cause Analysis (RCA)

  1. Wrong output mask for WAIT_ON_MASK
    The driver completed IOCTL_SERIAL_WAIT_ON_MASK with an incorrect output event mask, so the application never observed SERIAL_EV_RXFLAG. As a result, the dial‑up flow could not proceed.

  2. Queue state mis‑reporting rejected new WOM requests
    The logic used to determine whether the framework queue is empty was incorrect. Under certain race conditions, the application had already acknowledged the completion of the previous WAIT_ON_MASK request, but the driver still perceived the queue as non‑empty. As a result, the application restarted the connection by purging the RX buffer, which made all subsequent WAIT_ON_MASK requests were continuously rejected.

  3. Potentially incorrect return status for immediate timeout
    Immediate timeout paths (Type 4/6) returned STATUS_TIMEOUT. The upper layer may interpreted this as a terminal failure.

Validation

Validated with Qualcomm modem on Windows 11 24h2, the error 619 is gone.

Signed-off-by: Han, Chenxi <chehan@qti.qualcomm.com>
@5656hcx 5656hcx requested review from rohimish-qc and shasaror March 18, 2026 23:58
@5656hcx 5656hcx self-assigned this Mar 18, 2026
@5656hcx 5656hcx merged commit 3e264da into main Mar 19, 2026
10 checks passed
@5656hcx 5656hcx added the bug Something isn't working label Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant