JODY-W2 - System integration manual
UBX-18068879 - R14
Software
Page 48 of 84
C1 - Public
Using reserved MAC addresses
JODY-W2 series modules have four unique MAC addresses that are reserved specifically for each
module variant. Two of these addresses are separately dedicated for use with Bluetooth radio and Wi-
Fi and are stored in the OTP during production. The other two are reserved for other local interfaces.
The Wi-Fi driver assigns unique MAC addresses to the local interfaces, sequentially. The address
given to each interface is derived from the primary MAC address.
Example
D4:CA:6E:00:1B:16
–
Bluetooth interface
D4:CA:6E:00:1B:17
–
Wi-Fi station interface (mlan0)
D4:CA:6E:00:1B:18
–
Reserved for secondary module interfaces
D4:CA:6E:00:1B:19
–
Reserved for secondary module interfaces
☞
The use of reserved MAC addresses is recommended to avoid possible collisions with the MAC
addresses of other modules.
You can change the MAC address of the module by configuring the
init_cfg.conf
file when loading
the driver. Note that the driver expects the
init_cfg.conf
file to be present in the directory relative
to
/lib/firmware/
.
In the following example, the MAC addresses of the Wi-Fi interfaces have been changed in the
init_cfg.conf
file. The changes have been implemented to meet the application requirements so that
each interface is assigned with a unique MAC address to avoid conflicts. The addresses are assigned
to the primary (
uap0
) and secondary (
uap1
) interfaces.
☞
To configure a second AP interface (
uap1
), you need to set the parameter
max_uap_bss=2
when
loading the driver.
Device detection
When JODY-W2 series modules are are connected to the host system through SDIO, confirmation
that the SDIO card has been detected is reported in the kernel log:
Using SDIO-UART driver package
JODY-W2 modules provide two options for downloading the firmware, as described in
. The
commands included in the following examples show how the different driver and firmware
combinations are used. The downloading method is based on firmware version and the given
argument for loading the driver.
File: /lib/firmware/mrvl/init_cfg.conf
# MAC address (interface: address)
mac_addr=uap0: D4:CA:6E:00:1B:18
mac_addr=uap1: D4:CA:6E:00:1B:19
insmod mlan.ko && insmod sd8987.ko fw_name=mrvl/sdsd8987_combo_jody-w2-sdio.bin
cfg80211_wext=0xf cal_data_cfg=none
init_cfg=mrvl/init_cfg.conf max_uap_bss=2
# ifconfig
–
a | grep HWaddr
mlan0 Link encap:Ethernet HWaddr D4:CA:6E:00:1B:17
uap0 Link encap:Ethernet HWaddr D4:CA:6E:00:1B:18
uap1 Link encap:Ethernet HWaddr D4:CA:6E:00:1B:19
mmc1: new ultra high speed SDR104 SDIO card at address 0001