diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 75fa7f7c..0fda950d 100644 --- a/src/device.c +++ b/src/device.c @@ -1058,6 +1058,9 @@ int connman_device_set_regdom(struct connman_device *device, if (device->driver == NULL || device->driver->set_regdom == NULL) return -ENOTSUP; + if (device->powered == FALSE) + return -EINVAL; + return device->driver->set_regdom(device, alpha2); } |