-
Notifications
You must be signed in to change notification settings - Fork 32
Add ras and cs manager module. #301
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
Add ras and cs manager module. #301
Conversation
66b14f7 to
765e42a
Compare
bug: v/70712 Signed-off-by: huangyulong3 <[email protected]>
765e42a to
639e80c
Compare
| return BT_STATUS_SUCCESS; | ||
| } | ||
|
|
||
| bt_status_t bt_sal_cs_procedure_enable(bt_address_t* addr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add controller id
| bt_addr_le_t le_addr = {0}; | ||
| memcpy(le_addr.a.val, addr->addr, sizeof(addr->addr)); | ||
| struct bt_le_cs_procedure_enable_param enable = {}; | ||
| struct bt_conn* conn = bt_conn_lookup_addr_le(0, (const bt_addr_le_t *)&le_addr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 -> id
| #define NUM_MODE_0_STEPS 1 | ||
| #define RAS_SEG_HEADER_SIZE 4 | ||
|
|
||
| static const char sample_str[] = "CS Sample111"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sample_str not used, will exist warning
| #define RAS_SEG_HEADER_SIZE 4 | ||
|
|
||
| static const char sample_str[] = "CS Sample111"; | ||
| static const struct bt_data ad[] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dito
| bt_le_srv_cs_create_config_params_t* params, | ||
| bt_le_srv_cs_create_config_context_t context); | ||
| bt_status_t bt_sal_cs_security_enable(bt_controller_id_t id, bt_address_t* addr); | ||
| bt_status_t bt_sal_cs_procedure_enable(bt_address_t* addr, const bt_le_srv_cs_procedure_enable_param_t* params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add bt_controller_id_t id
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
bug: v/70712
Note: Please adhere to Contributing Guidelines.
Summary
Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.
Impact
Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.
Testing
Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.