hostapd: expose beacon reports through ubus
authorNick Hainke <vincent@systemli.org>
Fri, 6 Dec 2019 17:17:06 +0000 (18:17 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 29 Mar 2020 23:46:50 +0000 (01:46 +0200)
commitc8ef465e10f46fd017cc9c3e455cc368a2b9da2b
tree2e68e366bf302103ace169156acb0bec2a29e5dc
parent86440659b5694b82300854778ed3ac20f86c63f1
hostapd: expose beacon reports through ubus

Subscribe to beacon reports through ubus.
Can be used for hearing map and client steering purposes.

First enable rrm:
    ubus call hostapd.wlan0 bss_mgmt_enable '{"beacon_report":True}'

Subscribe to the hostapd notifications via ubus.

Request beacon report:
    ubus call hostapd.wlan0 rrm_beacon_req
'{"addr":"00:xx:xx:xx:xx:xx", "op_class":0, "channel":1,
"duration":1,"mode":2,"bssid":"ff:ff:ff:ff:ff:ff", "ssid":""}'

Signed-off-by: Nick Hainke <vincent@systemli.org>
[rework identation]
Signed-off-by: David Bauer <mail@david-bauer.net>
package/network/services/hostapd/patches/600-ubus_support.patch
package/network/services/hostapd/src/src/ap/ubus.c
package/network/services/hostapd/src/src/ap/ubus.h