diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-23 23:16:07 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-23 23:16:07 +0100 |
commit | 64b49bc3cea46207cbfd651ff9cc21c9122525bf (patch) | |
tree | 7de3d8c3b5f4e4a737846b9a3995deedc96a287a /src/tbf.cpp | |
parent | 40fc8f9e467bc3033a30dcc8b6a7cbcd5dd613c6 (diff) |
tbf: Always increase the tx_counter when we transmit a frame
In case the ACK could not be scheduled we were not increasing the
tx_counter. Change the code flow to always increase the tx_counter
after we have created a frame.
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r-- | src/tbf.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index baa01efc..b76a5ecd 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -1181,19 +1181,17 @@ struct msgb *gprs_rlcmac_tbf::create_dl_acked_block( /* set polling in header */ rh->rrbp = 0; /* N+13 */ rh->s_p = 1; /* Polling */ - - /* Increment TX-counter */ - dir.dl.tx_counter++; } - } else { - /* Increment TX-counter */ - dir.dl.tx_counter++; } /* return data block as message */ dl_msg = msgb_alloc(len, "rlcmac_dl_data"); if (!dl_msg) return NULL; + + /* Increment TX-counter */ + dir.dl.tx_counter++; + memcpy(msgb_put(dl_msg, len), data, len); bts->rlc_sent(); |