aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcap-bt-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-bt-linux.c b/pcap-bt-linux.c
index 55c1b6a1..f9f128ac 100644
--- a/pcap-bt-linux.c
+++ b/pcap-bt-linux.c
@@ -237,7 +237,7 @@ bt_activate(pcap_t* handle)
goto close_fail;
}
- if (handle->opt.buffer_size == 0) {
+ if (handle->opt.buffer_size != 0) {
/*
* Set the socket buffer size to the specified value.
*/
@@ -342,7 +342,7 @@ bt_stats_linux(pcap_t *handle, struct pcap_stat *stats)
struct hci_dev_stats * s = &dev_info.stat;
dev_info.dev_id = handle->md.ifindex;
- /* ingnore eintr */
+ /* ignore eintr */
do {
ret = ioctl(handle->fd, HCIGETDEVINFO, (void *)&dev_info);
} while ((ret == -1) && (errno == EINTR));