hostapd: add measurement report value for beacon reports
authorNick Hainke <vincent@systemli.org>
Sat, 8 Jan 2022 07:55:21 +0000 (08:55 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 13 Oct 2022 14:53:37 +0000 (16:53 +0200)
commite5cab973a4b5ad1a10787b2312129b346f3a581a
treea14714120f95be496aafe9ace79e3d3270be0dc7
parent3413409ef66972073a81f61bd4c46ec55e93f50f
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>
package/network/services/hostapd/src/src/ap/ubus.c