mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
wiphy: add wiphy_regdom_is_updating
This allows a module to check the current status of the regdom in case it misses the wiphy event (e.g. registers after the STARTED event).
This commit is contained in:
parent
83a5f6edd1
commit
1709148484
@ -921,6 +921,11 @@ int wiphy_estimate_data_rate(struct wiphy *wiphy,
|
||||
out_data_rate);
|
||||
}
|
||||
|
||||
bool wiphy_regdom_is_updating(struct wiphy *wiphy)
|
||||
{
|
||||
return wiphy->pending_freqs != NULL;
|
||||
}
|
||||
|
||||
uint32_t wiphy_state_watch_add(struct wiphy *wiphy,
|
||||
wiphy_state_watch_func_t func,
|
||||
void *user_data, wiphy_destroy_func_t destroy)
|
||||
|
@ -134,6 +134,7 @@ int wiphy_estimate_data_rate(struct wiphy *wiphy,
|
||||
const void *ies, uint16_t ies_len,
|
||||
const struct scan_bss *bss,
|
||||
uint64_t *out_data_rate);
|
||||
bool wiphy_regdom_is_updating(struct wiphy *wiphy);
|
||||
|
||||
uint32_t wiphy_state_watch_add(struct wiphy *wiphy,
|
||||
wiphy_state_watch_func_t func, void *user_data,
|
||||
|
Loading…
Reference in New Issue
Block a user