diff --git a/tools/avtest.c b/tools/avtest.c
index a52662d..c68d7b5 100644
--- a/tools/avtest.c
+++ b/tools/avtest.c
if (reject == AVDTP_GET_CAPABILITIES) {
hdr->message_type = AVDTP_MSG_TYPE_REJECT;
buf[2] = 0x29; /* Unsupported configuration */
- printf("Rejecting get capabilties command\n");
+ printf("Rejecting get capabilities command\n");
len = write(sk, buf, 3);
} else if (fragment) {
struct avdtp_start_header *start = (void *) buf;
diff --git a/tools/bneptest.c b/tools/bneptest.c
index 76ec1cf..c0c123f 100644
--- a/tools/bneptest.c
+++ b/tools/bneptest.c
printf("Connect Mode:\n"
"\t-c connect <dst_addr>\n"
"\t-r remote role <16 bit svc value>\n"
- "\t-l local role <16 bit svc valu>\n");
+ "\t-l local role <16 bit svc value>\n");
printf("Listen Mode:\n"
"\t-s start server listening\n");
printf("Send control command:\n"
diff --git a/tools/btattach.rst b/tools/btattach.rst
index e51772e..b7ae09a 100644
--- a/tools/btattach.rst
+++ b/tools/btattach.rst
* - qca
--S baudrate, --speed baudrate Specify wich baudrate to use
+-S baudrate, --speed baudrate Specify which baudrate to use
-N, --noflowctl Disable flow control
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index b47914d..f64d5bc 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
case BT_ATT_ERROR_ATTRIBUTE_NOT_LONG:
return "Attribute Not Long";
case BT_ATT_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE:
- return "Insuficient Encryption Key Size";
+ return "Insufficient Encryption Key Size";
case BT_ATT_ERROR_INVALID_ATTRIBUTE_VALUE_LEN:
return "Invalid Attribute value len";
case BT_ATT_ERROR_UNLIKELY:
cli->att = bt_att_new(fd, false);
if (!cli->att) {
- fprintf(stderr, "Failed to initialze ATT transport layer\n");
+ fprintf(stderr, "Failed to initialize ATT transport layer\n");
bt_att_unref(cli->att);
free(cli);
return NULL;
diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c
index 90a6c9b..9d05abd 100644
--- a/tools/btgatt-server.c
+++ b/tools/btgatt-server.c
server->att = bt_att_new(fd, false);
if (!server->att) {
- fprintf(stderr, "Failed to initialze ATT transport layer\n");
+ fprintf(stderr, "Failed to initialize ATT transport layer\n");
goto fail;
}
diff --git a/tools/btpclient.c b/tools/btpclient.c
index 055270e..d062e6d 100644
--- a/tools/btpclient.c
+++ b/tools/btpclient.c
l_info("Unable to remove ad instance");
if (!l_dbus_object_remove_interface(dbus, AD_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_unregister_interface(dbus, AD_IFACE))
l_info("Unable to unregister ad interface");
if (!l_dbus_object_remove_interface(dbus, AG_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_object_remove_interface(dbus, AG_PATH, AG_IFACE))
l_info("Unable to remove agent instance");
if (!l_dbus_unregister_interface(dbus, AG_IFACE))
case AD_TYPE_TX_POWER:
ad.tx_power = true;
- /* XXX Value is ommited cause, stack fills it */
+ /* XXX Value is omitted cause, stack fills it */
break;
case AD_TYPE_SERVICE_DATA_UUID16:
l_info("Unable to remove ad instance");
if (!l_dbus_object_remove_interface(dbus, AD_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_unregister_interface(dbus, AD_IFACE))
l_info("Unable to unregister ad interface");
if (!l_dbus_object_remove_interface(dbus, AG_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_object_remove_interface(dbus, AG_PATH, AG_IFACE))
l_info("Unable to remove agent instance");
if (!l_dbus_unregister_interface(dbus, AG_IFACE))
if (!device)
goto failed;
- /* This command is asynchronous, send reply immediatelly to not block
+ /* This command is asynchronous, send reply immediately to not block
* pairing process eg. passkey request.
*/
btp_send(btp, BTP_GAP_SERVICE, BTP_OP_GAP_PAIR, adapter->index, 0,
} else {
reply = l_dbus_message_new_error(ag.pending_req,
"org.bluez.Error.Rejected",
- "Passkey missmatch");
+ "Passkey mismatch");
}
l_dbus_send_with_reply(dbus, ag.pending_req, passkey_confirm_rsp_reply,
*supported |= BTP_GAP_SETTING_PRIVACY;
/* *supported |= BTP_GAP_SETTING_STATIC_ADDRESS; */
- /* TODO not all info is availbe via D-Bus API so some are assumed to be
- * enabled by bluetoothd or simply hardcoded until API is extended
+ /* TODO not all info is available via D-Bus API so some are assumed to
+ * be enabled by bluetoothd or simply hardcoded until API is extended
*/
*current |= BTP_GAP_SETTING_CONNECTABLE;
*current |= BTP_GAP_SETTING_SSP;
btp_gap_device_connection_ev(proxy, prop);
} else if (!strcmp(name, "AddressType")) {
- /* Addres property change came first along with address
+ /* Address property change came first along with address
* type.
*/
btp_identity_resolved_ev(proxy);
diff --git a/tools/btpclientctl.c b/tools/btpclientctl.c
index f6f61ed..1d89b51 100644
--- a/tools/btpclientctl.c
+++ b/tools/btpclientctl.c
}
static const struct indexstr_data error_table[] = {
- { 0x01, "Faile" },
+ { 0x01, "Failed" },
{ 0x02, "Unknown Command" },
{ 0x03, "Not Ready" },
{ 0x04, "Invalid Index" },
diff --git a/tools/ciptool.c b/tools/ciptool.c
index 0d6272d..f26e3cc 100644
--- a/tools/ciptool.c
+++ b/tools/ciptool.c
return;
if (cl.cnum != 1) {
- fprintf(stderr, "You have to specifiy the device address.\n");
+ fprintf(stderr,
+ "You have to specify the device address.\n");
exit(1);
}
diff --git a/tools/hciattach_ath3k.c b/tools/hciattach_ath3k.c
index 8922b48..5bd6358 100644
--- a/tools/hciattach_ath3k.c
+++ b/tools/hciattach_ath3k.c
FILE *stream;
/*
- * Verfiy firmware version. depending on it select the PS
+ * Verify firmware version. depending on it select the PS
* config file to download.
*/
if (get_device_type(fd, &dev_type) < 0) {
diff --git a/tools/hciconfig.rst b/tools/hciconfig.rst
index 992aafd..8b548a0 100644
--- a/tools/hciconfig.rst
+++ b/tools/hciconfig.rst
class [*class*]
With no *class*, prints class of device. Otherwise, sets class of device
to *class*. *class* is a 24-bit hex number describing the class of device,
- as specified in section 1.2 of the Bluetooth Assigned Numers document.
+ as specified in section 1.2 of the Bluetooth Assigned Numbers document.
voice [*voice*]
With no *voice*, prints voice setting. Otherwise, sets voice setting to
diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
index 7e9dd84..f1eb79a 100644
--- a/tools/l2cap-tester.c
+++ b/tools/l2cap-tester.c
tester_print("Will close socket during scan phase...");
- /* We tried to conect to LE device that is not advertising. It
+ /* We tried to connect to LE device that is not advertising. It
* was added to kernel accept list, and scan was started. We
* should be still scanning.
*/
}
if (errno != ENOTCONN) {
- tester_warn("Unexpexted getpeername error: %s (%d)",
+ tester_warn("Unexpected getpeername error: %s (%d)",
strerror(errno), errno);
tester_test_failed();
goto done;
diff --git a/tools/l2test.c b/tools/l2test.c
index 4c22968..8c35d60 100644
--- a/tools/l2test.c
+++ b/tools/l2test.c
/* Check sequence */
sq = get_le32(buf);
if (seq != sq) {
- syslog(LOG_INFO, "seq missmatch: %d -> %d", seq, sq);
+ syslog(LOG_INFO, "seq mismatch: %d -> %d", seq,
+ sq);
seq = sq;
}
seq++;
/* Check length */
l = get_le16(buf + 4);
if (len != l) {
- syslog(LOG_INFO, "size missmatch: %d -> %d", len, l);
+ syslog(LOG_INFO, "size mismatch: %d -> %d", len,
+ l);
continue;
}
/* Verify data */
for (i = 6; i < len; i++) {
if (buf[i] != 0x7f)
- syslog(LOG_INFO, "data missmatch: byte %d 0x%2.2x", i, buf[i]);
+ syslog(LOG_INFO,
+ "data mismatch: byte %d 0x%2.2x",
+ i, buf[i]);
}
total += len;
diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c
index b1d091b..8c53c8c 100644
--- a/tools/mesh-cfgclient.c
+++ b/tools/mesh-cfgclient.c
if (local->mgmt_proxy)
l_queue_remove(node_proxies, local->mgmt_proxy);
- /* Inititalize config client model */
+ /* Initialize config client model */
client_init();
if (l_dbus_proxy_get_property(local->proxy, "IvIndex", "u", &ivi) &&
diff --git a/tools/mesh-gatt/mesh-net.h b/tools/mesh-gatt/mesh-net.h
index 95a1346..7877192 100644
--- a/tools/mesh-gatt/mesh-net.h
+++ b/tools/mesh-gatt/mesh-net.h
#define PROXY_FILTER_ACCEPT_LIST 0x00
#define PROXY_FILTER_REJECT_LIST 0x01
-/* Network Tranport Opcodes */
+/* Network Transport Opcodes */
#define NET_OP_SEG_ACKNOWLEDGE 0x00
#define NET_OP_FRND_POLL 0x01
#define NET_OP_FRND_UPDATE 0x02
diff --git a/tools/mesh-gatt/node.c b/tools/mesh-gatt/node.c
index 356e1cd..9a106b5 100644
--- a/tools/mesh-gatt/node.c
+++ b/tools/mesh-gatt/node.c
while (len >= 2 && m--) {
mod_id = get_le16(data);
- /* initialize uppper 16 bits to 0xffff for SIG models */
+ /* initialize upper 16 bits to 0xffff for SIG models */
mod_id |= 0xffff0000;
if (!node_set_model(node, ele->index, mod_id)) {
g_free(comp);
diff --git a/tools/mesh-gatt/prov.c b/tools/mesh-gatt/prov.c
index 1f3f62d..54d66a0 100644
--- a/tools/mesh-gatt/prov.c
+++ b/tools/mesh-gatt/prov.c
#define PROV_ERR_UNEXPECTED_ERR 0x07
#define PROV_ERR_CANT_ASSIGN_ADDR 0x08
-/* For Deployment, Security levels below HIGH are *not* recomended */
+/* For Deployment, Security levels below HIGH are *not* recommended */
static uint8_t prov_sec_level = MESH_PROV_SEC_MED;
/* Expected Provisioning PDU sizes */
/* Compose appropriate reply for the prov state message */
/* Send reply via mesh_gatt_write() */
- /* If done, call prov_done calllback and free prov housekeeping data */
+ /* If done, call prov_done callback and free prov housekeeping data */
bt_shell_printf("Got provisioning data (%d bytes)\n", len);
print_byte_array("\t", buf, len);
diff --git a/tools/meshctl.c b/tools/meshctl.c
index 7b9c44b..152fc01 100644
--- a/tools/meshctl.c
+++ b/tools/meshctl.c
net_session_close(connection.data_in);
- /* Stop notificiation on prov_out or proxy out characteristics */
+ /* Stop notification on prov_out or proxy out characteristics */
if (connection.data_out) {
if (g_dbus_proxy_get_property(connection.data_out, "Notifying",
&iter) == TRUE) {
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index a1d4815..3503582 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
setup_bthost();
}
-/* Generic callback for checking the mgmt evnet status
+/* Generic callback for checking the mgmt event status
*/
static void generic_mgmt_status_callback(uint8_t status, uint16_t length,
const void *param, void *user_data)
{
struct test_data *data = tester_get_data();
- /* Send the Read Experiemental Features Information command to receive
- * the Experiemental Feature Changed event
+ /* Send the Read Experimental Features Information command to receive
+ * the Experimental Feature Changed event
*/
mgmt_send(data->mgmt_alt, MGMT_OP_READ_EXP_FEATURES_INFO,
data->mgmt_index, 0, NULL,
test_bredrle50("Set PHY 2m Success", &set_phy_2m_success,
NULL, test_command_generic);
- test_bredrle50("Set PHY coded Succcess", &set_phy_coded_success,
+ test_bredrle50("Set PHY coded Success", &set_phy_coded_success,
NULL, test_command_generic);
test_bredrle50("Set PHY 2m tx success", &set_phy_2m_tx_success,
* Setup: Enable Privacy, LL Privacy
* Run: Pair device, disconnect, add device, add 2nd device, and
* remove the client, then unpair.
- * Expect: Expect the clinet is removed from the Accept List.
+ * Expect: Expect the client is removed from the Accept List.
*/
test_bredrle50_full("LL Privacy - Unpair 2 (Remove from AL)",
&ll_privacy_unpair_2,
diff --git a/tools/parser/att.c b/tools/parser/att.c
index bef583a..fe1165b 100644
--- a/tools/parser/att.c
+++ b/tools/parser/att.c
if (flags == 0x00)
printf("cancel all prepared writes ");
else
- printf("immediatelly write all pending prepared values ");
+ printf("immediately write all pending prepared values ");
printf("(0x%2.2x)\n", flags);
}
diff --git a/tools/parser/avrcp.c b/tools/parser/avrcp.c
index d574c7e..9f0c159 100644
--- a/tools/parser/avrcp.c
+++ b/tools/parser/avrcp.c
case AVRCP_STATUS_NOW_PLAYING_LIST_FULL:
return "Now Playing List Full";
case AVRCP_STATUS_SEARCH_NOT_SUPPORTED:
- return "Seach Not Supported";
+ return "Search Not Supported";
case AVRCP_STATUS_SEARCH_IN_PROGRESS:
return "Search in Progress";
case AVRCP_STATUS_INVALID_PLAYER_ID:
}
interval = p_get_u32(frm);
- printf("SongLength: 0x%08x (%u miliseconds)\n", interval, interval);
+ printf("SongLength: 0x%08x (%u milliseconds)\n", interval, interval);
p_indent(level, frm);
interval = p_get_u32(frm);
- printf("SongPosition: 0x%08x (%u miliconds)\n", interval, interval);
+ printf("SongPosition: 0x%08x (%u milliconds)\n", interval, interval);
p_indent(level, frm);
break;
case AVRCP_EVENT_PLAYBACK_POS_CHANGED:
interval = p_get_u32(frm);
- printf("Position: 0x%08x (%u miliseconds)\n", interval,
+ printf("Position: 0x%08x (%u milliseconds)\n", interval,
interval);
break;
case AVRCP_EVENT_BATT_STATUS_CHANGED:
printf("(UNPLUGGED)\n");
break;
default:
- printf("(UNKOWN)\n");
+ printf("(UNKNOWN)\n");
break;
}
break;
len = p_get_u8(frm);
- printf("Lenght: 0x%02x\n", len);
+ printf("Length: 0x%02x\n", len);
raw_dump(level, frm);
}
diff --git a/tools/parser/hci.c b/tools/parser/hci.c
index a1a639e..4af142c 100644
--- a/tools/parser/hci.c
+++ b/tools/parser/hci.c
p_indent(level, frm);
printf("Token rate: %d\n", btohl(cp->qos.token_rate));
p_indent(level, frm);
- printf("Peak bandwith: %d\n", btohl(cp->qos.peak_bandwidth));
+ printf("Peak bandwidth: %d\n", btohl(cp->qos.peak_bandwidth));
p_indent(level, frm);
printf("Latency: %d\n", btohl(cp->qos.latency));
p_indent(level, frm);
p_indent(level, frm);
printf("Token rate: %d\n", btohl(evt->qos.token_rate));
p_indent(level, frm);
- printf("Peak bandwith: %d\n", btohl(evt->qos.peak_bandwidth));
+ printf("Peak bandwidth: %d\n", btohl(evt->qos.peak_bandwidth));
p_indent(level, frm);
printf("Latency: %d\n", btohl(evt->qos.latency));
p_indent(level, frm);
p_indent(level, frm);
printf("Token rate: %d\n", btohl(evt->qos.token_rate));
p_indent(level, frm);
- printf("Peak bandwith: %d\n", btohl(evt->qos.peak_bandwidth));
+ printf("Peak bandwidth: %d\n", btohl(evt->qos.peak_bandwidth));
p_indent(level, frm);
printf("Latency: %d\n", btohl(evt->qos.latency));
p_indent(level, frm);
diff --git a/tools/parser/l2cap.c b/tools/parser/l2cap.c
index 8675aa7..abc1c77 100644
--- a/tools/parser/l2cap.c
+++ b/tools/parser/l2cap.c
{
switch (status) {
case 0x0000:
- return "No futher information available";
+ return "No further information available";
case 0x0001:
return "Authentication pending";
case 0x0002:
diff --git a/tools/parser/parser.h b/tools/parser/parser.h
index b9f8f2c..dcc0e9b 100644
--- a/tools/parser/parser.h
+++ b/tools/parser/parser.h
ba2str(ba, str);
}
-/* get_uXX functions do byte swaping */
+/* get_uXX functions do byte swapping */
static inline uint8_t p_get_u8(struct frame *frm)
{
diff --git a/tools/parser/rfcomm.h b/tools/parser/rfcomm.h
index c3a1dfb..b1cb174 100644
--- a/tools/parser/rfcomm.h
+++ b/tools/parser/rfcomm.h
/* FIXME: Should this one be defined here? */
#define SHORT_PAYLOAD_SIZE 127
-/* Used for setting the EA field in different packets, really neccessary? */
+/* Used for setting the EA field in different packets, really necessary? */
#define EA 1
/* Yes the FCS size is only one byte */
#define FCS_SIZE 1
#error "Unknown byte order"
#endif
-/* Typedefinitions of stuctures used for creating and parsing packets, for a
+/* Typedefinitions of structures used for creating and parsing packets, for a
* further description of the structures please se the bluetooth core
* specification part F:1 and the ETSI TS 07.10 specification */
diff --git a/tools/parser/smp.c b/tools/parser/smp.c
index 733795a..10d51de 100644
--- a/tools/parser/smp.c
+++ b/tools/parser/smp.c
case SMP_IO_KEYBOARD_DISPLAY:
return "KeyboardDisplay";
default:
- return "Unkown";
+ return "Unknown";
}
}
case SMP_REASON_REPEATED_ATTEMPTS:
return "Repeated Attempts";
default:
- return "Unkown";
+ return "Unknown";
}
}
diff --git a/tools/rctest.c b/tools/rctest.c
index 367e41e..7da2d8b 100644
--- a/tools/rctest.c
+++ b/tools/rctest.c
/* Check sequence */
sq = btohl(*(uint32_t *) buf);
if (seq != sq) {
- syslog(LOG_INFO, "seq missmatch: %d -> %d", seq, sq);
+ syslog(LOG_INFO, "seq mismatch: %d -> %d", seq,
+ sq);
seq = sq;
}
seq++;
/* Check length */
l = btohs(*(uint16_t *) (buf + 4));
if (r != l) {
- syslog(LOG_INFO, "size missmatch: %d -> %d", r, l);
+ syslog(LOG_INFO, "size mismatch: %d -> %d", r,
+ l);
continue;
}
/* Verify data */
for (i = 6; i < r; i++) {
if (buf[i] != 0x7f)
- syslog(LOG_INFO, "data missmatch: byte %d 0x%2.2x", i, buf[i]);
+ syslog(LOG_INFO,
+ "data mismatch: byte %d 0x%2.2x", i,
+ buf[i]);
}
#endif
total += r;