OSDN Git Service

Fix L2CAP exceed max transmit for both I-frame and S-frame under ERTM
authorTed Wang <tedwang@google.com>
Thu, 30 Jan 2020 06:31:18 +0000 (14:31 +0800)
committerTed Wang <tedwang@google.com>
Tue, 4 Feb 2020 13:06:54 +0000 (21:06 +0800)
commit68809b01dd0ba4ba2f7de600c10412262bbed96f
treed2562335d1b650e3f869ffe0b009988b506fc21a
parent18162fbdc11fdeaa241acc31f8efb0d875ef3296
Fix L2CAP exceed max transmit for both I-frame and S-frame under ERTM

* Under ERTM mode, ReqSeq of S-frame with R-bit set to RR is used to
  acknowledge previously received I-frames numbered up to and including
  ReqSeq - 1. So valid ReqSeq is start from 1.
* Stack should not retransmit I-frame once it exceed max transmittion
  and initiates closure of the L2CAP channel.
* Add following tests in simple_l2cap_test:
    test_i_frame_transmissions_exceed_max_transmit

Bug: 148771210
Test: run_cert.sh

Change-Id: Id1fb2fab8be7f7e05a09935002366e60df5f7b81
gd/l2cap/classic/cert/simple_l2cap_test.py
gd/l2cap/internal/enhanced_retransmission_mode_channel_data_controller.cc