commit | ecc73a015d5670296febd3e07aae3301db3a4158 | [log] [tgz] |
---|---|---|
author | Samuel Ortiz <sameo@linux.intel.com> | Mon Nov 18 01:48:15 2013 +0100 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Mon Nov 18 01:59:51 2013 +0100 |
tree | 891f5d0a683116ff58ab1ca61f5c194190a1cd10 | |
parent | b7f624308f1b5f3169d23f8607c5821bc38ad673 [diff] |
adapter: Catch polling errors Receiving a NFC_EVENT_TARGETS_FOUND with a NULL payload means the driver entered an error state. This is handled by checking if the devices and targets arrays are empty from the GET_TARGET finish handler. In the polling error case, neard resets the adapter and starts polling again. The polling error handler runs asynchrounously for the D-Bus properties toggle to be exported properly.