mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
wiphy: add two regulatory domain state events
Events to indicate when a regulatory domain wiphy dump has started and ended. This is important because certain actions such as scanning need to be delayed until the dump has finished.
This commit is contained in:
parent
9b628dd02d
commit
aa0d8f1283
@ -276,6 +276,8 @@ static void device_wiphy_state_changed_event(struct wiphy *wiphy,
|
||||
|
||||
switch (event) {
|
||||
case WIPHY_STATE_WATCH_EVENT_RFKILLED:
|
||||
case WIPHY_STATE_WATCH_EVENT_REGDOM_STARTED:
|
||||
case WIPHY_STATE_WATCH_EVENT_REGDOM_DONE:
|
||||
break;
|
||||
case WIPHY_STATE_WATCH_EVENT_POWERED:
|
||||
if (device->dbus_powered)
|
||||
|
@ -56,6 +56,8 @@ enum {
|
||||
enum wiphy_state_watch_event {
|
||||
WIPHY_STATE_WATCH_EVENT_POWERED,
|
||||
WIPHY_STATE_WATCH_EVENT_RFKILLED,
|
||||
WIPHY_STATE_WATCH_EVENT_REGDOM_STARTED,
|
||||
WIPHY_STATE_WATCH_EVENT_REGDOM_DONE,
|
||||
};
|
||||
|
||||
typedef void (*wiphy_state_watch_func_t)(struct wiphy *wiphy,
|
||||
|
Loading…
Reference in New Issue
Block a user