Commit graph

77385 commits

Author SHA1 Message Date
Dawid Niedzwiecki 7490adcd2a ec_host_cmd: update Kconfig help message
The help messages for max request/response SHI sizes were adjusted only
for NPCX, update it.

Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
2023-04-07 13:05:59 +02:00
Fabio Baltieri 14df8fa88f docs: release: 3.4: add input subsystem notes
Add the release notes covering the input subsystem work so far.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-04-07 11:30:14 +02:00
Emil Gydesen 3d3e692190 Bluetooth: Audio: Add missing null checks in mpl
There were a missing NULL check for the track segment in
paused_state_command_handler when performing the segment
operations.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 7efc99b9ab tests: Bluetooth: Add MCC BSIM reconnection
Add reconnection to the MCC BSIM test.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 695f85e29d Bluetooth: Audio: Add MCC verification of read object IDs
Add check to verify that the object IDs we receive from
the server are valid.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 9c129c5bc7 Bluetooth: Audio: MCC memset discover params for included
The discovery parameters may contain values from previous
discovery calls. The simply and future proof solution to
this is to simply memset it before using it.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen b7c2629a6f Bluetooth: Audio: Add value_handle check to MCC subscribe cb
If the subscribed callback is called with value_handle = 0,
then it should not be treated as a subscription complete.

This will happen when bt_mcc_discover_mcs is called, as
reset_mcs_inst unsubscribed to all characteristics before
discovering again.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen ca4d8a483b tests: Bluetooth: MCC: Add invalid testing of read_content_control_id
Add invalid testing of bt_mcc_read_content_control_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen f001fc1ec3 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_media_state
Add invalid testing of bt_mcc_read_media_state.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen a21ae5b7c1 tests: Bluetooth: MCC: Add invalid testing of read_playing_orders_supported
Add invalid testing of bt_mcc_read_playing_orders_supported.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 8bcb15e1c6 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_playing_order
Add invalid testing of bt_mcc_set_playing_order.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 9e823184e2 Bluetooth: Audio: Add value check for bt_mcc_set_playing_order
Add check for the (playing) order value, to verify that is it
a valid value.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 582c937947 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_playing_order
Add invalid testing of bt_mcc_read_playing_order.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen e31c14b8cc tests: Bluetooth: MCC: Add invalid testing of otc_read_current_group_object
Add invalid testing of bt_mcc_otc_read_current_group_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen fdc4529cdd tests: Bluetooth: MCC: Add invalid testing of read_current_group_obj_id
Add invalid testing of bt_mcc_read_current_group_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 0186ede519 tests: Bluetooth: MCC: Add invalid testing of set_current_group_obj_id
Add invalid testing of bt_mcc_set_current_group_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 9ca8f20361 tests: Bluetooth: MCC: Add invalid testing of otc_read_parent_group_object
Add invalid testing of bt_mcc_otc_read_parent_group_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 9115d25ff5 tests: Bluetooth: MCC: Add invalid testing of read_parent_group_obj_id
Add invalid testing of bt_mcc_read_parent_group_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 863fa8f533 tests: Bluetooth: MCC: Add invalid testing of otc_read_next_track_object
Add invalid testing of bt_mcc_otc_read_next_track_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen c2c5a7571a tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_next_track_obj_id
Add invalid testing of bt_mcc_read_next_track_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen e1d0e0ffab tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_next_track_obj_id
Add invalid testing of bt_mcc_set_next_track_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen badebd5011 tests: Bluetooth: MCC: Add invalid testing of otc_read_current_track_object
Add invalid testing of bt_mcc_otc_read_current_track_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen d771fa0fe8 tests: Bluetooth: MCC: Add invalid testing of read_current_track_obj_id
Add invalid testing of bt_mcc_read_current_track_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 3df4a8f4f4 tests: Bluetooth: MCC: Add invalid testing of set_current_track_obj_id
Add invalid testing of bt_mcc_set_current_track_obj_id.y

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 81aec969ee tests: Bluetooth: MCC: Add invalid testing of read_track_segments_object
Add invalid testing of bt_mcc_otc_read_track_segments_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen c7fdb7ae34 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_segments_obj_id
Add invalid testing of bt_mcc_read_segments_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen caa88c31f4 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_seeking_speed
Add invalid testing of bt_mcc_read_seeking_speed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 3d6fcd9c80 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_playback_speed
Add invalid testing of bt_mcc_set_playback_speed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen a345c951ef tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_playback_speed
Add invalid testing of bt_mcc_read_playback_speed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 4bdf672619 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_set_track_position
Add invalid testing of bt_mcc_set_track_position.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 1030d5eb3e tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_track_position
Add invalid testing of bt_mcc_read_track_position.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen a14ebf55e3 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_track_duration
Add invalid testing of bt_mcc_read_track_duration.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen df9a34d1bb tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_track_title
Add invalid testing of bt_mcc_read_track_title.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 7bc5ebe21a tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_icon_url
Add invalid testing of bt_mcc_read_icon_url.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 62f5a5d948 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_otc_read_icon_object
Add invalid testing of bt_mcc_otc_read_icon_object.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen f30b46fc7b tests: Bluetooth: MCC: Add invalid testing of test_read_icon_obj_id
Add invalid testing of test_read_icon_obj_id.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 25b2e99213 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_player_name
Add invalid testing of bt_mcc_read_player_name.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 6426a02c37 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_discover_mcs
Add invalid testing of bt_mcc_discover_mcs.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 9cfdd53082 tests: Bluetooth: MCC: Add invalid testing of bt_mcc_send_search
Add invalid testing of bt_mcc_send_search.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 9ebad924ac Bluetooth: Audio: Add input validation for bt_mcc_send_search
Add validation of the search pointer and len value.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen dfe324be9c tests: Bluetooth: MCC: Add invalid testing of bt_mcc_send_cmd
Add invalid testing of bt_mcc_send_cmd.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen e7770a6a7e Bluetooth: Audio: Add BT_MCS_VALID_OP
Add the BT_MCS_VALID_OP macro to verify MCS opcodes for
both the MCC and MCS implementations.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 9dea871a7a tests: Bluetooth: MCC: Add invalid testing of bt_mcc_read_opcodes_supported
Add invalid testing of bt_mcc_read_opcodes_supported.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 24b3122d6a tests: Bluetooth: MCC: Add invalid testing of otc_read_object_metadata
Add invalid testing of bt_mcc_otc_read_object_metadata.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen fb89097347 tests: Bluetooth: MCC: Add invalid testing of bt_ots_client_select_id
Add invalid testing of bt_ots_client_select_id which is used by
the MCC.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 32cd16cfac Bluetooth: Audio: Add BT_MCS_VALID_OBJ_ID
Add macro BT_MCS_VALID_OBJ_ID to verify the OTS Object
ID before attempting any OTS operations.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 67acec1d6f Bluetooth: Services: Add macro for verifying OTS object ID
Add BT_OTS_VALID_OBJ_ID which verifies if an object ID
is valid.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 41ea39be55 tests: Bluetooth: Refactor MCC tests
Move all the test steps into smaller functions for
added readability and reusability. This will basically
group each procedure, making it easier to follow the
main test.

None of the test have been functionally changed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen 0f553b5570 tests: Bluetooth: BSIM: Add MCC read supported opcodes
The supported opcodes were not previously read, so it
was added to cover it.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00
Emil Gydesen da8cac0d2c tests: Bluetooth: BSIM: MCC reorder callbacks
Reorder the callbacks so that they match the order in the
struct.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2023-04-07 11:29:54 +02:00