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

nimble/ll: Add vs hci cmd with additional scan cfg #1918

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m-gorecki
Copy link
Contributor

This allows to configure scanner to ignore either
legacy or extended packets. If scan is enabled
command returns command disallowed error.

@m-gorecki m-gorecki force-pushed the vendor-scan-command branch 2 times, most recently from 573b0b2 to 41235f8 Compare November 18, 2024 10:30
return BLE_ERR_INV_HCI_CMD_PARMS;
}

if (cmd->flags > BLE_HCI_OCF_VS_SET_SCAN_CFG_NO_EXT) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be converted from le32 to host order before check (even if this will be noop on most systems)

it should (at least for now) disallow command if both types are to be disabled

@@ -1396,6 +1396,14 @@ struct ble_hci_vs_set_local_irk_cp {
uint8_t irk[16];
} __attribute__((packed));

#define BLE_HCI_OCF_VS_SET_SCAN_CFG_NO_LEGACY 0x00000001
#define BLE_HCI_OCF_VS_SET_SCAN_CFG_NO_EXT 0x00000002
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ble_hci_ocf prefix suggests this is an OCF which is misleading

@andrzej-kaczmarek
Copy link
Contributor

can we also add flag to filter by min rssi on primary channel?

@github-actions github-actions bot added the size/M Medium PR label Nov 19, 2024
This allows to configure scanner to:
- ignore either legacy or extended packets,
- set minimal RSSI filter on primary channel.

If scan is enabled
command returns command disallowed error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants