aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/hci/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index 8a9a811b558a..052a0a27ac1a 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -263,7 +263,9 @@ int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
263 break; 263 break;
264 } 264 }
265 265
266 targets->hci_reader_gate = gate; 266 /* if driver set the new gate, we will skip the old one */
267 if (targets->hci_reader_gate == 0x00)
268 targets->hci_reader_gate = gate;
267 269
268 r = nfc_targets_found(hdev->ndev, targets, 1); 270 r = nfc_targets_found(hdev->ndev, targets, 1);
269 271