usteer: track RRM and BSS-TM support per connection
BSS transition management as well as RRM capabilities have to be considered not for the STA but per STA connection. Most prominently, a STA might not support BSS-TM when connected without PMF. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
8
sta.c
8
sta.c
@@ -210,15 +210,15 @@ usteer_handle_sta_event(struct usteer_node *node, const uint8_t *addr,
|
||||
}
|
||||
|
||||
bool
|
||||
usteer_sta_supports_beacon_measurement_mode(struct sta *sta, enum usteer_beacon_measurement_mode mode)
|
||||
usteer_sta_supports_beacon_measurement_mode(struct sta_info *si, enum usteer_beacon_measurement_mode mode)
|
||||
{
|
||||
switch (mode) {
|
||||
case BEACON_MEASUREMENT_PASSIVE:
|
||||
return sta->rrm & (1 << 4);
|
||||
return si->rrm & (1 << 4);
|
||||
case BEACON_MEASUREMENT_ACTIVE:
|
||||
return sta->rrm & (1 << 5);
|
||||
return si->rrm & (1 << 5);
|
||||
case BEACON_MEASUREMENT_TABLE:
|
||||
return sta->rrm & (1 << 6);
|
||||
return si->rrm & (1 << 6);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user