Integration Manual

JODY-W3 series - System integration manual
UBX-19011209 - R07 Software Page 47 of 71
C2-Restricted
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 uap0 and muap0 interfaces.
# File: /lib/firmware/nxp/init_cfg.conf
# MAC address (interface: address)
mac_addr=uap0: D4:CA:6E:00:1B:18
mac_addr=muap0: D4:CA:6E:00:1B:19
$ insmod moal.ko fw_name=nxp/pcieuart9098_combo_v1.bin cfg80211_wext=0xf auto_ds=2
ps_mode=2 init_cfg=nxp/init_cfg.conf
3.8.5 Antenna configuration
The default antenna configuration after reset is to use 2x2 on both radios for 2.4 GHz and 5 GHz. Since
JODY-W354 and JODY-W374 support only 1x1 for the 2.4 GHz radio on path A, the antenna
configuration must be updated accordingly using the following commands:
mlanutl mlan0 antcfg 0x301 # set PHY#1 to path A+B for 5GHz and path A for 2.4GHz
mlanutl mmlan0 antcfg 0x301 # set PHY#2 to path A+B for 5GHz and path A for 2.4GHz
The same can be achieved by using the iw tool to configure the antennas:
iw phy mwiphy0 set antenna 0x301 # set PHY#1 to path A+B for 5GHz and path A for 2.4GHz
iw phy mwiphy1 set antenna 0x301 # set PHY#2 to path A+B for 5GHz and path A for 2.4GHz
3.8.6 Access point
3.8.6.1 Using hostapd
hostapd
18
is an open-source user space daemon for access point and authentication servers. 802.11ax
configuration is supported with Linux kernel 5.x and hostapd 2.9.
The hostapd configuration file example below shows the parameters for 802.11ax operation in the
5 GHz band with 80 MHz channel width and WPA2 security:
# File: hostapd_ax5g.conf
interface=uap0
driver=nl80211
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ieee80211d=1
country_code=US
beacon_int=100
dtim_period=1
wmm_enabled=1
uapsd_advertisement_enabled=1
ssid=JODY-W3-AX5G
ignore_broadcast_ssid=0
hw_mode=a
channel=36
auth_algs=1
max_num_sta=10
ieee80211n=1
require_ht=0
ht_capab=[LDPC][GF][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][HT40+]
ieee80211ac=1
require_vht=0
vht_capab=[RXLDPC][SHORT-GI-80][SOUNDING-DIMENSION-2][BF-ANTENNA-4][TX-STBC-2BY1][RX-STBC-
1][SU-BEAMFORMER][SU-BEAMFORMEE][MAX-A-MPDU-LEN-EXP7][RX-ANTENNA-PATTERN][TX-ANTENNA-
PATTERN]
18
https://w1.fi/hostapd/