Skip to content

Commit

Permalink
hostapd: add measurement report value for beacon reports
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
PolynomialDivision authored and Ansuel committed Oct 13, 2022
1 parent 3413409 commit e5cab97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/network/services/hostapd/src/src/ap/ubus.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit e5cab97

Please sign in to comment.