Wifi LAN Active - how to know
-
Is there the possibility to know which wifi LAN the OMEGA2 is using?
or a specific information to read in some file like?
vi /etc/config/wirelessThank-you!!
Paolo Moro
-
I noticed the section config wifi-iface 'sta', bu when I use the command line
wifisetup add -ssid $SSID -encr $ENC -password $PasskeyWifiis there the possibility to force then specific $SSID?
config wifi-iface 'sta'
option device 'radio0'
option mode 'sta'
option ifname 'apcli0'
option encryption 'psk2'
option network 'wwan'
option disabled '0'
option key 'mywifi'
option ssid 'xxxx'
-
@Paolo-Moro What firmware version are you using please?
Wifisetup add command:
Functionality: Add a new WiFi network to the Omega's settings
Usage: wifisetup add -ssid <ssid> -encr <encryption type> -password <password>
Valid encryption types [psk2, psk, wep, none]wifisetup add -ssid 'ssid_of_1st_network' -encr 'psk2' -password 'password_of_1st_network'
wifisetup add -ssid 'ssid_of_2nd_network' -encr 'psk2' -password 'password_of_2nd_network'
wifisetup add -ssid 'ssid_of_3rd_network' -encr 'psk2' -password 'password_of_3rd_network'
...
The above commands append these entries to the '/etc/config/wireless' file:
# Omega2+ FW v0.3.2 b222 root@Omega-5BE1:~# cat /etc/config/wireless ... config wifi-config option key 'password_of_1st_network' option ssid 'ssid_of_1st_network' option encryption 'psk2' config wifi-config option key 'password_of_2nd_network' option ssid 'ssid_of_2nd_network' option encryption 'psk2' config wifi-config option key 'password_of_3rd_network' option ssid 'ssid_of_3rd_network' option encryption 'psk2' ...
These WiFi networks are in a priority
listorder from top to down.
After Power On or a reboot or awifi
command or awifisetup [options] <command> <parameters>
or ... Omega2 first will try to connect to the top (here the 1st) network.
If the 1st network is unreachable then it'll try to connect to the 2nd network and so on...You can change the priority with the
wifisetup priority -ssid <ssid> -move <up|down|top>
command.
You can remove a network with thewifisetup remove -ssid <ssid>
command.
See alsowifisetup --help
.For example the apcli0 section of the
iwconfig
command will show you if the Omega is successfully connected to one of these networks.
See also FAQ: How do I check if I'm successfully connected to a WiFi network?Good luck!
-
@György-Farkas said in Wifi LAN Active - how to know:
You can change the priority with the wifisetup priority -ssid <ssid> -move <up|down|top> command.
Thank-you very much