zephyr/subsys/bluetooth/host
Pisit Sawangvonganan c120ffb31d bluetooth: shell: avoid multiple `strlen` calls
Add `len` to store the result of `strlen(addr_arg)` to avoid
multiple calls to `strlen` within the `for-loop` in
`cmd_scan_filter_set_addr`.
While the performance impact may be minimal in a shell context,
storing `strlen(addr_arg)` in `len` ensures a single call,
making the code more predictable and consistent.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2024-11-16 13:50:58 -05:00
..
classic
shell bluetooth: shell: avoid multiple `strlen` calls 2024-11-16 13:50:58 -05:00
CMakeLists.txt
Kconfig bluetooth: host: conn: Check if *conn is not NULL 2024-10-18 17:46:04 +01:00
Kconfig.gatt Bluetooth: GATT: Allow to tune writable device appearance permissions 2024-10-16 16:35:56 +01:00
Kconfig.l2cap
addr.c
addr_internal.h
adv.c
adv.h
aes_ccm.c
att.c
att_internal.h
buf.c
buf_view.h
conn.c bluetooth: host: conn: Check if *conn is not NULL 2024-10-18 17:46:04 +01:00
conn_internal.h bluetooth: host: CS support for various HCI commands 2024-10-18 14:15:49 +02:00
crypto.h
crypto_psa.c
crypto_tc.c
cs.c bluetooth: host: Add helper function for parsing PCTs 2024-10-25 14:06:25 +02:00
data.c
direction.c
direction_internal.h
ecc.c
ecc.h
gatt.c Bluetooth: Host: Ensure only connected peers affect `_bt_gatt_ccc.value` 2024-11-08 11:35:42 -06:00
gatt_internal.h
hci_common.c
hci_core.c Bluetooth: Host: Add BT_TESTING trace event for ACL pool destroy 2024-10-26 17:13:45 +02:00
hci_core.h bluetooth: host: CS support for various HCI commands 2024-10-18 14:15:49 +02:00
hci_ecc.c
hci_ecc.h
hci_raw.c
hci_raw_internal.h
id.c Bluetooth: Host: ID: Log resolve list conflicts 2024-11-16 13:43:59 -05:00
id.h
iso.c
iso_internal.h
keys.c
keys.h subsys/bluetooth/host/keys.h: Add include guard and required include 2024-10-29 09:24:13 -07:00
l2cap.c Bluetooth: Host: Upgrade log severity for L2CAP user error 2024-10-26 17:13:45 +02:00
l2cap_internal.h
long_wq.c
long_wq.h
monitor.c Bluetooth: Host: Fix monitor UART selection 2024-11-01 09:56:52 -05:00
monitor.h
scan.c
scan.h
settings.c
settings.h
smp.c
smp.h
smp_null.c
uuid.c