mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
NFC: Check if NCI data flow control is used
Check if NCI data flow control is used in nci_tx_work. Signed-off-by: Ilan Elias <[email protected]> Acked-by: Lauro Ramos Venancio <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
ee4c64fb98
commit
db98c829b7
2 changed files with 7 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue