aboutsummaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-01-05 00:51:05 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2019-01-07 14:34:36 +0200
commitf352283da17c024313e1de200698dda1476c612e (patch)
tree50115b7c3dc75705d5ddc87c61134332c84ef046 /autobuild/agl
parentaab5e5d8ff58b2ec6503615efb9ea35e9f0d93f2 (diff)
binding: nfc: increase safety checks around neardal api calls.halibut_7.90.0halibut/7.90.0guppy_6.99.4guppy/6.99.47.90.06.99.4
Bug-AGL: SPEC-2062 When the NFC adapter is powered up and agl-service-nfc sends a request to power it, or when the NFC adapter is actively polling and agl-service-nfc sends a request to start polling, the requests are being rejected and an error message issued. The changes in this commit are intended to avoid these scenarios, taking into account that neard is configured to: (1)power the device up by default, and (2)not re-start the device in polling mode unless requested by the client (agl-service-nfc). - Check the adapter state before applying power or set the adapter in active polling mode as initiator. - Add neardal adapter callbacks to track status of the interface instead of using local variables. - Exit polling loop if the adapter is removed. - Update dbg macros to be more meaningful. Bug-AGL: SPEC-1976 The following changes are to increase safety measures around variables used on calls to/from neardal. - Test arguments in callback functions. - Install/remove tag callbacks in every iteration. - Match g_malloc'ed nfc_data_binding with g_free. Change-Id: If26d685a917633c9a0dd6997ad371db60a640517 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Diffstat (limited to 'autobuild/agl')
0 files changed, 0 insertions, 0 deletions