mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 02:30:18 +01:00
wifi: don't bring device up if it's rfkilled
This commit is contained in:
parent
ba85e8915c
commit
47527601af
1 changed files with 5 additions and 2 deletions
|
|
@ -976,9 +976,12 @@ real_hw_is_up (NMDevice *device)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
real_hw_bring_up (NMDevice *dev, gboolean *no_firmware)
|
||||
real_hw_bring_up (NMDevice *device, gboolean *no_firmware)
|
||||
{
|
||||
return nm_system_device_set_up_down (dev, TRUE, no_firmware);
|
||||
if (!NM_DEVICE_WIFI_GET_PRIVATE (device)->enabled)
|
||||
return FALSE;
|
||||
|
||||
return nm_system_device_set_up_down (device, TRUE, no_firmware);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue