diff options
author | Nick Hainke <vincent@systemli.org> | 2022-01-08 08:55:21 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-10-13 16:53:37 +0200 |
commit | e5cab973a4b5ad1a10787b2312129b346f3a581a (patch) | |
tree | a14714120f95be496aafe9ace79e3d3270be0dc7 /package/network | |
parent | 3413409ef66972073a81f61bd4c46ec55e93f50f (diff) | |
download | upstream-e5cab973a4b5ad1a10787b2312129b346f3a581a.tar.gz upstream-e5cab973a4b5ad1a10787b2312129b346f3a581a.tar.bz2 upstream-e5cab973a4b5ad1a10787b2312129b346f3a581a.zip |
hostapd: add measurement report value for beacon reports
Add the measurement report value to the beacon reports send via ubus. It
is possible to derive from the measurement report if a station refused to
do a beacon report and why. It is important to know why a station refuses
to do a beacon-report. In particular, we should not request a beacon
report from a station again that refused a beacon-report before.
The rejection reasons can be found by looking at the bits defined by:
- MEASUREMENT_REPORT_MODE_ACCEPT
- MEASUREMENT_REPORT_MODE_REJECT_LATE
- MEASUREMENT_REPORT_MODE_REJECT_INCAPABLE
- MEASUREMENT_REPORT_MODE_REJECT_REFUSED
Suggested-by: Ian Clowes <clowes_ian@hotmail.com>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/src/src/ap/ubus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index 85281f4197..b7b8343892 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -2019,6 +2019,7 @@ void hostapd_ubus_notify_beacon_report( blobmsg_add_macaddr(&b, "bssid", rep->bssid); blobmsg_add_u16(&b, "antenna-id", rep->antenna_id); blobmsg_add_u16(&b, "parent-tsf", rep->parent_tsf); + blobmsg_add_u16(&b, "rep-mode", rep_mode); ubus_notify(ctx, &hapd->ubus.obj, "beacon-report", b.head, -1); } |