From 82909259c4886a89c00c7ae2fe502d9b99e45647 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 12 Apr 2013 17:41:02 -0300 Subject: emulator: Change feature check to attend HFP 1.6 HFP 1.6 adds a new feature called Codec Negotitation. For the HF Role, this feature is stored in bit 8 of the supported features bitmap. This patch changes the range of valid HF feature bitmaps to 2^8-1. --- src/emulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emulator.c') diff --git a/src/emulator.c b/src/emulator.c index 0817b5de..70505b5c 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -453,7 +453,7 @@ static void brsf_cb(GAtServer *server, GAtServerRequestType type, if (g_at_result_iter_next_number(&iter, &val) == FALSE) goto fail; - if (val < 0 || val > 127) + if (val < 0 || val > 255) goto fail; em->r_features = val; -- cgit v1.2.3