Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some EATT fixes #1728

Merged
merged 7 commits into from
Mar 21, 2024
Merged

Some EATT fixes #1728

merged 7 commits into from
Mar 21, 2024

Conversation

sjanc
Copy link
Contributor

@sjanc sjanc commented Mar 14, 2024

No description provided.

@sjanc
Copy link
Contributor Author

sjanc commented Mar 20, 2024

#AutoPTS run mynewt GATT L2CAP

@codecoup-tester
Copy link

Scheduled PR ##1728 (comment) after 14:16:26.

If ble_eatt_conn_pool was empty we would end up in writing NULL
address.
It is not used outside of ble_eatt.c
Return error code instead of asserting on low resources.
EATT requires Enhanced COC and number of available channels should be
at least that of supported EATT channels.
ble_l2cap_recv_ready consumes om buffer only on success.
If EATT COC connection failed we need to clean up allocated memory.
Some peers reject connection to EATT PSM if encryption is not enabled.
Since EATT requires any PDUs to be sent only on encrypted link we
can postpone initiating EATT connection until encryption with no real
drawbacks.
@codecoup-tester
Copy link

AutoPTS Bot results:

Failed testsGATT GATT/CL/GAD/BV-03-C INCONC
GATT GATT/CL/GAN/BV-02-C FAIL
GATT GATT/CL/GAR/BI-36-C INCONC
GATT GATT/CL/GAR/BI-38-C INCONC
GATT GATT/CL/GAR/BI-42-C INCONC
GATT GATT/CL/GAR/BI-44-C INCONC
GATT GATT/CL/GAR/BV-10-C FAIL
GATT GATT/SR/GAN/BV-02-C FATAL ERROR
GATT GATT/SR/GAW/BI-32-C FAIL
L2CAP L2CAP/ECFC/BI-02-C BTP ERROR
L2CAP L2CAP/ECFC/BV-43-C FATAL ERROR - ERRATA TSE18351
L2CAP L2CAP/ECFC/BV-44-C FAIL - ERRATA TSE18351
L2CAP L2CAP/TIM/BV-03-C INCONC
Successful testsGATT GATT/CL/GAC/BV-01-C PASS
GATT GATT/CL/GAD/BV-01-C PASS
GATT GATT/CL/GAD/BV-02-C PASS
GATT GATT/CL/GAD/BV-04-C PASS
GATT GATT/CL/GAD/BV-05-C PASS
GATT GATT/CL/GAD/BV-06-C PASS
GATT GATT/CL/GAI/BI-01-C PASS
GATT GATT/CL/GAI/BV-01-C PASS
GATT GATT/CL/GAN/BV-01-C PASS
GATT GATT/CL/GAR/BI-01-C PASS
GATT GATT/CL/GAR/BI-02-C PASS
GATT GATT/CL/GAR/BI-04-C PASS
GATT GATT/CL/GAR/BI-05-C PASS
GATT GATT/CL/GAR/BI-06-C PASS
GATT GATT/CL/GAR/BI-07-C PASS
GATT GATT/CL/GAR/BI-10-C PASS
GATT GATT/CL/GAR/BI-11-C PASS
GATT GATT/CL/GAR/BI-12-C PASS
GATT GATT/CL/GAR/BI-13-C PASS
GATT GATT/CL/GAR/BI-14-C PASS
GATT GATT/CL/GAR/BI-16-C PASS
GATT GATT/CL/GAR/BI-17-C PASS
GATT GATT/CL/GAR/BI-18-C PASS
GATT GATT/CL/GAR/BI-19-C PASS
GATT GATT/CL/GAR/BI-21-C PASS
GATT GATT/CL/GAR/BI-22-C PASS
GATT GATT/CL/GAR/BI-35-C PASS
GATT GATT/CL/GAR/BV-01-C PASS
GATT GATT/CL/GAR/BV-03-C PASS
GATT GATT/CL/GAR/BV-04-C PASS
GATT GATT/CL/GAR/BV-05-C PASS
GATT GATT/CL/GAR/BV-06-C PASS
GATT GATT/CL/GAR/BV-07-C PASS
GATT GATT/CL/GAR/BV-08-C PASS
GATT GATT/CL/GAS/BV-01-C PASS
GATT GATT/CL/GAT/BV-01-C PASS
GATT GATT/CL/GAT/BV-02-C PASS
GATT GATT/CL/GAT/BV-03-C PASS
GATT GATT/CL/GAW/BI-02-C PASS
GATT GATT/CL/GAW/BI-03-C PASS
GATT GATT/CL/GAW/BI-05-C PASS
GATT GATT/CL/GAW/BI-06-C PASS
GATT GATT/CL/GAW/BI-07-C PASS
GATT GATT/CL/GAW/BI-08-C PASS
GATT GATT/CL/GAW/BI-09-C PASS
GATT GATT/CL/GAW/BI-12-C PASS
GATT GATT/CL/GAW/BI-13-C PASS
GATT GATT/CL/GAW/BI-32-C PASS
GATT GATT/CL/GAW/BI-33-C PASS
GATT GATT/CL/GAW/BI-34-C PASS
GATT GATT/CL/GAW/BV-01-C PASS
GATT GATT/CL/GAW/BV-03-C PASS
GATT GATT/CL/GAW/BV-05-C PASS
GATT GATT/CL/GAW/BV-06-C PASS
GATT GATT/CL/GAW/BV-08-C PASS
GATT GATT/CL/GAW/BV-09-C PASS
GATT GATT/SR/GAC/BI-01-C PASS
GATT GATT/SR/GAC/BV-01-C PASS
GATT GATT/SR/GAD/BV-01-C PASS
GATT GATT/SR/GAD/BV-02-C PASS
GATT GATT/SR/GAD/BV-03-C PASS
GATT GATT/SR/GAD/BV-04-C PASS
GATT GATT/SR/GAD/BV-05-C PASS
GATT GATT/SR/GAD/BV-06-C PASS
GATT GATT/SR/GAI/BV-01-C PASS
GATT GATT/SR/GAN/BV-01-C PASS
GATT GATT/SR/GAR/BI-01-C PASS
GATT GATT/SR/GAR/BI-02-C PASS
GATT GATT/SR/GAR/BI-04-C PASS
GATT GATT/SR/GAR/BI-05-C PASS
GATT GATT/SR/GAR/BI-06-C PASS
GATT GATT/SR/GAR/BI-07-C PASS
GATT GATT/SR/GAR/BI-08-C PASS
GATT GATT/SR/GAR/BI-10-C PASS
GATT GATT/SR/GAR/BI-11-C PASS
GATT GATT/SR/GAR/BI-12-C PASS
GATT GATT/SR/GAR/BI-13-C PASS
GATT GATT/SR/GAR/BI-14-C PASS
GATT GATT/SR/GAR/BI-16-C PASS
GATT GATT/SR/GAR/BI-17-C PASS
GATT GATT/SR/GAR/BI-18-C PASS
GATT GATT/SR/GAR/BI-19-C PASS
GATT GATT/SR/GAR/BI-21-C PASS
GATT GATT/SR/GAR/BI-22-C PASS
GATT GATT/SR/GAR/BI-36-C PASS
GATT GATT/SR/GAR/BI-38-C PASS
GATT GATT/SR/GAR/BI-42-C PASS
GATT GATT/SR/GAR/BI-44-C PASS
GATT GATT/SR/GAR/BI-45-C PASS
GATT GATT/SR/GAR/BV-01-C PASS
GATT GATT/SR/GAR/BV-03-C PASS
GATT GATT/SR/GAR/BV-04-C PASS
GATT GATT/SR/GAR/BV-05-C PASS
GATT GATT/SR/GAR/BV-06-C PASS
GATT GATT/SR/GAR/BV-07-C PASS
GATT GATT/SR/GAR/BV-08-C PASS
GATT GATT/SR/GAR/BV-09-C PASS
GATT GATT/SR/GAR/BV-11-C PASS
GATT GATT/SR/GAS/BV-01-C PASS
GATT GATT/SR/GAT/BV-01-C PASS
GATT GATT/SR/GAW/BI-02-C PASS
GATT GATT/SR/GAW/BI-03-C PASS
GATT GATT/SR/GAW/BI-05-C PASS
GATT GATT/SR/GAW/BI-06-C PASS
GATT GATT/SR/GAW/BI-07-C PASS
GATT GATT/SR/GAW/BI-08-C PASS
GATT GATT/SR/GAW/BI-09-C PASS
GATT GATT/SR/GAW/BI-12-C PASS
GATT GATT/SR/GAW/BI-13-C PASS
GATT GATT/SR/GAW/BI-33-C PASS
GATT GATT/SR/GAW/BV-01-C PASS
GATT GATT/SR/GAW/BV-03-C PASS
GATT GATT/SR/GAW/BV-05-C PASS
GATT GATT/SR/GAW/BV-06-C PASS (2)
GATT GATT/SR/GAW/BV-07-C PASS
GATT GATT/SR/GAW/BV-08-C PASS
GATT GATT/SR/GAW/BV-09-C PASS
GATT GATT/SR/GAW/BV-10-C PASS
GATT GATT/SR/GAW/BV-11-C PASS
GATT GATT/SR/GPM/BV-05-C PASS
GATT GATT/SR/UNS/BI-01-C PASS
GATT GATT/SR/UNS/BI-02-C PASS
L2CAP L2CAP/COS/CFC/BV-01-C PASS
L2CAP L2CAP/COS/CFC/BV-02-C PASS
L2CAP L2CAP/COS/CFC/BV-03-C PASS
L2CAP L2CAP/COS/CFC/BV-04-C PASS
L2CAP L2CAP/COS/CFC/BV-05-C PASS
L2CAP L2CAP/COS/ECFC/BV-01-C PASS
L2CAP L2CAP/COS/ECFC/BV-02-C PASS
L2CAP L2CAP/COS/ECFC/BV-03-C PASS
L2CAP L2CAP/COS/ECFC/BV-04-C PASS
L2CAP L2CAP/ECFC/BI-01-C PASS
L2CAP L2CAP/ECFC/BI-03-C PASS
L2CAP L2CAP/ECFC/BI-04-C PASS
L2CAP L2CAP/ECFC/BI-05-C PASS
L2CAP L2CAP/ECFC/BI-06-C PASS
L2CAP L2CAP/ECFC/BI-07-C PASS
L2CAP L2CAP/ECFC/BI-08-C PASS
L2CAP L2CAP/ECFC/BV-01-C PASS
L2CAP L2CAP/ECFC/BV-02-C PASS
L2CAP L2CAP/ECFC/BV-03-C PASS
L2CAP L2CAP/ECFC/BV-04-C PASS
L2CAP L2CAP/ECFC/BV-06-C PASS
L2CAP L2CAP/ECFC/BV-07-C PASS
L2CAP L2CAP/ECFC/BV-08-C PASS
L2CAP L2CAP/ECFC/BV-09-C PASS
L2CAP L2CAP/ECFC/BV-10-C PASS
L2CAP L2CAP/ECFC/BV-11-C PASS
L2CAP L2CAP/ECFC/BV-12-C PASS
L2CAP L2CAP/ECFC/BV-13-C PASS
L2CAP L2CAP/ECFC/BV-14-C PASS
L2CAP L2CAP/ECFC/BV-15-C PASS
L2CAP L2CAP/ECFC/BV-16-C PASS
L2CAP L2CAP/ECFC/BV-17-C PASS
L2CAP L2CAP/ECFC/BV-18-C PASS
L2CAP L2CAP/ECFC/BV-19-C PASS
L2CAP L2CAP/ECFC/BV-20-C PASS
L2CAP L2CAP/ECFC/BV-21-C PASS
L2CAP L2CAP/ECFC/BV-22-C PASS
L2CAP L2CAP/ECFC/BV-23-C PASS
L2CAP L2CAP/ECFC/BV-24-C PASS
L2CAP L2CAP/ECFC/BV-25-C PASS
L2CAP L2CAP/ECFC/BV-26-C PASS
L2CAP L2CAP/ECFC/BV-27-C PASS
L2CAP L2CAP/ECFC/BV-28-C PASS
L2CAP L2CAP/ECFC/BV-29-C PASS
L2CAP L2CAP/ECFC/BV-30-C PASS
L2CAP L2CAP/ECFC/BV-31-C PASS
L2CAP L2CAP/ECFC/BV-32-C PASS
L2CAP L2CAP/ECFC/BV-33-C PASS
L2CAP L2CAP/ECFC/BV-34-C PASS
L2CAP L2CAP/ECFC/BV-35-C PASS
L2CAP L2CAP/ECFC/BV-38-C PASS
L2CAP L2CAP/ECFC/BV-39-C PASS
L2CAP L2CAP/ECFC/BV-41-C PASS
L2CAP L2CAP/LE/CFC/BI-01-C PASS
L2CAP L2CAP/LE/CFC/BI-02-C PASS
L2CAP L2CAP/LE/CFC/BV-01-C PASS
L2CAP L2CAP/LE/CFC/BV-02-C PASS
L2CAP L2CAP/LE/CFC/BV-03-C PASS
L2CAP L2CAP/LE/CFC/BV-04-C PASS
L2CAP L2CAP/LE/CFC/BV-05-C PASS
L2CAP L2CAP/LE/CFC/BV-06-C PASS
L2CAP L2CAP/LE/CFC/BV-07-C PASS
L2CAP L2CAP/LE/CFC/BV-08-C PASS
L2CAP L2CAP/LE/CFC/BV-09-C PASS
L2CAP L2CAP/LE/CFC/BV-10-C PASS
L2CAP L2CAP/LE/CFC/BV-11-C PASS
L2CAP L2CAP/LE/CFC/BV-12-C PASS
L2CAP L2CAP/LE/CFC/BV-13-C PASS
L2CAP L2CAP/LE/CFC/BV-14-C PASS
L2CAP L2CAP/LE/CFC/BV-15-C PASS
L2CAP L2CAP/LE/CFC/BV-16-C PASS
L2CAP L2CAP/LE/CFC/BV-18-C PASS
L2CAP L2CAP/LE/CFC/BV-19-C PASS
L2CAP L2CAP/LE/CFC/BV-20-C PASS
L2CAP L2CAP/LE/CFC/BV-21-C PASS
L2CAP L2CAP/LE/CFC/BV-22-C PASS
L2CAP L2CAP/LE/CFC/BV-23-C PASS
L2CAP L2CAP/LE/CFC/BV-24-C PASS
L2CAP L2CAP/LE/CFC/BV-25-C PASS
L2CAP L2CAP/LE/CFC/BV-26-C PASS
L2CAP L2CAP/LE/CFC/BV-27-C PASS
L2CAP L2CAP/LE/CFC/BV-28-C PASS
L2CAP L2CAP/LE/CFC/BV-29-C PASS
L2CAP L2CAP/LE/CFC/BV-30-C PASS
L2CAP L2CAP/LE/CFC/BV-31-C PASS
L2CAP L2CAP/LE/CID/BI-01-C PASS
L2CAP L2CAP/LE/CPU/BI-01-C PASS
L2CAP L2CAP/LE/CPU/BI-02-C PASS
L2CAP L2CAP/LE/CPU/BV-01-C PASS
L2CAP L2CAP/LE/CPU/BV-02-C PASS
L2CAP L2CAP/LE/REJ/BI-01-C PASS
L2CAP L2CAP/LE/REJ/BI-02-C PASS

@sjanc sjanc merged commit 6f8f257 into apache:master Mar 21, 2024
18 checks passed
@sjanc sjanc deleted the eatt branch March 21, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants