diff options
author | Paulo Borges <paulo.borges@openbossa.org> | 2013-04-12 17:41:02 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-04-15 07:23:28 -0500 |
commit | 82909259c4886a89c00c7ae2fe502d9b99e45647 (patch) | |
tree | 79f0ca70f64ad6b4f27c58ce80c39b1c5650755c /src/emulator.c | |
parent | 600539ed2a812223e50994e33eba3d7bc6b57941 (diff) | |
download | ofono-82909259c4886a89c00c7ae2fe502d9b99e45647.tar.bz2 |
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.
Diffstat (limited to 'src/emulator.c')
-rw-r--r-- | src/emulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |