advertising: Detect if extended advertising mgmt commands are supported
authorDaniel Winkler <danielwinkler@google.com>
Thu, 29 Oct 2020 23:06:16 +0000 (16:06 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commit46566ac4b41ce542c41e48cf62cbc77959821ff9
treea6582840bef766f12dd7b326f014eff214384de7
parent44ecf6d1eada51eac4efce60c269409ccfd0a9fe
advertising: Detect if extended advertising mgmt commands are supported

We need to know if kernel supports the new MGMT interface. To do so, we
check the return from adapter's MGMT_OP_READ_COMMANDS call for the new
commands. This will later be used to route our requests for new
advertisements.

The change is tested by manually verifying that the correct MGMT
commands are used when the feature is and is not available in kernel.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/mgmt.h
src/adapter.c
src/adapter.h
src/advertising.c