diff --git a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst index 652b793ca0e..e1e25e093e2 100644 --- a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst +++ b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst @@ -450,6 +450,10 @@ Networking samples * Updated the sample to gracefully bring down the network interfaces. +* :ref:`download_sample` sample: + + * Updated the sample to gracefully bring down the network interfaces. + NFC samples ----------- diff --git a/samples/net/download/src/main.c b/samples/net/download/src/main.c index 0472caec57d..e87e67841a4 100644 --- a/samples/net/download/src/main.c +++ b/samples/net/download/src/main.c @@ -221,6 +221,7 @@ static int callback(const struct download_client_evt *event) #endif /* CONFIG_SAMPLE_COMPUTE_HASH */ (void)conn_mgr_if_disconnect(net_if); + (void)conn_mgr_all_if_down(true); printk("Bye\n"); return 0; @@ -230,6 +231,7 @@ static int callback(const struct download_client_evt *event) /* With ECONNRESET, allow library to attempt a reconnect by returning 0 */ } else { (void)conn_mgr_if_disconnect(net_if); + (void)conn_mgr_all_if_down(true); /* Stop download */ return -1; }