If a device is created before any rfkill event is received, it will not
be blocked. Otherwise, it will mirror the technology blocked status.
{
int err;
- DBG("device %p", device);
+ DBG("device %p %d", device, device->blocked);
if (!device->driver || !device->driver->enable)
return -EOPNOTSUPP;
{
struct connman_device *device;
const char *str;
+ enum connman_service_type service_type;
DBG("node %s type %d", node, type);
device->phyindex = -1;
+ service_type = __connman_device_get_service_type(device);
+ device->blocked = __connman_technology_get_blocked(service_type);
+
switch (type) {
case CONNMAN_DEVICE_TYPE_UNKNOWN:
case CONNMAN_DEVICE_TYPE_VENDOR: