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:
James Prestwood 2022-08-03 14:36:37 -07:00 committed by Denis Kenzior
parent 9b628dd02d
commit aa0d8f1283
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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,