diff options
| author | HiFiPhile <[email protected]> | 2025-12-28 16:37:12 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-12-28 17:17:41 +0100 |
| commit | fef11cd4451f0f9c6e5bf5b5f2c067a9c54b1216 (patch) | |
| tree | 6ddd1e9277a922f986eddf1d09736f810b86c819 /src/class | |
| parent | 3eafddb02a3347873dc1816f53b428518eb97c61 (diff) | |
usbd/ncm: reset notification state on link down
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/net/ncm_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/class/net/ncm_device.c b/src/class/net/ncm_device.c index 3e19b5f3a..1baef146d 100644 --- a/src/class/net/ncm_device.c +++ b/src/class/net/ncm_device.c @@ -940,6 +940,9 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t if (ncm_interface.itf_data_alt == 1) { tud_network_recv_renew_r(rhport); notification_xmit(rhport, false); + } else { + // Reset notification state to send link state update when interface is re-activated + ncm_interface.notification_xmit_state = NOTIFICATION_CONNECTED; } tud_control_status(rhport, request); } break; |
