tools/mgmt-tester: Add mgmt-tester coverage for controller capabilities
authorDaniel Winkler <danielwinkler@google.com>
Tue, 24 Nov 2020 17:31:22 +0000 (09:31 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commit9fc7a8a9964f7855c64808209065e85c5f9f6bbe
treea50eea6368e075a98ec2ad4ea3a22d270a159eb6
parent650361c0ded4d1c1c2f53261c85153ffbc14f0fb
tools/mgmt-tester: Add mgmt-tester coverage for controller capabilities

This patch adds two test cases for the new Read Controller
Capabilities MGMT command. Since the command itself is simple, the test
cases are simple as well:

1. Ensures that providing invalid parameters to the request will result
in a failed MGMT response.

2. Ensures that if the controller is BT5 compliant, the Read Controller
Capabilities command will return a valid TX power range as expected,
otherwise fail.

Reviewed-by: Manish Mandlik <mmandlik@chromium.org>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/mgmt-tester.c