commit 16b420e2ff6a3b58549e057e8d4844a8ce98b76b
parent 95fa10186184108cd7d0b4cb894fa7c71b0991c8
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 16 Dec 2022 13:27:36 -0800
wiphy: remove pending_freqs from wiphy_regdom_is_updating
We can determine this info based on the dump IDs.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wiphy.c b/src/wiphy.c
@@ -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,