36 Commits

Author SHA1 Message Date
Anjan Chanda
ba16ed9b48 Add SPDX-License-Identifier: GPL-2.0-only 2025-01-20 14:34:04 +01:00
Anjan Chanda
fe16454f6a add debug and logging support 2025-01-20 14:08:59 +01:00
Anjan Chanda
42aa29aae6 struct wifimngr_device now stores 'enum wifi_band' 2024-03-06 16:26:05 +01:00
Anjan Chanda
0a0fdb1257 preserve minimal radio and interface object states till next reconfig 2024-03-05 13:21:31 +01:00
Marek Puzyniak
34a733e2bb Increase WIFI_IF_MAX_NUM to 32
Use 16 as interface name length intead of
WIFI_DEV_MAX_NUM.
2023-12-11 12:36:33 +00:00
Janusz Dziedzic
8f64538aaf move events re-registration to uloop timer
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>
2023-09-22 21:43:35 +02:00
Orr Mazor
fd0dba6a37 Update HUP handle to reconfigure events manager
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>
2023-09-11 16:58:58 +02:00
Marina Maslova
1d2ac09305 Add SIGHUP handler to sync ubus objects 2023-06-27 13:13:12 +03:00
sverma
a248c1508b do not call wifimngr_exit() multiple times in error path 2022-01-10 14:08:38 +05:30
Anjan Chanda
c22cb76547 test: update wifimngr_event_main() usage 2021-11-30 09:33:33 +01:00
Anjan Chanda
cdfb864987 fix static code warnings 2021-11-29 23:38:19 +01:00
Anjan Chanda
ed27167741 do not create ubus object for config disabled interface 2021-06-17 11:20:45 +02:00
Janusz Dziedzic
40541dc1fa Allow to use wildcard for events
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>
2021-03-23 11:03:56 +01:00
Grzegorz Sluja
2bd4f47368 Apply leveled debug mechanism to wifimngr
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>
2020-09-21 13:40:22 +02:00
Janusz Dziedzic
a457bf1fae remove forks and start using uloop monitor
Today uloop already support monitoring
file desriptors.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2020-07-27 10:03:48 +02:00
Jakob Olsson
db8e2e44d6 add CI pipeline tests
with correct rebase
2020-02-12 11:27:23 +01:00
Jakob Olsson
208be0cfc7 Revert "add CI pipeline tests"
This reverts commit 2f0a90117f.
2020-02-12 11:07:04 +01:00
Jakob Olsson
2f0a90117f add CI pipeline tests 2020-02-12 10:58:57 +01:00
Anjan Chanda
fa5b303b1b use libeasy.so utility functions 2020-02-11 12:09:44 +01:00
Anjan Chanda
6bd069295f move event registration function out of main() 2020-01-02 13:31:23 +01:00
Anjan Chanda
905c0db840 remove legacy and unused code 2020-01-02 12:59:24 +01:00
Anjan Chanda
08313f1ad2 create 'ap' or 'backhaul' object based on wifi mode 2019-09-16 16:01:07 +02:00
Anjan Chanda
1f16609e96 update copyright info 2019-08-14 14:00:33 +02:00
Anjan Chanda
0a7244b977 clean exit of child(ren) 2019-08-14 11:34:02 +02:00
Anjan Chanda
b0eb8d276d wifimngr free alloc'd memory on exit 2019-08-13 16:21:59 +02:00
Anjan Chanda
91c548ae09 handle wifimngr_cmd_main return value 2019-08-13 13:49:17 +02:00
Anjan Chanda
9f9784d328 add versioning 2019-07-26 11:42:33 +02:00
Anjan Chanda
cfedf56db2 use new event framework 2019-07-23 15:07:09 +02:00
Anjan Chanda
c4d4d3be61 add wps methods from devel 2019-07-18 10:44:38 +02:00
Anjan Chanda
b0c6bfd132 alloc ubus methods during init 2019-07-17 16:42:56 +02:00
Anjan Chanda
5b9731e6c1 show only methods that are implemented in libwifi 2019-07-17 13:19:54 +02:00
Anjan Chanda
c76061c4ff wip - fix status method 2019-03-11 16:59:29 +01:00
Anjan Chanda
210cbb8c68 wip - add 'wifi' object and status 2019-03-08 16:32:06 +01:00
Anjan Chanda
664305529a create 'wifi.radio.*' and 'wifi.ap.*' ubus objects 2019-02-20 11:48:07 +01:00
Anjan Chanda
fab1214236 deprecate 'wifix' in favour of newer 'wifi' definitions 2019-02-19 16:00:53 +01:00
Anjan Chanda
fa0c6298ed initial revision
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)
2018-05-28 17:21:25 +02:00