From 16b420e2ff6a3b58549e057e8d4844a8ce98b76b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 16 Dec 2022 13:27:36 -0800 Subject: [PATCH] wiphy: remove pending_freqs from wiphy_regdom_is_updating We can determine this info based on the dump IDs. --- src/wiphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiphy.c b/src/wiphy.c index 6b8f00a1..3777bd58 100644 --- 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,