NFC: Fix hci_connect_gate() when a pre-opened pipe is passed
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Wed, 17 Oct 2012 14:47:13 +0000 (16:47 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Nov 2012 22:56:58 +0000 (23:56 +0100)
commit07887e92205c5808820de0be53bf326b4019d060
tree68976461b293d8b77fc8efe4e40456b8903c8d20
parentac46ba4384d2c44c56702d0da591696045fba682
NFC: Fix hci_connect_gate() when a pre-opened pipe is passed

In some cases, pre-opened pipes don't stay open when a clear all pipes
command is sent. They stay created however. Therefore, one can never
assume that such a pipe is already open. As re-opening a pipe seems not
to be a problem, we do that now.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/hci/command.c