<?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 imx7 hostapd headache  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx7-hostapd-headache/m-p/657797#M100898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using an imx7sabresd with Yocto 4.1.15 ( Jethro ) with the hostapd package version 2.4 and despite many hours it's still not showing up as an access-point. I've followed many set-ups but still no AP, the AP "looks" like its trying to work.&lt;/P&gt;&lt;P&gt;A few strange things: 1 - all the documentation and web forums speak of /etc/hostapd/hostapd.conf and &lt;CODE&gt;etc/default/hostapd&lt;/CODE&gt;&amp;nbsp; my Yocto build has neither directory &lt;STRONG&gt;only /etc/hostapd.conf.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confirmed and tested wlan0 and can do an 'iw' scan for other APs etc, When hostapd runs I get the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx7dsabresd:~# hostapd /etc/hostapd.conf&lt;BR /&gt;Configuration file: /etc/hostapd.conf&lt;BR /&gt;rfkill: Cannot open RFKILL contro&lt;/P&gt;&lt;P&gt;Dongle Host Driver, version 1.141.88 (r)&lt;BR /&gt;Compiled from &lt;BR /&gt;l device&lt;BR /&gt;wl_android_wifi_on in&lt;BR /&gt;mmc1: queuing unknown CIS tuple 0x80 (2 bytes)&lt;BR /&gt;mmc1: queuing unknown CIS tuple 0x80 (7 bytes)&lt;BR /&gt;mmc1: queuing unknown CIS tuple 0x80 (6 bytes)&lt;BR /&gt;F1 signature OK, socitype:0x1 chip:0x4339 rev:0x1 pkg:0x0&lt;BR /&gt;DHD: dongle ram size is set to 786432(orig 786432) at 0x180000&lt;BR /&gt;dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.&lt;BR /&gt;dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)&lt;BR /&gt;wifi_platform_get_mac_addr&lt;BR /&gt;Firmware up: op_mode=0x0005, MAC=00:ae:fa:c7:82:19&lt;BR /&gt;Firmware version = wl0: Feb 17 2016 12:06:31 version 6.37.39.36 (r614533)&lt;BR /&gt;dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79&lt;BR /&gt;dhd_wlfc_init(): wlfc_mode=0x0, ret=-23&lt;BR /&gt;wl_create_event_handler(): thread:wl_event_handler:1cc started&lt;BR /&gt;CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0xa860143c&lt;BR /&gt;CFG80211-ERROR) wl_cfg80211_del_station : Disconnect STA : ff:ff:ff:ff:ff:ff scb_val.val 3&lt;BR /&gt;Using interface wlan0 with hwaddrCFG80211-ERROR) check_dev_role_integrity : 00:ae:fa:c7:82:19 and ssid "GOMOJO"&lt;/P&gt;&lt;P&gt;device role select failed&lt;BR /&gt;wlan0: interface state UNINITIALIZED-&amp;gt;ENABLED&lt;BR /&gt;wlan0: AP-ENABLED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only this that looks possibly wrong is: device role select failed. According to forums I do the following:&lt;/P&gt;&lt;P&gt;"...find the line &lt;CODE&gt;#DAEMON_CONF=""&lt;/CODE&gt; and replace it with &lt;CODE&gt;DAEMON_CONF="/etc/hostapd/hostapd.conf"&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Again no such directory on my imx7 ( only /etc/hostapd.conf )&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Some help on this would greatly be appreciated!!&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BR,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Ed.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2016 15:44:15 GMT</pubDate>
    <dc:creator>edwardtyrrell</dc:creator>
    <dc:date>2016-09-28T15:44:15Z</dc:date>
    <item>
      <title>imx7 hostapd headache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7-hostapd-headache/m-p/657797#M100898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using an imx7sabresd with Yocto 4.1.15 ( Jethro ) with the hostapd package version 2.4 and despite many hours it's still not showing up as an access-point. I've followed many set-ups but still no AP, the AP "looks" like its trying to work.&lt;/P&gt;&lt;P&gt;A few strange things: 1 - all the documentation and web forums speak of /etc/hostapd/hostapd.conf and &lt;CODE&gt;etc/default/hostapd&lt;/CODE&gt;&amp;nbsp; my Yocto build has neither directory &lt;STRONG&gt;only /etc/hostapd.conf.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confirmed and tested wlan0 and can do an 'iw' scan for other APs etc, When hostapd runs I get the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx7dsabresd:~# hostapd /etc/hostapd.conf&lt;BR /&gt;Configuration file: /etc/hostapd.conf&lt;BR /&gt;rfkill: Cannot open RFKILL contro&lt;/P&gt;&lt;P&gt;Dongle Host Driver, version 1.141.88 (r)&lt;BR /&gt;Compiled from &lt;BR /&gt;l device&lt;BR /&gt;wl_android_wifi_on in&lt;BR /&gt;mmc1: queuing unknown CIS tuple 0x80 (2 bytes)&lt;BR /&gt;mmc1: queuing unknown CIS tuple 0x80 (7 bytes)&lt;BR /&gt;mmc1: queuing unknown CIS tuple 0x80 (6 bytes)&lt;BR /&gt;F1 signature OK, socitype:0x1 chip:0x4339 rev:0x1 pkg:0x0&lt;BR /&gt;DHD: dongle ram size is set to 786432(orig 786432) at 0x180000&lt;BR /&gt;dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.&lt;BR /&gt;dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)&lt;BR /&gt;wifi_platform_get_mac_addr&lt;BR /&gt;Firmware up: op_mode=0x0005, MAC=00:ae:fa:c7:82:19&lt;BR /&gt;Firmware version = wl0: Feb 17 2016 12:06:31 version 6.37.39.36 (r614533)&lt;BR /&gt;dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79&lt;BR /&gt;dhd_wlfc_init(): wlfc_mode=0x0, ret=-23&lt;BR /&gt;wl_create_event_handler(): thread:wl_event_handler:1cc started&lt;BR /&gt;CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0xa860143c&lt;BR /&gt;CFG80211-ERROR) wl_cfg80211_del_station : Disconnect STA : ff:ff:ff:ff:ff:ff scb_val.val 3&lt;BR /&gt;Using interface wlan0 with hwaddrCFG80211-ERROR) check_dev_role_integrity : 00:ae:fa:c7:82:19 and ssid "GOMOJO"&lt;/P&gt;&lt;P&gt;device role select failed&lt;BR /&gt;wlan0: interface state UNINITIALIZED-&amp;gt;ENABLED&lt;BR /&gt;wlan0: AP-ENABLED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only this that looks possibly wrong is: device role select failed. According to forums I do the following:&lt;/P&gt;&lt;P&gt;"...find the line &lt;CODE&gt;#DAEMON_CONF=""&lt;/CODE&gt; and replace it with &lt;CODE&gt;DAEMON_CONF="/etc/hostapd/hostapd.conf"&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Again no such directory on my imx7 ( only /etc/hostapd.conf )&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Some help on this would greatly be appreciated!!&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BR,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Ed.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 15:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7-hostapd-headache/m-p/657797#M100898</guid>
      <dc:creator>edwardtyrrell</dc:creator>
      <dc:date>2016-09-28T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: imx7 hostapd headache</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7-hostapd-headache/m-p/657798#M100899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fix was simple yet hard to find. For others:&lt;/P&gt;&lt;P&gt;Stop hostapd then "echo 2 &amp;gt; /sys/module/bcmdhd/parameters/op_mode". This will set the driver mode to AP mode and "device role select failed" will disappear when next starting hostapd.&amp;nbsp; Restart hostapd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 16:47:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7-hostapd-headache/m-p/657798#M100899</guid>
      <dc:creator>edwardtyrrell</dc:creator>
      <dc:date>2016-10-05T16:47:08Z</dc:date>
    </item>
  </channel>
</rss>

