<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Android-11: wpa_supplicant not able to connect with AP in Wi-Fi® + Bluetooth® + 802.15.4</title>
    <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1558111#M1169</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195030"&gt;@nandan-khant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your wpa_supplicant.conf file, you didn't allow wpa_supplicant to scan ap .&lt;/P&gt;&lt;P&gt;for example, you can try to add the line in the config file.&lt;/P&gt;&lt;P&gt;ap_scan=1&lt;/P&gt;&lt;P&gt;But for WFA cert, connection or disconnection is controlled by commands, so it is&amp;nbsp; no problem using wpa_cli to scan and connect to AP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;weidong&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 02:53:06 GMT</pubDate>
    <dc:creator>weidong_sun</dc:creator>
    <dc:date>2022-11-23T02:53:06Z</dc:date>
    <item>
      <title>Android-11: wpa_supplicant not able to connect with AP</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1557607#M1168</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185688"&gt;@ocourson&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;W&lt;/SPAN&gt;e are facing an issue with connecting DUT STA with AP using wpa_supplicant in Android.&lt;/P&gt;
&lt;P&gt;Our DUT is STA and it is not able to connect with AP using the command line. We are able to connect with AP successfully when we use GUI.&lt;/P&gt;
&lt;P&gt;Command: wpa_supplicant -i wlan0 -D nl80211 -c /data/vendor/wifi/wpa/wpa.conf -B&lt;/P&gt;
&lt;P&gt;wpa_supplicant.conf file:&lt;/P&gt;
&lt;P&gt;ctrl_interface=/data/vendor/wifi/wpa/sockets&lt;BR /&gt;network={&lt;BR /&gt;ssid="test_5GHz"&lt;BR /&gt;key_mgmt=NONE&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;The DUT is not able to connect with&amp;nbsp;&lt;STRONG&gt;test_5GHz&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;AP.&lt;/P&gt;
&lt;P&gt;When I perform &lt;STRONG&gt;scanning&lt;/STRONG&gt; &lt;STRONG&gt;explicitly&lt;/STRONG&gt; using the following command, it is able to connect successfully.&lt;/P&gt;
&lt;P&gt;$ wpa_cli -i wlan0 scan&lt;/P&gt;
&lt;P&gt;Attaching the console and logcat logs for your reference.&lt;/P&gt;
&lt;P&gt;Please help to resolve this issue on Android.&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Nandan Khant&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 16:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1557607#M1168</guid>
      <dc:creator>nandan-khant</dc:creator>
      <dc:date>2024-01-17T16:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Android-11: wpa_supplicant not able to connect with AP</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1558111#M1169</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195030"&gt;@nandan-khant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your wpa_supplicant.conf file, you didn't allow wpa_supplicant to scan ap .&lt;/P&gt;&lt;P&gt;for example, you can try to add the line in the config file.&lt;/P&gt;&lt;P&gt;ap_scan=1&lt;/P&gt;&lt;P&gt;But for WFA cert, connection or disconnection is controlled by commands, so it is&amp;nbsp; no problem using wpa_cli to scan and connect to AP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;weidong&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 02:53:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1558111#M1169</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2022-11-23T02:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Android-11: wpa_supplicant not able to connect with AP</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1558252#M1170</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have already tried below parameters:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;scan_ssid=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ap_scan=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Still, it is not working on Android.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;wpa_supplicant.conf&amp;nbsp;&lt;/STRONG&gt;shared previously connects &lt;STRONG&gt;successfully&lt;/STRONG&gt; in &lt;STRONG&gt;Linux&lt;/STRONG&gt; without adding the above parameters.&lt;/P&gt;&lt;P&gt;It is not working on Android with the same&amp;nbsp;&lt;STRONG&gt;wpa_supplicant.conf.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wpa_supplicant.conf file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ctrl_interface=/data/vendor/wifi/wpa/sockets&lt;BR /&gt;network={&lt;BR /&gt;ssid="test_5GHz"&lt;BR /&gt;key_mgmt=NONE&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It should work on Android as well with the same&amp;nbsp;wpa_supplicant.conf file. Because It works on Linux.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Nandan Khant&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 06:41:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1558252#M1170</guid>
      <dc:creator>nandan-khant</dc:creator>
      <dc:date>2022-11-23T06:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Android-11: wpa_supplicant not able to connect with AP</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559158#M1171</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195030"&gt;@nandan-khant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;STRONG&gt;It should work on Android as well with the same&amp;nbsp;wpa_supplicant.conf file. Because It works on Linux.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;could you check if the wpa_supplicant service has been started in android init.rc ?&lt;/P&gt;&lt;P&gt;if yes, when you run "&lt;SPAN&gt;wpa_supplicant -i wlan0 -D nl80211 -c /data/vendor/wifi/wpa/wpa.conf -B&lt;/SPAN&gt;" on command line, 2 wpa_supplicant services are running.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt; wpa config in WFA lab(for your reference)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have ever checked wpa_supplicant.conf file on host of WFA lab sigma tool,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;disabled=1&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is in their&amp;nbsp;wpa_supplicant.conf.&lt;/P&gt;&lt;P&gt;It means that sigmal tool doesn't allow wpa_supplicant to connect to AP automatically.&lt;/P&gt;&lt;P&gt;So I don't know if your local WFA required it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt; Current situation on your side&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the device is in WFA lab and run in sigma tool system, if the DUT can start wpa_supplicant and after getting instructions from ucc,it can connect to AP.&amp;nbsp; I think we should care about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope above advice is helpful for you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;weidong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:01:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559158#M1171</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2022-11-24T07:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Android-11: wpa_supplicant not able to connect with AP</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559180#M1172</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Let me try to explain the query again.&lt;/P&gt;&lt;P&gt;The query is not with respect to certification.&lt;/P&gt;&lt;P&gt;Please try the below steps at your end:&lt;/P&gt;&lt;P&gt;1. Use NXP processor as host&lt;/P&gt;&lt;P&gt;2. Flash Android-11 OS.&lt;/P&gt;&lt;P&gt;3. Connect W8897 Wifi chipset.&lt;/P&gt;&lt;P&gt;4. Load driver and firmware.&lt;/P&gt;&lt;P&gt;5. Disable the android framework. (&lt;STRONG&gt;NOTE&lt;/STRONG&gt;: We have to disable the framework because we have to use the command line in this use case)&lt;/P&gt;&lt;P&gt;6. Kill all the supplicants.&lt;/P&gt;&lt;P&gt;7. Copy wpa_supplicant.conf file on the NXP processor.&lt;/P&gt;&lt;P&gt;8. Execute the below command to start the wpa_supplicant:&lt;/P&gt;&lt;P&gt;$&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;/vendor/bin/hw/wpa_supplicant -i wlan0 -D nl80211 -c /data/vendor/wifi/wpa/wpa.conf -B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check and Observe if the DUT STA is able to connect with AP configured in wpa_supplicant.conf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AFTER STEP-8, THE DEVICE WILL NOT ABLE TO CONNECT WITH AP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YOU HAVE TO RUN THE FOLLOWING COMMAND:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$ WPA_CLI -i wlan0 scan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After the above command, the DUT STA will connect successfully.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Try the above steps at your end.&lt;/P&gt;&lt;P&gt;-&amp;gt; Share your observations and Results.&lt;/P&gt;&lt;P&gt;In case of any doubt or query, please share your availability and we can have a&amp;nbsp;&lt;STRONG&gt;DEBUG call and discuss this issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandan Khant&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559180#M1172</guid>
      <dc:creator>nandan-khant</dc:creator>
      <dc:date>2022-11-24T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Android-11: wpa_supplicant not able to connect with AP</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559205#M1173</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195030"&gt;@nandan-khant&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Discussed questions on wpa_supplicant in android source with internal team.&lt;/P&gt;
&lt;P&gt;wpa_supplicant in android source doesn't support&amp;nbsp; automatic scan after it starts.&lt;/P&gt;
&lt;P&gt;if you really wants to use the function, you will have to tune wpa_supplicant source code in android.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="weidong_sun_0-1669275894521.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/201570iC9E700EB3BFECCE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="weidong_sun_0-1669275894521.jpeg" alt="weidong_sun_0-1669275894521.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;file name should be wpa_supplicant.c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[In addition]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;wpa_supplicant in linux supports the feature(automatic scan)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;weidong&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:46:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559205#M1173</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2022-11-24T07:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Android-11: wpa_supplicant not able to connect with AP</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559395#M1174</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the suggestion.&lt;/P&gt;&lt;P&gt;I have verified it and it is working. You can close this case now.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Nandan Khant&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:49:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Android-11-wpa-supplicant-not-able-to-connect-with-AP/m-p/1559395#M1174</guid>
      <dc:creator>nandan-khant</dc:creator>
      <dc:date>2022-11-24T11:49:08Z</dc:date>
    </item>
  </channel>
</rss>

