Wiki Home » imx6 openrex » wifi

wifi

Last modified by Administrator on 2017/08/10 04:31

Info

Intel Dual Band Wireless-AC 3160

Mini PCIe slot must provide PCie and USB signals for WiFi+BT functionality.

RF enable

[email protected]:~# rfkill list
0: hci0: bluetooth
        Soft blocked: yes
        Hard blocked: no
1: phy0: wlan
        Soft blocked: yes
        Hard blocked: no
[email protected]:~# rfkill unblock bluetooth
[email protected]:~# rfkill unblock wlan

WLAN

List pcie bus

[email protected]:~# lspci
00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)
01:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)

Kernel log

[email protected]:~# dmesg -t | grep -i iwl
iwlwifi 0000:01:00.0: enabling device (0140 -> 0142)
iwlwifi 0000:01:00.0: loaded firmware version 25.30.13.0 op_mode iwlmvm
iwlwifi 0000:01:00.0: Detected Intel(R) Dual Band Wireless AC 3160, REV=0x164
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'

Network scanning

[email protected]:~# rfkill unblock wlan
[email protected]:~# ip link set wlan0 up
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
[email protected]:~# iw dev wlan0 scan
BSS d4:ca:6d:52:74:e1(on wlan0)
        TSF: 292600224389 usec (3d, 09:16:40)
        freq: 2412
        beacon interval: 100 TUs
        capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
        signal: -48.00 dBm
        last seen: 0 ms ago
        SSID: Test
        Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
        DS Parameter set: channel 1
        ERP: <no flags>
        HT capabilities:
                Capabilities: 0x100c
                        HT20
                        SM Power Save disabled
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT RX MCS rate indexes supported: 0-15
                HT TX MCS rate indexes are undefined
        RSN:     * Version: 1
                 * Group cipher: CCMP
                 * Pairwise ciphers: CCMP
                 * Authentication suites: PSK
                 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
        Extended supported rates: 24.0 36.0 48.0 54.0
        HT operation:
                 * primary channel: 1
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 0
                 * HT protection: no
                 * non-GF present: 0
                 * OBSS non-GF present: 0
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        WMM:     * Parameter version 1
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec

Ping test

[email protected]:~# rfkill unblock wlan
[email protected]:~# ip link set wlan0 up
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
iwlwifi 0000:01:00.0: L1 Disabled - LTR Disabled
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[email protected]:~# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
[email protected]:~# wpa_cli
wpa_cli v2.5
Copyright (c) 2004-2015, Jouni Malinen <[email protected]> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wlan0'

Interactive mode

> scan
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
> scan_result
bssid / frequency / signal level / flags / ssid
d4:ca:6d:52:74:e1       2412    -43     [WPA2-PSK-CCMP][ESS]    Test
> add_network
0
> set_network 0 ssid "Test"
OK
> set_network 0 psk "testpassword"
OK
> enable_network 0
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
wlan0: authenticate with d4:ca:6d:52:74:e1
<3>SME: Trying to authenticate with d4:ca:6d:52:74:e1 (SSID='Test' freq=2412 MHz)
wlan0: authenticated
<3>Trying to associate with d4:ca:6d:52:74:e1 (SSID='Test' freq=2412 MHz)
wlan0: RX AssocResp from d4:ca:6d:52:74:e1 (capab=0x431 status=0 aid=3)
wlan0: associated
<3>Associated with d4:ca:6d:52:74:e1
<3>WPA: Key negotiation completed with d4:ca:6d:52:74:e1 [PTK=CCMP GTK=CCMP]
<3>CTRL-EVENT-CONNECTED - Connection to d4:ca:6d:52:74:e1 completed [id=0 id_str=]
> status
bssid=d4:ca:6d:52:74:e1
freq=2412
ssid=Stud2
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
address=00:1e:64:d0:9c:38
uuid=fa260ade-5597-5cf0-af20-ad9392282172
> save_config
OK
> quit

[email protected]:~# udhcpc -i wlan0
udhcpc (v1.24.1) started
Sending discover...
Sending select for 192.168.100.16...
Lease of 192.168.100.16 obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 192.168.100.252

[email protected]:~# ping www.google.com
PING www.google.com (216.58.214.196) 56(84) bytes of data.
64 bytes from bud02s23-in-f4.1e100.net (216.58.214.196): icmp_seq=1 ttl=49 time=17.0 ms

BT

List usb bus

[email protected]:~# lsusb
Bus 001 Device 004: ID 8087:07dc  
Bus 001 Device 002: ID 0424:2514  
Bus 001 Device 001: ID 1d6b:0002

Kernel log

[email protected]:~# dmesg -t | grep -i hci0     
Bluetooth: hci0: read Intel version: 3707100100012d0d00
bluetooth hci0: Direct firmware load for intel/ibt-hw-37.7.10-fw-1.0.1.2d.d.bseq failed with error -2
bluetooth hci0: Falling back to user helper
Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.0.1.2d.d.bseq
Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated

List BT config

[email protected]:~# hciconfig -a hci0
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:1E:64:D0:9C:3C  ACL MTU: 1021:5  SCO MTU: 96:6
        DOWN
        RX bytes:1181 acl:0 sco:0 events:129 errors:0
        TX bytes:21557 acl:0 sco:0 commands:128 errors:0
        Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF
        Link mode: SLAVE ACCEPT 

Connect to BT device

[email protected]:~# rfkill unblock bluetooth
[email protected]:~# hciconfig hci0 up
[email protected]:~# hciconfig -a hci0
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:1E:64:D0:9C:3C  ACL MTU: 1021:5  SCO MTU: 96:6
        UP RUNNING
        RX bytes:1755 acl:0 sco:0 events:159 errors:0
        TX bytes:21925 acl:0 sco:0 commands:158 errors:0
        Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF
        Link mode: SLAVE ACCEPT
        Name: 'Bluemoon Universal Bluetooth Host Controller'
        Class: 0x001f00
        Service Classes: Unspecified
        Device Class: Invalid Device Class!
        HCI Version: 4.0 (0x6)  Revision: 0xf00
        LMP Version: 4.0 (0x6)  Subversion: 0xf00
        Manufacturer: Intel Corp. (2)

[email protected]:~# /usr/libexec/bluetooth/bluetoothd &
[email protected]:~# bluetoothctl
[NEW] Controller 00:1E:64:D0:9C:3C BlueZ 5.37 [default]
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 00:1E:64:D0:9C:3C Discoverable: no
[bluetooth]# agent on
Agent registered
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1E:64:D0:9C:3C Discovering: yes
[NEW] Device 2C:54:CF:3D:30:12 G2 mini
[bluetooth]# pair 2C:54:CF:3D:30:12
Attempting to pair with 2C:54:CF:3D:30:12
[CHG] Device 2C:54:CF:3D:30:12 Connected: yes
Request confirmation
[agent] Confirm passkey 897940 (yes/no): yes
[CHG] Device 2C:54:CF:3D:30:12 Modalias: bluetooth:v00C4p13A1d1000
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001106-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 0000112d-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 2C:54:CF:3D:30:12 Paired: yes
Pairing successful
[CHG] Device 2C:54:CF:3D:30:12 Connected: no
[bluetooth]# scan off
[CHG] Device 2C:54:CF:3D:30:12 RSSI is nil
[CHG] Controller 00:1E:64:D0:9C:3C Discovering: no
Discovery stopped
[bluetooth]# d
Invalid command
[bluetooth]# devices
Device 2C:54:CF:3D:30:12 G2 mini
[bluetooth]# connect 2C:54:CF:3D:30:12
Attempting to connect to 2C:54:CF:3D:30:12
[CHG] Device 2C:54:CF:3D:30:12 Connected: yes
Connection successful
[G2 mini]# info 2C:54:CF:3D:30:12
Device 2C:54:CF:3D:30:12
        Name: G2 mini
        Alias: G2 mini
        Class: 0x5a020c
        Icon: phone
        Paired: yes
        Trusted: no
        Blocked: no
        Connected: yes
        LegacyPairing: no
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Headset AG                (00001112-0000-1000-8000-00805f9b34fb)
        UUID: NAP                       (00001116-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
        UUID: SIM Access                (0000112d-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
        UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        Modalias: bluetooth:v00C4p13A1d1000
[G2 mini]# quit
Agent unregistered
[DEL] Controller 00:1E:64:D0:9C:3C BlueZ 5.37 [default]
Tags:
Created by Administrator on 2017/05/11 18:27

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.1 - Documentation