sta: remove duplicate code

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>
This commit is contained in:
David Bauer
2021-12-11 12:48:10 +01:00
parent 2ccb99e672
commit 806e647cbc
2 changed files with 6 additions and 10 deletions

View File

@@ -173,11 +173,6 @@ usteer_local_node_assoc_update(struct sta_info *si, struct blob_attr *data)
}
si->connected = STA_CONNECTED;
}
if (si->node->freq < 4000)
si->sta->seen_2ghz = 1;
else
si->sta->seen_5ghz = 1;
}
static void