|
@@ -66,14 +66,6 @@ static void nci_core_conn_credits_ntf_packet(struct nci_dev *ndev,
|
|
queue_work(ndev->tx_wq, &ndev->tx_work);
|
|
queue_work(ndev->tx_wq, &ndev->tx_work);
|
|
}
|
|
}
|
|
|
|
|
|
-static void nci_rf_field_info_ntf_packet(struct nci_dev *ndev,
|
|
|
|
- struct sk_buff *skb)
|
|
|
|
-{
|
|
|
|
- struct nci_rf_field_info_ntf *ntf = (void *) skb->data;
|
|
|
|
-
|
|
|
|
- nfc_dbg("entry, rf_field_status %d", ntf->rf_field_status);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static __u8 *nci_extract_rf_params_nfca_passive_poll(struct nci_dev *ndev,
|
|
static __u8 *nci_extract_rf_params_nfca_passive_poll(struct nci_dev *ndev,
|
|
struct nci_rf_intf_activated_ntf *ntf, __u8 *data)
|
|
struct nci_rf_intf_activated_ntf *ntf, __u8 *data)
|
|
{
|
|
{
|
|
@@ -251,6 +243,9 @@ static void nci_rf_deactivate_ntf_packet(struct nci_dev *ndev,
|
|
ndev->rx_data_reassembly = 0;
|
|
ndev->rx_data_reassembly = 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* set the available credits to initial value */
|
|
|
|
+ atomic_set(&ndev->credits_cnt, ndev->initial_num_credits);
|
|
|
|
+
|
|
/* complete the data exchange transaction, if exists */
|
|
/* complete the data exchange transaction, if exists */
|
|
if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
|
|
if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
|
|
nci_data_exchange_complete(ndev, NULL, -EIO);
|
|
nci_data_exchange_complete(ndev, NULL, -EIO);
|
|
@@ -274,10 +269,6 @@ void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb)
|
|
nci_core_conn_credits_ntf_packet(ndev, skb);
|
|
nci_core_conn_credits_ntf_packet(ndev, skb);
|
|
break;
|
|
break;
|
|
|
|
|
|
- case NCI_OP_RF_FIELD_INFO_NTF:
|
|
|
|
- nci_rf_field_info_ntf_packet(ndev, skb);
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
case NCI_OP_RF_INTF_ACTIVATED_NTF:
|
|
case NCI_OP_RF_INTF_ACTIVATED_NTF:
|
|
nci_rf_intf_activated_ntf_packet(ndev, skb);
|
|
nci_rf_intf_activated_ntf_packet(ndev, skb);
|
|
break;
|
|
break;
|