aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2016-04-30 03:12:40 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2016-05-03 19:31:56 -0400
commitd35cb20b411673820219e08c57392d18668f6217 (patch)
tree153b4c72be4706b8e0f36fb18a07426dda48efce /drivers/nfc
parent27420fec40e22cb3ff04bcef654110eb2ef37620 (diff)
nfc: st21nfca: Simplify white list building
Simplify white list Building Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/st21nfca/core.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/nfc/st21nfca/core.c b/drivers/nfc/st21nfca/core.c
index dd8b150fbffa..25ab279606c2 100644
--- a/drivers/nfc/st21nfca/core.c
+++ b/drivers/nfc/st21nfca/core.c
@@ -262,17 +262,10 @@ static int st21nfca_hci_ready(struct nfc_hci_dev *hdev)
262 int wl_size = 0; 262 int wl_size = 0;
263 int r; 263 int r;
264 264
265 if (info->se_status->is_ese_present && 265 if (info->se_status->is_uicc_present)
266 info->se_status->is_uicc_present) {
267 white_list[wl_size++] = NFC_HCI_UICC_HOST_ID; 266 white_list[wl_size++] = NFC_HCI_UICC_HOST_ID;
267 if (info->se_status->is_ese_present)
268 white_list[wl_size++] = ST21NFCA_ESE_HOST_ID; 268 white_list[wl_size++] = ST21NFCA_ESE_HOST_ID;
269 } else if (!info->se_status->is_ese_present &&
270 info->se_status->is_uicc_present) {
271 white_list[wl_size++] = NFC_HCI_UICC_HOST_ID;
272 } else if (info->se_status->is_ese_present &&
273 !info->se_status->is_uicc_present) {
274 white_list[wl_size++] = ST21NFCA_ESE_HOST_ID;
275 }
276 269
277 if (wl_size) { 270 if (wl_size) {
278 r = nfc_hci_set_param(hdev, NFC_HCI_ADMIN_GATE, 271 r = nfc_hci_set_param(hdev, NFC_HCI_ADMIN_GATE,