LILY-W1 series - System integration manual
UBX-15027600 - R09
Software
Page 41 of 64
C1 - Public
☞
Adding
-ddd
to this command generates debug logs. This command option is useful for
debugging any issues related to the bring-up with access point.
To assign an IP address to the access point interface:
The list of client stations that are currently associated with the AP can be obtained with the “
uaputl
sta_list
” command. For example:
3.11.2
Wi-Fi station mode
Wpa_supplicant can handle the connection to the access point. For this, create a configuration file
with the following network settings:
Listing 7: wpa_supplicant.conf
Then, run the wpa_supplicant daemon using the configuration file:
To configure the IP address through DHCP:
The
iwconfig mlan0
command can be used to display parameters and statistics of the wireless
network interface.
3.12
Driver debugging
Driver debugging is provided via the kernel print function
printk
and the
proc
file system. The driver
states are recorded and can be retrieved through the proc file system during runtime. The following
files containing the debug information are provided (the actual location is dependent on the Linux
kernel version):
•
/proc/mwlan/config or /proc/net/mwlan/config
•
/proc/mwlan/mlanX/info or /proc/net/mwlan/mlanX/info
•
/proc/mwlan/mlanX/debug or /proc/net/mwlan/mlanX/debug
☞
mlanX is the name of the device node created at runtime. Other possibilities are uapX and wfdX
for the acces point and Wi-Fi Direct interfaces respectively.
Debug messages are also printed to the kernel ring buffer through printk calls. These messages can
be accessed raw using the
/proc/kmsg
interface or by the
dmesg
command. Alternatively, this can be
handled by more advanced logging facilities.
ifconfig uap0 192.168.1.1
./uaputl sta_list
Number of STA = 1
STA 1 information:
=====================
MAC Address: 60:67:20:
xx
:
xx
:
xx
Power mfg status: active
Rssi :
-56 dBm
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
scan_ssid=1
ssid="MyAP"
key_mgmt=WPA-PSK
psk="12345678"
}
wpa_supplicant -D nl80211 -i mlan0 -
c /etc/wpa_supplicant.conf
-B
udhcpc
-i mlan0