From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> In case the PSM is not valid ignore it so we are still able to connect to RFCOMM. --- client/bluetooth.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/client/bluetooth.c b/client/bluetooth.c index b49a82e..56f80fe 100644 --- a/client/bluetooth.c +++ b/client/bluetooth.c @@ -261,7 +261,8 @@ static void search_callback(uint8_t type, uint16_t status, } data = sdp_data_get(rec, 0x0200); - if (data != NULL) + /* PSM must be odd and lsb of upper byte must be 0 */ + if (data != NULL && (data->val.uint16 & 0x0101) == 0x0001) ch = data->val.uint16; sdp_record_free(rec); -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html