1. First follow this to prepare your iMX.

Quick Start with iMX6 Ultralite EVK and Mass Market Modules

 

2. Below are logs which shows using WPA supplicant with bcmdhd.

 

3. Below restart_wpa_supplicant is a script. The commands in it are

     killall wpa_supplicant

     wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211

   

root@imx6ulevk:~# ./bcm_imx/scripts/insmod_dhd.sh

FW=/lib/firmware/bcm/fw_bcmdhd.bin

NVRAM=/lib/firmware/bcm/bcmdhd.cal

dhd_module_init in

Power-up adapter 'DHD generic adapter'

wifi_platform_bus_enumerate device present 1

mmc0: queuing unknown CIS tuple 0x80 (2 bytes)

mmc0: queuing unknown CIS tuple 0x80 (3 bytes)

mmc0: queuing unknown CIS tuple 0x80 (3 bytes)

mmc0: queuing unknown CIS tuple 0x80 (7 bytes)

mmc0: queuing unknown CIS tuple 0x80 (3 bytes)

mmc0: new high speed SDIO card at address 0001

F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x3

DHD: dongle ram size is set to 524288(orig 524288) at 0x0

wifi_platform_get_mac_addr

CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211)

wl_create_event_handler(): thread:wl_event_handler:4da started

CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0x88f4141c

dhd_attach(): thread:dhd_watchdog_thread:4db started

dhd_attach(): thread:dhd_dpc:4dc started

dhd_deferred_work_init: work queue initialized

dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.

dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)

wifi_platform_get_mac_addr

Firmware up: op_mode=0x0005, MAC=98:f1:70:6e:8b:08

Firmware version = wl0: Dec 29 2015 15:56:15 version 7.45.41.24 (r608913) FWID 01-4e412465

dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79

dhd_wlfc_init: query wlfc_mode succeed, fw_caps=0x1c

dhd_wlfc_init(): wlfc_mode=0x1c, ret=0

 

 

Dongle Host Driver, version 1.141.88 (r)

Compiled from

Register interface [wlan0]  MAC: 98:f1:70:6e:8b:08

 

 

root@imx6ulevk:~# CFG80211-ERROR) wl_update_wiphybands : error reading vhtmode (-23)

CFG80211-ERROR) wl_cfg80211_connect : Connecting withff:ff:ff:ff:ff:ff channel (0) ssid "NexusV", len (6)

 

 

wl_bss_connect_done succeeded with 02:1a:11:fb:92:fb

wl_bss_connect_done succeeded with 02:1a:11:fb:92:fb

 

 

root@imx6ulevk:~# restart_wpa_supplicant

+ killall wpa_supplicant

CFG80211-ERROR) wl_cfg80211_disconnect : Reason 3

+ sleep 1

CFG80211-ERROR) wl_is_linkdown :

cfg80211: Calling CRDA to update world regulatory domain

Link down Reason : WLC_E_LINK

link down if wlan0 may call cfg80211_disconnected. event : 16, reason=2 from 02:1a:11:fb:92:fb

+ wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211

Successfully initialized wpa_supplicant

rfkill: Cannot open RFKILL control device

_dhd_wlfc_mac_entry_update():1649, entry(32)

CFG80211-ERROR) wl_update_wiphybands : error reading vhtmode (-23)

+ set +x

root@imx6ulevk:~# CFG80211-ERROR) wl_cfg80211_connect : Connecting withff:ff:ff:ff:ff:ff channel (0) ssid "NexusV", len (6)

 

 

wl_bss_connect_done succeeded with 02:1a:11:fb:92:fb

wl_bss_connect_done succeeded with 02:1a:11:fb:92:fb

 

 

root@imx6ulevk:~# cat /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

driver_param=/var/run/wlan0

update_config=1

 

 

network={

        ssid="NexusV"

        psk="12345678"

}

root@imx6ulevk:~# wl ver

1.107 RC5.0

wl0: Dec 29 2015 15:56:15 version 7.45.41.24 (r608913) FWID 01-4e412465

root@imx6ulevk:~# wl revinfo

vendorid 0x14e4

deviceid 0x43e2

radiorev 0x3da000

chipnum 0xa9a6

chiprev 0x1

chippackage 0x3

corerev 0x27

boardid 0x726

boardvendor 0x14e4

boardrev P101

driverrev 0x72d2918

ucoderev 0x413080c

bus 0x0

phytype 0xc

phyrev 0x0

anarev 0x0

nvramrev 0

root@imx6ulevk:~# wl status

SSID: "NexusV"

Mode: Managed   RSSI: -52 dBm   SNR: 0 dB       noise: -91 dBm  Flags: RSSI on-channel  Channel: 6

BSSID: 02:1A:11:FB:92:FB        Capability: ESS WEP ShortSlot

Supported Rates: [ 1(b) 2(b) 5.5(b) 6 9 11(b) 12 18 24 36 48 54 ]

RSN:

        multicast cipher: AES-CCMP

        unicast ciphers(1): AES-CCMP

        AKM Suites(1): WPA-PSK

        Capabilities(0x000c): No Pre-Auth, Pairwise, 16 PTK Replay Ctrs1 GTK Replay Ctr

HT Capable:

        Chanspec: 2.4GHz channel 6 20MHz (0x1006)

        Primary channel: 6

        HT Capabilities: SGI20

        Supported MCS : [ 0 1 2 3 4 5 6 7 ]

 

 

root@imx6ulevk:~# udhcpc -i wlan0                                                                                                               

udhcpc (v1.23.1) started

Sending discover...

Sending discover...

Sending select for 192.168.43.41...

Lease of 192.168.43.41 obtained, lease time 3600

RTNETLINK answers: File exists

/etc/udhcpc.d/50default: Adding DNS 192.168.43.1

root@imx6ulevk:~# ping 192.168.43.1

PING 192.168.43.1 (192.168.43.1): 56 data bytes

64 bytes from 192.168.43.1: seq=0 ttl=64 time=66.056 ms

64 bytes from 192.168.43.1: seq=1 ttl=64 time=26.829 ms

64 bytes from 192.168.43.1: seq=2 ttl=64 time=24.099 ms

64 bytes from 192.168.43.1: seq=3 ttl=64 time=21.426 ms

64 bytes from 192.168.43.1: seq=4 ttl=64 time=22.528 ms

^C

--- 192.168.43.1 ping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max = 21.426/32.187/66.056 ms

root@imx6ulevk:~#

CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7 | VT102 | Offline | ttyUSB0