Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340940
b: refs/heads/master
c: 5bcf099
h: refs/heads/master
v: v3
  • Loading branch information
Thierry Escande authored and Samuel Ortiz committed Oct 26, 2012
1 parent 0b4bf3a commit 0a5f356
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19cfe5843e86cc95542d9d875c9386e197956d75
refs/heads/master: 5bcf099c17323a8760620511b1b8e415c2783571
5 changes: 5 additions & 0 deletions trunk/net/nfc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ int nfc_stop_poll(struct nfc_dev *dev)

dev->ops->stop_poll(dev);
dev->polling = false;
dev->rf_mode = NFC_RF_NONE;

error:
device_unlock(&dev->dev);
Expand Down Expand Up @@ -274,12 +275,14 @@ int nfc_dep_link_down(struct nfc_dev *dev)
if (!rc) {
dev->dep_link_up = false;
dev->active_target = NULL;
dev->rf_mode = NFC_RF_NONE;
nfc_llcp_mac_is_down(dev);
nfc_genl_dep_link_down_event(dev);
}

error:
device_unlock(&dev->dev);

return rc;
}

Expand Down Expand Up @@ -503,6 +506,7 @@ EXPORT_SYMBOL(nfc_tm_activated);
int nfc_tm_deactivated(struct nfc_dev *dev)
{
dev->dep_link_up = false;
dev->rf_mode = NFC_RF_NONE;

return nfc_genl_tm_deactivated(dev);
}
Expand Down Expand Up @@ -782,6 +786,7 @@ struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops,

nfc_genl_data_init(&dev->genl_data);

dev->rf_mode = NFC_RF_NONE;

/* first generation must not be 0 */
dev->targets_generation = 1;
Expand Down

0 comments on commit 0a5f356

Please sign in to comment.