ubus: don't request measurement from unsupported STAs
Don't request measurements from STAs which do not support the specific measurement mode. Otherwise, hostapd complains in the syslog about unsupported measurement modes. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
15
sta.c
15
sta.c
@@ -202,6 +202,21 @@ usteer_handle_sta_event(struct usteer_node *node, const uint8_t *addr,
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool
|
||||
usteer_sta_supports_beacon_measurement_mode(struct sta *sta, enum usteer_beacon_measurement_mode mode)
|
||||
{
|
||||
switch (mode) {
|
||||
case BEACON_MEASUREMENT_PASSIVE:
|
||||
return sta->rrm & (1 << 4);
|
||||
case BEACON_MEASUREMENT_ACTIVE:
|
||||
return sta->rrm & (1 << 5);
|
||||
case BEACON_MEASUREMENT_TABLE:
|
||||
return sta->rrm & (1 << 6);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void __usteer_init usteer_sta_init(void)
|
||||
{
|
||||
usteer_timeout_init(&tq);
|
||||
|
Reference in New Issue
Block a user