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, 31 Mar 2011 17:25:25 +0000 (14:25 -0300)
commit23e9fde2b344c22c5176c7fd37b52c3776ef5aba
tree9ea4dc3c4ce0d06e2a7d69f2c160a76e1ef77ea4
parent88d377b6c3c28ee54cd4c76bfe6e60f2d9bf6ae1
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