Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277833
b: refs/heads/master
c: db98c82
h: refs/heads/master
i:
  277831: e05dc45
v: v3
  • Loading branch information
Ilan Elias authored and John W. Linville committed Nov 11, 2011
1 parent d56b225 commit 16e4057
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee4c64fb984e652c0d49d41d19d1b8e4576c3203
refs/heads/master: db98c829b70e0a313e627d1c63cf5a7087290e5c
3 changes: 3 additions & 0 deletions trunk/include/net/nfc/nci.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
/* NCI Static RF connection ID */
#define NCI_STATIC_RF_CONN_ID 0x00

/* NCI Data Flow Control */
#define NCI_DATA_FLOW_CONTROL_NOT_USED 0xff

/* NCI RF_DISCOVER_MAP_CMD modes */
#define NCI_DISC_MAP_MODE_POLL 0x01
#define NCI_DISC_MAP_MODE_LISTEN 0x02
Expand Down
5 changes: 4 additions & 1 deletion trunk/net/nfc/nci/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,10 @@ static void nci_tx_work(struct work_struct *work)
if (!skb)
return;

atomic_dec(&ndev->credits_cnt);
/* Check if data flow control is used */
if (atomic_read(&ndev->credits_cnt) !=
NCI_DATA_FLOW_CONTROL_NOT_USED)
atomic_dec(&ndev->credits_cnt);

nfc_dbg("NCI TX: MT=data, PBF=%d, conn_id=%d, plen=%d",
nci_pbf(skb->data),
Expand Down

0 comments on commit 16e4057

Please sign in to comment.