VAR-SOM-AM43 Wireless LAN

From Variscite Wiki
Revision as of 13:59, 24 December 2015 by Aviad (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
VAR-SOM-AM43 - WLAN

WiLink WLAN module configuration

VAR-SOM-AM43 V2.X only:
The VAR-SOM-AM43 has a WL183x module. You should configure the WL183x module as follows (only in the first boot):

$ cd /usr/bin/wlconf/
$ ./configure-device.sh

Then choose the correct number of module and antennas on board. For example:
For WL1831:

root@varsomam43:/usr/bin/wlconf# ./configure-device.sh

Please provide the following information.

Are you using a TI module? [y/n] : y
What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1831
Should SISO40 support be applied? [y/n] : n

The device has been successfully configured.
TI Module: y
Chip Flavor: 1831
Number of 2.4GHz Antennas Fitted: 1
Number of 5GHz Antennas Fitted: 0
Diversity Support: n
SISO40 Support: n
Japanese Standards Applied: n

root@varsomam43:/usr/bin/wlconf# [  713.882024] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[  713.909501] wlcore: loaded

For WL1837:

root@varsomam43:/usr/bin/wlconf# ./configure-device.sh

Please provide the following information.

Are you using a TI module? [y/n] : y
What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1837
Should Japanese standards be applied? [y/n] : n
How many 2.4GHz antennas are fitted? [1/2] : 2
How many 5GHz antennas are fitted? [0/1/2] : 2

The device has been successfully configured.
TI Module: y
Chip Flavor: 1837
Number of 2.4GHz Antennas Fitted: 2
Number of 5GHz Antennas Fitted: 2
Diversity Support: y
SISO40 Support: y
Japanese Standards Applied: n

root@varsomam43:/usr/bin/wlconf# [  872.471817] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[  872.499145] wlcore: loaded

MAC address settings

In order to use the built-in TI unique mac address of the module, change the wl1271-nvs.bin file using the calibrator application:

$ calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00
reboot system!

Note: This operation should be done only once


The WLAN MAC addresses for the supported devices are derived as follows:

  • BD_ADDR: 08:00:28:00:00:00
  • WLAN 1: 08:00:28:00:00:01
  • WLAN 2: 08:00:28:00:00:02

When deriving the WLAN addresses from the BD_ADDR, ensure that the organizational unique identifier (OUI) is not changed.
The OUI (first 3 bytes) is pre-assigned by the IEEE to different companies (for example, the TI OUI is 08:00:28). The company that owns the OUI assigns the network identification card (NIC) address (last 3 bytes).

General usage

List SSIDs, from Linux shell type:

$ ifconfig wlan0 up
$ iw wlan0 scan

Connecting to an encrypted network:

Find your network from the above scan command.

$ wpa_passphrase <YourAP> <YourPassword> >wpa.conf
$ ps | grep wpa_supplicant
*kill the wpa_supplicant process if exist.
$ wpa_supplicant -Dnl80211 -iwlan0 -c./wpa.conf -B
$ udhcpc -iwlan0
$ ifconfig