3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

wiphy: remove pending_freqs from wiphy_regdom_is_updating

We can determine this info based on the dump IDs.
This commit is contained in:
James Prestwood 2022-12-16 13:27:36 -08:00 committed by Denis Kenzior
parent 95fa101861
commit 16b420e2ff

View File

@ -979,7 +979,7 @@ int wiphy_estimate_data_rate(struct wiphy *wiphy,
bool wiphy_regdom_is_updating(struct wiphy *wiphy)
{
return wiphy->pending_freqs != NULL;
return wiphy->dump_id || (!wiphy->self_managed && wiphy_dump_id);
}
uint32_t wiphy_state_watch_add(struct wiphy *wiphy,