nfc: st21nfca: A APDU_READER_GATE pipe is unexpected on a UICC
authorChristophe Ricard <christophe.ricard@gmail.com>
Sat, 30 Apr 2016 07:12:43 +0000 (09:12 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 3 May 2016 23:33:52 +0000 (01:33 +0200)
An APDU_READER_GATE pipe is not expected on a UICC. Be more
explicit so that an other secure element form factor (SD card)
does not prompt this message.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/core.c

index 25ab279606c2c9c39c84474ef4c610ceb829a859..dacb9166081b9e152a70002404c5f6eb544ad746 100644 (file)
@@ -176,7 +176,7 @@ static int st21nfca_hci_load_session(struct nfc_hci_dev *hdev)
                 */
                info = (struct st21nfca_pipe_info *) skb_pipe_info->data;
                if (info->dst_gate_id == ST21NFCA_APDU_READER_GATE &&
-                       info->src_host_id != ST21NFCA_ESE_HOST_ID) {
+                       info->src_host_id == NFC_HCI_UICC_HOST_ID) {
                        pr_err("Unexpected apdu_reader pipe on host %x\n",
                                info->src_host_id);
                        kfree_skb(skb_pipe_info);
This page took 0.039621 seconds and 5 git commands to generate.