Janusz Dziedzic
6586840149
fix -Werror problems
2025-12-15 10:06:25 +01:00
Anjan Chanda
a57eea40c9
fallback to wifi-device 'macaddr' if available
2025-12-08 11:51:25 +01:00
Anjan Chanda
4f316850f3
apmld: add 'sta_ratings' for associated STAs
2025-11-06 12:20:04 +01:00
Janusz Dziedzic
d31989b0e4
reconf crash fix
2025-10-13 11:28:44 +02:00
Janusz Dziedzic
6aac836a75
country refactor fix use after free
2025-10-09 16:57:02 +02:00
Anjan Chanda
18d72dc537
flush/get scanresults cache on reconfig
2025-10-07 19:40:33 +02:00
Anjan Chanda
86bbd22b01
scanresults: allocate cache as needed and default set cache=true
...
The 'scanresults' method will return cached results from last scan.
If 'fresh' results are needed from the kernel, call 'scanresults'
with cache = false. This is not necessary however, as wifimgr updates
scanresults cache from the SCAN_FINISHED events. So, scanresults are
expected to be always up-to-date.
The "elapsed" duration, when present in the output, denotes how old
the results are in seconds.
2025-09-19 21:23:47 +02:00
Anjan Chanda
c12a4de290
define WIFI_CACHE_SCANRESULTS to cache scanresults
2025-05-27 20:19:16 +02:00
Anjan Chanda
197ed64954
sta-ratings: use sta_ratings_calculate()
...
Use newer API sta ratings calculate() for 'sta_ratings' command.
Also show STA's latest rating in 'stations' dump.
2025-05-20 11:05:29 +02:00
Janusz Dziedzic
fdda435c98
CI fix
2025-05-16 10:24:51 +02:00
Anjan Chanda
fb335fd78c
sta_ratings - command provides STA ratings
2025-05-07 16:50:24 +02:00
Janusz Dziedzic
36fde14921
split block_sta mld/nonmld
2025-02-28 09:59:17 +01:00
Anjan Chanda
607e13029f
update object name references
2025-02-20 10:29:54 +01:00
Janusz Dziedzic
e9098aa119
apmld dump beacon
2025-02-18 20:02:44 +01:00
Janusz Dziedzic
287b54f2d7
mld mode - fallback to wifi-iface
2025-01-30 09:36:38 +00:00
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
Janusz Dziedzic
e62d1826dd
introduce "block_sta" method
2024-10-28 19:57:22 +01:00
Janusz Dziedzic
9815814eec
add ubus "blocked_stas" method
2024-10-28 19:26:35 +01:00
Anjan Chanda
30b0e4a5d3
attach 'help' commands to the wifi objects
2024-07-11 15:49:27 +02:00
Anjan Chanda
4079f480c8
blobmsg_add_macaddr() - helper to print macaddress
2024-05-31 13:24:14 +02:00
Anjan Chanda
844b008ea9
introduce scanresults caching
...
The 'scanresults' method now takes an optional argument 'cache' of
type boolean. When 'cache' is passed as 'true', wifimngr returns cached
scanresults from an earlier scan, instead of fetching the results from
wireless driver.
2024-04-24 10:46:33 +02:00
Janusz Dziedzic
c90528ad10
Fix mlo cases:
...
wifi.mld.<iface> status
wifi.ap.<iface> status
wifi.ap.<iface> stations
2024-03-27 08:16:05 +00:00
Anjan Chanda
3f28502746
initial work for wifi.mld.* object
2024-03-27 08:16:05 +00:00
Anjan Chanda
b552a5b4af
free allocated objects in wifimngr_exit()
2024-03-06 16:26:05 +01:00
Anjan Chanda
f79f0139d9
update file headers notice
2024-03-06 16:26:05 +01:00
Anjan Chanda
42aa29aae6
struct wifimngr_device now stores 'enum wifi_band'
2024-03-06 16:26:05 +01:00
Anjan Chanda
927f6b7bf1
move command attributes and their policies to policy.c
2024-03-06 16:26:05 +01:00
Anjan Chanda
528b816095
dump_beacon: return error when corresponding AP interface is not IFF_UP
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
Janusz Dziedzic
646887db86
radio isup - get from UCI
2024-03-01 09:48:01 +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
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
Janusz Dziedzic
f75901e3e5
save UCI configured band
...
Allow to get it for radio/iface.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu >
2023-08-25 11:11:44 +02:00
Marina Maslova
1d2ac09305
Add SIGHUP handler to sync ubus objects
2023-06-27 13:13:12 +03:00
Anjan Chanda
63ba4a1bae
map wifi-device radio name to phy name
2022-10-18 09:30:29 +02: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
Anjan Chanda
d3459074b1
method 'scanresults' can accept 'bssid' arg
2020-01-02 14:52:11 +01:00
Anjan Chanda
08313f1ad2
create 'ap' or 'backhaul' object based on wifi mode
2019-09-16 16:01:07 +02:00
Anjan Chanda
7d65bf397b
redefine wps methods and cleanup macros
2019-08-16 14:17:53 +02:00
Anjan Chanda
f7473c7619
add 'mgmt' and 'diagnostic' objects
2019-08-14 15:26:19 +02:00
Anjan Chanda
1f16609e96
update copyright info
2019-08-14 14:00:33 +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