mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-15 09:02:10 -05:00
wpa_supplicant: report interface events and support querying interface status
Makes information like Multi-AP status (including VLAN ID) accessible Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
f6fd18eb60
commit
d32e051b69
@ -496,6 +496,18 @@ let main_obj = {
|
||||
return libubus.STATUS_NOT_FOUND;
|
||||
}
|
||||
},
|
||||
iface_status: {
|
||||
args: {
|
||||
name: ""
|
||||
},
|
||||
call: function(req) {
|
||||
let iface = wpas.interfaces[req.args.name];
|
||||
if (!iface)
|
||||
return libubus.STATUS_NOT_FOUND;
|
||||
|
||||
return iface.status();
|
||||
},
|
||||
},
|
||||
mld_set: {
|
||||
args: {
|
||||
config: {}
|
||||
@ -728,6 +740,9 @@ return {
|
||||
iface_event("remove", name);
|
||||
},
|
||||
state: function(ifname, iface, state) {
|
||||
let event_data = iface.status();
|
||||
event_data.name = ifname;
|
||||
iface_event("state", ifname, event_data);
|
||||
try {
|
||||
iface_hostapd_notify(ifname, iface, state);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user