Bluetooth: Increment unacked_frames count only the first transmit
authorSuraj Sumangala <suraj@atheros.com>
Wed, 9 Mar 2011 09:14:05 +0000 (14:44 +0530)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 24 Mar 2011 20:04:43 +0000 (17:04 -0300)
commit52cb1c0d208565d8f06b743cdc6596d744f92e3b
treeb20b49167311a532ede5a806a1c81332dba5fecf
parent63a8588debd4dc72becb9e27add9343c76301c7d
Bluetooth: Increment unacked_frames count only the first transmit

This patch lets 'l2cap_pinfo.unacked_frames' be incremented only
the first time a frame is transmitted.

Previously it was being incremented for retransmitted packets
too resulting the value to cross the transmit window size.

Signed-off-by: Suraj Sumangala <suraj@atheros.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c