diff --git a/src/adapter.c b/src/adapter.c
index 70141e1..7980230 100644
--- a/src/adapter.c
+++ b/src/adapter.c
struct btd_adapter_pin_cb_iter {
GSList *it; /* current callback function */
- unsigned int attempt; /* numer of times it() was called */
+ unsigned int attempt; /* number of times it() was called */
/* When the iterator reaches the end, it is NULL and attempt is 0 */
};
DBG("");
/* If there are any normal discovery clients passive scanning
- * wont be running */
+ * won't be running
+ */
if (adapter->discovery_list)
return;
*rssi = HCI_RSSI_INVALID;
/*
- * Empty_uuid variable determines wether there was any filter with no
+ * Empty_uuid variable determines whether there was any filter with no
* uuids. In this case someone might be looking for all devices in
* certain proximity, and we need to have empty uuids in kernel filter.
*/
/*
* It there is both regular and filtered scan running, then
- * clear whole fitler to report all devices.
+ * clear whole filter to report all devices.
*/
*transport = adapter_scan_type;
*rssi = HCI_RSSI_INVALID;
/*
* This method merges all adapter filters into one that will be send to kernel.
* cp_ptr is set to null when regular non-filtered discovery is needed,
- * otherwise it's pointing to filter. Returns 0 on succes, -1 on error
+ * otherwise it's pointing to filter. Returns 0 on success, -1 on error
*/
static int discovery_filter_to_mgmt_cp(struct btd_adapter *adapter,
struct mgmt_cp_start_service_discovery **cp_ptr)
return;
}
- DBG("Successfuly set privacy for index %u", adapter->dev_id);
+ DBG("Successfully set privacy for index %u", adapter->dev_id);
}
static int set_privacy(struct btd_adapter *adapter, uint8_t privacy)
bdaddr_type = btd_device_get_bdaddr_type(device);
if (bdaddr_type == BDADDR_BREDR) {
- DBG("auto-connection feature is not avaiable for BR/EDR");
+ DBG("auto-connection feature is not available for BR/EDR");
return;
}
bdaddr_type = btd_device_get_bdaddr_type(device);
if (bdaddr_type == BDADDR_BREDR) {
- DBG("auto-connection feature is not avaiable for BR/EDR");
+ DBG("auto-connection feature is not available for BR/EDR");
return;
}
device = btd_adapter_find_device(adapter, bdaddr, addr_type);
if (status == MGMT_STATUS_AUTH_FAILED && adapter->pincode_requested) {
- /* On faliure, issue a bonding_retry if possible. */
+ /* On failure, issue a bonding_retry if possible. */
if (device != NULL) {
if (device_bonding_attempt_retry(device) == 0)
return;
case BT_MODE_BREDR:
if (!(adapter->supported_settings & MGMT_SETTING_BREDR)) {
btd_error(adapter->dev_id,
- "Ignoring adapter withouth BR/EDR support");
+ "Ignoring adapter without BR/EDR support");
goto failed;
}
case BT_MODE_LE:
if (!(adapter->supported_settings & MGMT_SETTING_LE)) {
btd_error(adapter->dev_id,
- "Ignoring adapter withouth LE support");
+ "Ignoring adapter without LE support");
goto failed;
}
* Remove adapter from list in case of a failure.
*
* Leaving an adapter structure around for a controller that can
- * not be initilized makes no sense at the moment.
+ * not be initialized makes no sense at the moment.
*
* This is a simplification to avoid constant checks if the
* adapter is ready to do anything.
diff --git a/src/adv_monitor.c b/src/adv_monitor.c
index cb38916..f24dcca 100644
--- a/src/adv_monitor.c
+++ b/src/adv_monitor.c
int8_t low_rssi; /* Low RSSI threshold */
uint16_t low_rssi_timeout; /* Low RSSI threshold timeout */
uint16_t sampling_period; /* Merge packets in the same timeslot.
- * Currenly unimplemented in user space.
+ * Currently unimplemented in user
+ * space.
* Used only to pass data to kernel.
*/
};
/* If the RSSI are the same then nothing needs to be done, except on
* the case where pattern is being removed. In that case, we need to
* re-add the pattern.
- * high_rssi_timeout is purposedly left out in the comparison since
+ * high_rssi_timeout is purposely left out in the comparison since
* the value is ignored upon submission to kernel.
*/
if (merged_pattern->rssi.high_rssi == rssi->high_rssi &&
diff --git a/src/device.c b/src/device.c
index 2892b75..a50d9ad 100644
--- a/src/device.c
+++ b/src/device.c
return btd_error_in_progress(msg);
/* Only use this selection algorithms when device is combo
- * chip. Ohterwise, it will use the wrong bearer to establish
+ * chip. Otherwise, it will use the wrong bearer to establish
* a connection if the device is already paired, which will
* stall the pairing procedure. For example, for a BLE only
* device, if the device is already paired, and upper layer
if (l && !g_slist_find_custom(device->primaries, prim->uuid,
prim_uuid_cmp)) {
/*
- * If this happend since the db was cleared for a non-bonded
+ * If this happened since the db was cleared for a non-bonded
* device, then don't remove the btd_service just yet. We do
* this so that we can avoid re-probing the profile if the same
* GATT service is found on the device on re-connection.
* case it has first been discovered over BR/EDR and has a private
* address when discovered over LE for the first time. In such a case we
* need to inherit critical values from the duplicate so that we don't
- * ovewrite them when writing to storage. The next time bluetoothd
+ * overwrite them when writing to storage. The next time bluetoothd
* starts the device will show up as a single instance.
*/
void device_merge_duplicate(struct btd_device *dev, struct btd_device *dup)
* request
*/
if (state->svc_resolved && bonding) {
- /* Attept to store services for this device failed because it
+ /* Attempt to store services for this device failed because it
* was not paired. Now that we're paired retry. */
store_gatt_db(device);
DBG("retrying bonding");
bonding->retry_timer = 0;
- /* Restart the bonding timer to the begining of the pairing. If not
+ /* Restart the bonding timer to the beginning of the pairing. If not
* pincode request/reply occurs during this retry,
* device_bonding_last_duration() will return a consistent value from
* this point. */
diff --git a/src/main.conf b/src/main.conf
index ada9b9b..86759d5 100644
--- a/src/main.conf
+++ b/src/main.conf
#ScanWindowSuspend=
# LE scanning parameters used for active scanning supporting discovery
-# proceedure
+# procedure
#ScanIntervalDiscovery=
#ScanWindowDiscovery=
#ScanIntervalConnect=
#ScanWindowConnect=
-# LE default connection parameters. These values are superceeded by any
+# LE default connection parameters. These values are superseded by any
# specific values provided via the Load Connection Parameters interface
#MinConnectionInterval=
#MaxConnectionInterval=
diff --git a/src/profile.c b/src/profile.c
index ad20436..8a25a97 100644
--- a/src/profile.c
+++ b/src/profile.c
DBG("incoming connect from %s", addr);
if (!btd_adapter_is_uuid_allowed(adapter_find(&src), uuid)) {
- info("UUID %s is not allowed. Igoring the connection", uuid);
+ info("UUID %s is not allowed. Ignoring the connection", uuid);
return;
}
}
if (!btd_adapter_is_uuid_allowed(adapter_find(&src), uuid)) {
- info("UUID %s is not allowed. Igoring the connection", uuid);
+ info("UUID %s is not allowed. Ignoring the connection", uuid);
return;
}