NetworkManager/src/devices/bluetooth
Thomas Haller a7aca2ab08 core: fix crash with bluetooth device factory wrongly claiming NAP connection
The bluetooth device *never* manages NAP connection. Hence, checking for
nm_bt_vtable_network_server in "nm-bluez-manager.c" is wrong.
Especially, because nm_bt_vtable_network_server is only initialized
much later, so during initial start, the bluetooth factory would wronly
claim to support it. This leads to a crash when having a NAP connection.

Also, the bridge factory requires the bluetooth plugin. It should only
claim to support NAP when the bluetooth plugin is present. That
way, we get a proper "missing plugin" error message, instead of failing
later during activation.

It seems to me, distributing the logic to various match_connection()
functions makes it more complicated, because the implementation is
spread out and interact in complicated ways. Anyway.

Fixes: 8665cdfeff
2017-08-06 07:50:48 +02:00
..
nm-bluez-common.h bluetooth: expose known HCI adapters to devices 2017-06-01 11:28:57 +02:00
nm-bluez-device.c all: change handling of connection.type for bluetooth NAP and in general 2017-06-07 09:07:17 +02:00
nm-bluez-device.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-bluez-manager.c core: fix crash with bluetooth device factory wrongly claiming NAP connection 2017-08-06 07:50:48 +02:00
nm-bluez4-adapter.c bluetooth/trivial: rename the defines 2017-05-31 20:10:30 +02:00
nm-bluez4-adapter.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-bluez4-manager.c bluetooth/trivial: rename the defines 2017-05-31 20:10:30 +02:00
nm-bluez4-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-bluez5-dun.c all: use O_CLOEXEC for file descriptors 2016-12-13 11:26:59 +01:00
nm-bluez5-dun.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-bluez5-manager.c bluetooth: assert against registering same device multiple times 2017-06-07 09:07:18 +02:00
nm-bluez5-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-bt-error.c all: use NM_CACHED_QUARK_FCN() to define cached quarks 2017-02-10 14:33:52 +01:00
nm-bt-error.h bluez: split out errors 2014-10-13 14:27:33 +02:00
nm-device-bt.c device: retry autoactivation upon a component addition 2017-05-31 20:18:12 +02:00
nm-device-bt.h modem: add define for ModemManager D-Bus path 2017-05-12 17:29:33 +02:00