NetworkManager/src/devices/bluetooth
Lubomir Rintel fb874e6cda bluetooth: don't set the ifindex after the device has been activated
The Bluetooth DUN device's NMModem would signal the reset of ifindex to zero
when it's disconnected and the NMDeviceBt would accordingly update the
bluetooth device's ip ifindex. This is not okay since commit ab4578302d
('device: refactor nm_device_set_ip_ifindex() and set_ip_iface()') which,
although claiming to be a refactoring, made such use of
nm_device_set_ip_ifindex() illegal. Resetting the ifindex is anyway not
necessary, since it's taken care of _cleanup_generic_post().

Let's leave the ifindex alone once the device is activated, in a manner
analogous to what NMDeviceModem.

Fixes: ab4578302d ('device: refactor nm_device_set_ip_ifindex() and set_ip_iface()')
Fixes: 78ca2a70c7 ('device: don't set invalid ip-iface'):
(cherry picked from commit a5ca504b5b)
2019-10-09 12:48:29 +02:00
..
meson.build build: meson: Add trailing commas 2018-12-20 13:50:34 +01:00
nm-bluez-common.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bluez-device.c core,libnm: add AddConnection2() D-Bus API to block autoconnect from the start 2019-07-25 15:26:49 +02:00
nm-bluez-device.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bluez-manager.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bluez4-adapter.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bluez4-adapter.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bluez4-manager.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bluez4-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-bluez5-dun.c device/bluetooth: explicitly ignore return value of ioctl() in nm_bluez5_dun_cleanup() 2019-08-02 18:19:49 +02:00
nm-bluez5-dun.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bluez5-manager.c bluetooth: fix leak in get_managed_objects_cb() 2019-08-23 13:18:43 +02:00
nm-bluez5-manager.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bt-error.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-bt-error.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-device-bt.c bluetooth: don't set the ifindex after the device has been activated 2019-10-09 12:48:29 +02:00
nm-device-bt.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00