While we have to free resources, don't do it
from signal handler context. Simple register
uloop timer.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
So when the wifi is reconfigured, the
events manager wil reconfigure as well.
This is needed for a few cases:
1. If an interface we are monitoring for events
gets deleted and readded, we need to unregister
and reregister to it, otherwise we will not
get any of it's events.
2. If when wifimngr started some interface
that we should monitor (for example wl0.1 when
we should monitor any wl*) didn't exist yet
and is added later.
Signed-off-by: Orr Mazor <o.mazor@genexis.eu>
When set (/etc/wifi.json):
"ifname" : "wl0*"
We will register for each netdev with
prefix wl0 eg. wl0,wl0.1,wl0.2,wl0.3
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
The following debug functions can be used in wifimngr:
wifimngr_err(...)
wifimngr_warn(...)
wifimngr_info(...)
wifimngr_dbg(...)
Which are redirected to stderr based on the current wifi debug level:
ERR_LEVEL (3)
WARN_LEVEL (4)
INFO_LEVEL (6)
DBG_LEVEL (7)
Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
implements the following ubus wifi methods -
scan
scanresults
add_neighbor (for adding 802.11k neighbor BSS)
del_neighbor (for removing a neighbor BSS)
list_neighbor (to get list of neighbor BSS in the ESS)
request_neighbor (request beacon report from a STA)
request_transition (send BSS transition request to a STA)