Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 249eb5bd authored by Samuel Ortiz's avatar Samuel Ortiz
Browse files

NFC: Return driver failure upon unknown event reception



If the device is polling, this will trigger a netlink event to notify
userspace about the polling error.

Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 34f7e57b
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -335,11 +335,8 @@ exit:
	kfree_skb(skb);

exit_noskb:
	if (r) {
		/* TODO: There was an error dispatching the event,
		 * how to propagate up to nfc core?
		 */
	}
	if (r)
		nfc_hci_driver_failure(hdev, r);
}

static void nfc_hci_cmd_timeout(unsigned long data)