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.
This commit is contained in:
Paulo Borges 2013-04-12 17:41:02 -03:00 committed by Denis Kenzior
parent 600539ed2a
commit 82909259c4
1 changed files with 1 additions and 1 deletions

View File

@ -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;