NFC: Add target mode protocols to the polling loop startup routine
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -481,12 +481,13 @@ static int hci_dev_down(struct nfc_dev *nfc_dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hci_start_poll(struct nfc_dev *nfc_dev, u32 protocols)
|
||||
static int hci_start_poll(struct nfc_dev *nfc_dev,
|
||||
u32 im_protocols, u32 tm_protocols)
|
||||
{
|
||||
struct nfc_hci_dev *hdev = nfc_get_drvdata(nfc_dev);
|
||||
|
||||
if (hdev->ops->start_poll)
|
||||
return hdev->ops->start_poll(hdev, protocols);
|
||||
return hdev->ops->start_poll(hdev, im_protocols, tm_protocols);
|
||||
else
|
||||
return nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
|
||||
NFC_HCI_EVT_READER_REQUESTED, NULL, 0);
|
||||
|
@@ -765,14 +765,16 @@ static int nfc_shdlc_xmit(struct nfc_hci_dev *hdev, struct sk_buff *skb)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nfc_shdlc_start_poll(struct nfc_hci_dev *hdev, u32 protocols)
|
||||
static int nfc_shdlc_start_poll(struct nfc_hci_dev *hdev,
|
||||
u32 im_protocols, u32 tm_protocols)
|
||||
{
|
||||
struct nfc_shdlc *shdlc = nfc_hci_get_clientdata(hdev);
|
||||
|
||||
pr_debug("\n");
|
||||
|
||||
if (shdlc->ops->start_poll)
|
||||
return shdlc->ops->start_poll(shdlc, protocols);
|
||||
return shdlc->ops->start_poll(shdlc,
|
||||
im_protocols, tm_protocols);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user