mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-10 22:40:33 +00:00
mesh: Transport tx seg_o overflow
Increases the transport segmentented tx seg_o counter to 6 bits to avoid overflow when sending 32 segments. The check in the send loop would previously never be false, which causes segments to repeat unnecessarily. this is port of e1c6ea9241e21942965eb66a62f13624c5528905
This commit is contained in:
committed by
Łukasz Rymanowski
parent
51370cc3f7
commit
a684f02ddb
@@ -78,11 +78,13 @@ static struct seg_tx {
|
||||
ctl:1,
|
||||
aszmic:1,
|
||||
friend_cred:1;
|
||||
u8_t seg_o:5,
|
||||
u8_t seg_o:6,/* Segment being sent. 6 bits to
|
||||
* prevent overflow in loop.
|
||||
*/
|
||||
started:1, /* Start cb called */
|
||||
sending:1, /* Sending is in progress */
|
||||
sending:1; /* Sending is in progress */
|
||||
u8_t nack_count:5, /* Number of unacked segs */
|
||||
blocked:1; /* Blocked by ongoing tx */
|
||||
u8_t nack_count; /* Number of unacked segs */
|
||||
u8_t ttl;
|
||||
u8_t seg_pending:5, /* Number of segments pending */
|
||||
attempts:3;
|
||||
|
||||
Reference in New Issue
Block a user