aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/nci/core.c
diff options
context:
space:
mode:
authorBongsu Jeon <bongsu.jeon@samsung.com>2021-01-19 05:55:22 +0900
committerJakub Kicinski <kuba@kernel.org>2021-01-19 16:49:28 -0800
commit4964e5a1e080f785f5518b402a9e48c527fe6cbd (patch)
tree5a4ccc2fb18cfc0fba7376d013630d60541df8a0 /net/nfc/nci/core.c
parentsh_eth: Fix power down vs. is_opened flag ordering (diff)
downloadlinux-dev-4964e5a1e080f785f5518b402a9e48c527fe6cbd.tar.xz
linux-dev-4964e5a1e080f785f5518b402a9e48c527fe6cbd.zip
net: nfc: nci: fix the wrong NCI_CORE_INIT parameters
Fix the code because NCI_CORE_INIT_CMD includes two parameters in NCI2.0 but there is no parameters in NCI1.x. Fixes: bcd684aace34 ("net/nfc/nci: Support NCI 2.x initial sequence") Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com> Link: https://lore.kernel.org/r/20210118205522.317087-1-bongsu.jeon@samsung.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/nfc/nci/core.c')
-rw-r--r--net/nfc/nci/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index e64727e1a72f..02a1f13f0798 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -508,7 +508,7 @@ static int nci_open_device(struct nci_dev *ndev)
};
unsigned long opt = 0;
- if (!(ndev->nci_ver & NCI_VER_2_MASK))
+ if (ndev->nci_ver & NCI_VER_2_MASK)
opt = (unsigned long)&nci_init_v2_cmd;
rc = __nci_request(ndev, nci_init_req, opt,