OSDN Git Service

GATT: make last service end group handle equal to 0xFFFF
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 16 Apr 2018 14:55:06 +0000 (07:55 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 17 Apr 2018 08:28:19 +0000 (08:28 +0000)
commit1cd8e1850305e5d20ee8e0bf1782083227ca0541
treefb035510ccfba215c59f56f3a44cc14183b3ce10
parent751f854e2f156e3a245ce01f0380c81d0dea2c01
GATT: make last service end group handle equal to 0xFFFF

ESR06 (errata 4065) added sentence:
"The End Group Handle of the last service in a device can be 0xFFFF."
It talks about last service, not last primary service. Right now,
secondary service added after last primary service will result in in
last primary service being corrupted - descriptor added to last
characteristic, and some characteristics added.

Bug: 78107486
Change-Id: I6a146fce2c946cdff176ff79f147830e29d3b807
(cherry picked from 4c6007cfc42efbb7f6fb9bd1dc6c609f68ccd9a6)
stack/gatt/gatt_api.cc
stack/gatt/gatt_int.h
stack/gatt/gatt_sr.cc