Skip to content

Commit b171c07

Browse files
sirfergyrzr
authored andcommitted
React to linux kernel changes
1 parent 2f213bd commit b171c07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/hci-socket/hci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Hci.prototype.setRandomMAC = function () {
241241
};
242242

243243
Hci.prototype.setSocketFilter = function () {
244-
const filter = Buffer.alloc(14);
244+
const filter = Buffer.alloc(16);
245245
const typeMask =
246246
(1 << HCI_COMMAND_PKT) | (1 << HCI_EVENT_PKT) | (1 << HCI_ACLDATA_PKT);
247247
const eventMask1 =

test/lib/hci-socket/hci.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ describe('hci-socket hci', () => {
237237

238238
it('should setSocketFilter', () => {
239239
hci.setSocketFilter();
240-
assert.calledOnceWithExactly(hci._socket.setFilter, Buffer.from([0x16, 0, 0, 0, 0x20, 0xc1, 0x08, 0, 0, 0, 0, 0x40, 0, 0]));
240+
assert.calledOnceWithExactly(hci._socket.setFilter, Buffer.from([0x16, 0, 0, 0, 0x20, 0xc1, 0x08, 0, 0, 0, 0, 0x40, 0, 0, 0, 0]));
241241
});
242242

243243
it('should setEventMask', () => {

0 commit comments

Comments
 (0)