[wifi] Inline the trivial WiFiScanResult accessors (#18613)

This commit is contained in:
Brandon Harvey
2026-08-22 04:14:56 +00:00
committed by GitHub
parent 8e9fb0f93c
commit 5a300e92f1
2 changed files with 7 additions and 15 deletions
@@ -2396,14 +2396,6 @@ bool WiFiScanResult::matches(const WiFiAP &config) const {
}
return true;
}
bool WiFiScanResult::get_matches() const { return this->matches_; }
void WiFiScanResult::set_matches(bool matches) { this->matches_ = matches; }
const bssid_t &WiFiScanResult::get_bssid() const { return this->bssid_; }
uint8_t WiFiScanResult::get_channel() const { return this->channel_; }
int8_t WiFiScanResult::get_rssi() const { return this->rssi_; }
bool WiFiScanResult::get_with_auth() const { return this->with_auth_; }
bool WiFiScanResult::get_is_hidden() const { return this->is_hidden_; }
bool WiFiScanResult::operator==(const WiFiScanResult &rhs) const { return this->bssid_ == rhs.bssid_; }
void WiFiComponent::clear_roaming_state_() {
+7 -7
View File
@@ -319,14 +319,14 @@ class WiFiScanResult {
bool matches(const WiFiAP &config) const;
bool get_matches() const;
void set_matches(bool matches);
const bssid_t &get_bssid() const;
bool get_matches() const { return this->matches_; }
void set_matches(bool matches) { this->matches_ = matches; }
const bssid_t &get_bssid() const { return this->bssid_; }
StringRef get_ssid() const { return this->ssid_.ref(); }
uint8_t get_channel() const;
int8_t get_rssi() const;
bool get_with_auth() const;
bool get_is_hidden() const;
uint8_t get_channel() const { return this->channel_; }
int8_t get_rssi() const { return this->rssi_; }
bool get_with_auth() const { return this->with_auth_; }
bool get_is_hidden() const { return this->is_hidden_; }
int8_t get_priority() const { return priority_; }
void set_priority(int8_t priority) { priority_ = priority; }