If problem with bt_io_listen occurs the input/output error is the most aproperiate error code to problem rather than invalid argument error code. --- android/pan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/pan.c b/android/pan.c index 3471805..972af89 100644 --- a/android/pan.c +++ b/android/pan.c @@ -636,7 +636,7 @@ static int register_nap_server(void) destroy_nap_device(); error("%s", gerr->message); g_error_free(gerr); - return -EINVAL; + return -EIO; } return 0; -- 1.9.3 -- 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