From a03a76ea60867c8b0158c4c9bbe5e800717f6a0e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 30 May 2014 09:35:42 -0500 Subject: [PATCH] bluez: fix incorrect error code comparing Bluetooth connections C&P error in my commit 4674f1039940fadc7bbc8573323e8dac0ad2f727. --- src/devices/bluetooth/nm-device-bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c index a9e44bb6f3..67138ee35d 100644 --- a/src/devices/bluetooth/nm-device-bt.c +++ b/src/devices/bluetooth/nm-device-bt.c @@ -211,7 +211,7 @@ check_connection_compatible (NMDevice *device, if (memcmp (priv->bdaddr, array->data, ETH_ALEN) != 0) { g_set_error (error, - NM_BT_ERROR, NM_BT_ERROR_CONNECTION_INVALID, + NM_BT_ERROR, NM_BT_ERROR_CONNECTION_INCOMPATIBLE, "The connection did not match the device's Bluetooth address."); return FALSE; }