<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Problem with switching off Wi-Fi interface on nrf7002-DK using SoftAP example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123197/problem-with-switching-off-wi-fi-interface-on-nrf7002-dk-using-softap-example</link><description>Hello everybody, 
 
 now, I am solving problem with switching off Wi-Fi interface on nrf7002-DK. I am runnig SoftAP example on my nrf7002-DK board. So my board behaves like AP. I wanna make function, that will be able to switch off (or close) Wi-Fi network</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Jul 2025 10:39:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123197/problem-with-switching-off-wi-fi-interface-on-nrf7002-dk-using-softap-example" /><item><title>RE: Problem with switching off Wi-Fi interface on nrf7002-DK using SoftAP example</title><link>https://devzone.nordicsemi.com/thread/543909?ContentTypeID=1</link><pubDate>Tue, 29 Jul 2025 10:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb413f64-9889-4bad-96e1-4d1674260374</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Here it seems like you&amp;#39;re trying to disconnect a device that is already disconnected, as the -22 error you&amp;#39;re seeing means an invalid argument was set in&amp;nbsp;NET_REQUEST_WIFI_AP_STA_DISCONNECT() on your end.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with switching off Wi-Fi interface on nrf7002-DK using SoftAP example</title><link>https://devzone.nordicsemi.com/thread/543592?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 10:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63309b3-e09d-4273-acfa-377feb6e5ff9</guid><dc:creator>Jaroslav Havel</dc:creator><description>&lt;p&gt;Thank you Simon&lt;/p&gt;
&lt;p&gt;I have to explain what I want to do. My idea is close Wi-Fi network in idea of changing its parametrs. Now, i am trying to disable AP mode on nrf7002-DK via command. My code is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;struct net_if *iface = net_if_get_default();
struct wifi_iface_status status;

ret = net_mgmt(NET_REQUEST_WIFI_IFACE_STATUS, iface, &amp;amp;status, sizeof(status));
     if (ret == 0) 
     {
       LOG_INF(&amp;quot;Wi-Fi state: %d&amp;quot;, status.state);

     }
ret = net_mgmt(NET_REQUEST_WIFI_AP_STA_DISCONNECT, iface, NULL, 0);
     if (ret) 
	 {
       LOG_ERR(&amp;quot;Disconnect selhal: %d&amp;quot;, ret);
     }     
ret = net_mgmt(NET_REQUEST_WIFI_AP_ENABLE, iface, NULL,0);
	 if (ret) 
	 {
	   LOG_ERR(&amp;quot;AP mode disabled failed: %s&amp;quot;, strerror(-ret));
	 } 
	 else 
	 {
	   LOG_INF(&amp;quot;AP režim uspesnw vypnut \n&amp;quot;);
	 }&lt;/pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I got these errors:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:02:33.297,454] &amp;lt;err&amp;gt; softap: Disconnect selhal: -22
[00:02:33.297,546] &amp;lt;err&amp;gt; wpa_supp: Interface wlan is not in disconnected state
[00:02:33.297,637] &amp;lt;err&amp;gt; softap: AP mode disabled failed: Device or resource busy&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I thing that i have bad parametrs in &lt;span style="color:#0000ff;"&gt;net_mgmt() &lt;span style="color:#000000;"&gt;functions.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#000000;"&gt;Is procedure that I am trying to do correct?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#000000;"&gt;Kind regards&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#000000;"&gt;Jaroslav Havel&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with switching off Wi-Fi interface on nrf7002-DK using SoftAP example</title><link>https://devzone.nordicsemi.com/thread/543465?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 10:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:618e911a-a8ff-4d95-8d58-36441464a98e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To get started with The nRF7002 DK and Wi-Fi development, I strongly recommend you begin with the &lt;a href="https://academy.nordicsemi.com/courses/wi-fi-fundamentals/"&gt;DevAcademy Wi-Fi Fundamentals course&lt;/a&gt; that should take you through all the basics when working with a Nordic Wi-Fi device.&lt;/p&gt;
&lt;p&gt;Due to the summer holiday in Norway we&amp;#39;re currently very short on staff, so delayed replies must be expected.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>