Move the sta frequency-seen logic to usteer_sta_info_update.
This method is called on every occurence the seen frequency
is set now, thus removing the duplicate code.
Signed-off-by: David Bauer <mail@david-bauer.net>
}
si->connected = STA_CONNECTED;
}
-
- if (si->node->freq < 4000)
- si->sta->seen_2ghz = 1;
- else
- si->sta->seen_5ghz = 1;
}
static void
si->signal = signal;
si->seen = current_time;
+
+ if (si->node->freq < 4000)
+ si->sta->seen_2ghz = 1;
+ else
+ si->sta->seen_5ghz = 1;
+
usteer_sta_info_update_timeout(si, config.local_sta_timeout);
}
if (!sta)
return -1;
- if (freq < 4000)
- sta->seen_2ghz = 1;
- else
- sta->seen_5ghz = 1;
-
si = usteer_sta_info_get(sta, node, &create);
usteer_sta_info_update(si, signal, false);
si->roam_scan_done = current_time;