Open main menu

DAVE Developer's Wiki β

DESK-MX6-L/Peripherals/WiFi

< DESK-MX6-L
Revision as of 12:13, 13 May 2024 by U0007 (talk | contribs)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
History
Issue Date Notes
2024/05/13 DESK-MX6-L-4.0.1 release


Contents

Peripheral WiFiEdit

Device tree configurationEdit

Here below an example of device tree configuration used on standard DAVE's kit for the AXEL Lite SOM:

From imx6qdl-axelcommon.dtsi:

    pinctrl_usdhc2_sbc: usdhc2-sbc-grp-1 {
	fsl,pins = <
		MX6QDL_PAD_SD2_CMD__SD2_CMD    0x16058
		MX6QDL_PAD_SD2_CLK__SD2_CLK    0x16058
		MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x16058
		MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x16058
			MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x16058
			MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x16058
	>;
    };

Accessing the peripheralEdit

Once initialized, the WiFi device is mapped to the standard wlan0 network device

Linux messages at boot timeEdit

...
...
[   12.280208] mmc1: queuing unknown CIS tuple 0x01 [d9 01 ff] (3 bytes)
[   12.289246] mmc1: queuing unknown CIS tuple 0x1a [01 01 00 02 07] (5 bytes)
[   12.292858] mmc1: queuing unknown CIS tuple 0x1b [c1 41 30 30 ff ff 32 00] (8 bytes)
[   12.293600] mmc1: queuing unknown CIS tuple 0x14 [] (0 bytes)
[   12.295981] hifDeviceInserted: Dumping clocks (50000000,25000000)
[   12.462210] [TELIT] Using WE866C6 board data.
[   12.521942] ol_download_firmware: chip_id:0x5020001 board_id:0x0
[   12.522379] __ol_transfer_bin_file: Failed to get bdwlan30_c6.b00:-2
[   12.522393] __ol_transfer_bin_file: Trying to load default bdwlan30_c6.bin
[   12.524403] Board extended Data download address: 0x0
[   12.540922] __ol_transfer_bin_file: Loading setup file qsetup30.bin
[   12.541022] __ol_transfer_bin_file: Failed to get qsetup30.bin:-2
[   13.460133] R0: wlan: [215:E :SAP] dfs_init_radar_filters[217]: Unknown dfs domain 0
[   13.476303] Target Ready! : transmit resources : 3 size:1792, MaxMsgsPerHTCBundle = 32
[   13.568537] target uses HTT version 3.60; host uses 3.28
[   13.568557] *** Warning: host/target HTT versions are different, though compatible!
[   13.585229] DEBUGFS PEER MAC = 0x2:0x21:0x7e:0x2:0x10:0x6a
[   13.602253] Host SW:4.5.25.46, FW:0.0.0.111, HW:QCA93x7_REV1_1
[   13.616457] ENTER sme_set_btc_coex_dutycycle = 30
[   13.616473] ENTER sme_set_btc_coex_dutycycle =30
[   13.616767] ath_hif_sdio: HIF (Atheros/multi-bss)
[   13.616784] wlan: driver loaded in 1570000
...
...

Enable the interface and check statusEdit

root@desk-mx6:~# ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:21:7e:81:10:6a  txqueuelen 3000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@desk-mx6:~# rfkill list
0: bt_rfkill: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
root@desk-mx6:~#

Usage with iw toolEdit

root@desk-mx6:~# iw wlan0 scan
BSS d0:21:f9:35:8e:88(on wlan0)
        last seen: 66.551s [boottime]
        TSF: 4572051265456 usec (52d, 22:00:51)
        freq: 5180
        beacon interval: 100 TUs
        capability: ESS Privacy SpectrumMgmt ShortSlotTime RadioMeasure (0x1511)
        signal: -50.00 dBm
        last seen: 0 ms ago
        Information elements from Probe Response frame:
        SSID: daveguest
        Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
        DS Parameter set: channel 36
        Country: IT     Environment: Indoor/Outdoor
                Channels [36 - 36] @ 23 dBm
                Channels [40 - 40] @ 23 dBm
...
...
                 * Serial Number: CN716FX062
                 * Primary Device Type: 3-0050f204-1
                 * Device name:
                 * Config methods: Display
                 * Version2: 2.0
                 * Unknown vendor extension. len=23
root@desk-mx6:~# iw wlan0 scan | grep SSID
        SSID: daveguest
                 * SSID List
        SSID: davesrl
                 * SSID List
        SSID: DIRECT-C9-HP PageWide Pro 477dw
root@desk-mx6:~#

Additional informationEdit