JODY-W2 - System integration manual
UBX-18068879 - R14
Software
Page 54 of 84
C1 - Public
Station mode
3.11.8.1
Using internal supplicant
You can connect to an AP using NXP configuration tools.
☞
The embedded supplicant is not supported in all firmware releases.
the recommended way to configure the station mode.
3.11.8.2
Using wpa_supplicant
Wpa_supplicant
is an open-source configuration manager used to connect to an access point which
uses different security encryption methods. Sources can be found in the location:
The following commands are used to connect to an access point. Initially prepare the configuration
file with some primitive settings:
File: hostapd.conf
interface=uap0
driver=nl80211
ssid=jody-w2
# RF
hw_mode=a
channel=36
country_code=DE
# 11N
ieee80211n=1
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]
# 11AC
ieee80211ac=1
vht_capab=[SHORT-GI-80]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
# Security
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
# ./mlanutl mlan0 passphrase "1;ssid=<ssid>;passphrase=<sharedkey>"
# ./mlanutl mlan0 assocessid <ssid>
# ./mlanutl mlan0 reassoctrl 1
# udhcpc -i mlan0
For example,
# ./mlanutl mlan0 passphrase "1;ssid=ubx-co-AP5G;passphrase=12345678"
# ./mlanutl mlan0 assocessid ubx-co-AP5G
# ./mlanutl mlan0 reassoctrl 1
# udhcpc
–
i mlan0
# cat > /etc/wpa_supplicant.conf << EOF
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
EOF