<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/net/bluetooth/mgmt.c, branch v4.10</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Bluetooth: Fix append max 11 bytes of name to scan rsp data</title>
<updated>2016-10-19T16:42:37+00:00</updated>
<author>
<name>Michał Narajowski</name>
<email>michal.narajowski@codecoup.pl</email>
</author>
<published>2016-10-19T08:20:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f61851f64b171a684f5a1fa78325756dbbaadadc'/>
<id>f61851f64b171a684f5a1fa78325756dbbaadadc</id>
<content type='text'>
Append maximum of 10 + 1 bytes of name to scan response data.
Complete name is appended only if exists and is &lt;= 10 characters.
Else append short name if exists or shorten complete name if not.
This makes sure name is consistent across multiple advertising
instances.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Append maximum of 10 + 1 bytes of name to scan response data.
Complete name is appended only if exists and is &lt;= 10 characters.
Else append short name if exists or shorten complete name if not.
This makes sure name is consistent across multiple advertising
instances.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Refactor append name and appearance</title>
<updated>2016-10-06T09:52:29+00:00</updated>
<author>
<name>Michał Narajowski</name>
<email>michal.narajowski@codecoup.pl</email>
</author>
<published>2016-10-05T10:28:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1b422066658b7cc985fa020066b72d28159d858f'/>
<id>1b422066658b7cc985fa020066b72d28159d858f</id>
<content type='text'>
Use eir_append_data to remove code duplication.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use eir_append_data to remove code duplication.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Fix not updating scan rsp when adv off</title>
<updated>2016-09-22T15:48:23+00:00</updated>
<author>
<name>Michał Narajowski</name>
<email>michal.narajowski@codecoup.pl</email>
</author>
<published>2016-09-22T14:01:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7dc6f16c68757548a332a0c5fbe661987c2189a9'/>
<id>7dc6f16c68757548a332a0c5fbe661987c2189a9</id>
<content type='text'>
Scan response data should not be updated unless there
is an advertising instance.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Scan response data should not be updated unless there
is an advertising instance.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Fix NULL pointer dereference in mgmt context</title>
<updated>2016-09-22T15:37:21+00:00</updated>
<author>
<name>Arek Lichwa</name>
<email>arek.lichwa@gmail.com</email>
</author>
<published>2016-09-22T12:08:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=dd7e39bbfce1fa6de8315d790d1fe01e92cba44d'/>
<id>dd7e39bbfce1fa6de8315d790d1fe01e92cba44d</id>
<content type='text'>
Adds missing callback assignment to cmd_complete in pending management command
context. Dump path involves security procedure performed on legacy (pre-SSP)
devices with service security requirements set to HIGH (16digits PIN).
It fails when shorter PIN is delivered by user.

[    1.517950] Bluetooth: PIN code is not 16 bytes long
[    1.518491] BUG: unable to handle kernel NULL pointer dereference at           (null)
[    1.518584] IP: [&lt;          (null)&gt;]           (null)
[    1.518584] PGD 9e08067 PUD 9fdf067 PMD 0
[    1.518584] Oops: 0010 [#1] SMP
[    1.518584] Modules linked in:
[    1.518584] CPU: 0 PID: 1002 Comm: kworker/u3:2 Not tainted 4.8.0-rc6-354649-gaf4168c #16
[    1.518584] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.9.3-20160701_074356-anatol 04/01/2014
[    1.518584] Workqueue: hci0 hci_rx_work
[    1.518584] task: ffff880009ce14c0 task.stack: ffff880009e10000
[    1.518584] RIP: 0010:[&lt;0000000000000000&gt;]  [&lt;          (null)&gt;]           (null)
[    1.518584] RSP: 0018:ffff880009e13bc8  EFLAGS: 00010293
[    1.518584] RAX: 0000000000000000 RBX: ffff880009eed100 RCX: 0000000000000006
[    1.518584] RDX: ffff880009ddc000 RSI: 0000000000000000 RDI: ffff880009eed100
[    1.518584] RBP: ffff880009e13be0 R08: 0000000000000000 R09: 0000000000000001
[    1.518584] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[    1.518584] R13: ffff880009e13ccd R14: ffff880009ddc000 R15: ffff880009ddc010
[    1.518584] FS:  0000000000000000(0000) GS:ffff88000bc00000(0000) knlGS:0000000000000000
[    1.518584] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.518584] CR2: 0000000000000000 CR3: 0000000009fdd000 CR4: 00000000000006f0
[    1.518584] Stack:
[    1.518584]  ffffffff81909808 ffff880009e13cce ffff880009e0d40b ffff880009e13c68
[    1.518584]  ffffffff818f428d 00000000024000c0 ffff880009e13c08 ffffffff810ca903
[    1.518584]  ffff880009e13c48 ffffffff811ade34 ffffffff8178c31f ffff880009ee6200
[    1.518584] Call Trace:
[    1.518584]  [&lt;ffffffff81909808&gt;] ? mgmt_pin_code_neg_reply_complete+0x38/0x60
[    1.518584]  [&lt;ffffffff818f428d&gt;] hci_cmd_complete_evt+0x69d/0x3200
[    1.518584]  [&lt;ffffffff810ca903&gt;] ? rcu_read_lock_sched_held+0x53/0x60
[    1.518584]  [&lt;ffffffff811ade34&gt;] ? kmem_cache_alloc+0x1a4/0x200
[    1.518584]  [&lt;ffffffff8178c31f&gt;] ? skb_clone+0x4f/0xa0
[    1.518584]  [&lt;ffffffff818f9d81&gt;] hci_event_packet+0x8e1/0x28e0
[    1.518584]  [&lt;ffffffff81a421f1&gt;] ? _raw_spin_unlock_irqrestore+0x31/0x50
[    1.518584]  [&lt;ffffffff810aea3e&gt;] ? trace_hardirqs_on_caller+0xee/0x1b0
[    1.518584]  [&lt;ffffffff818e6bd1&gt;] hci_rx_work+0x1e1/0x5b0
[    1.518584]  [&lt;ffffffff8107e4bd&gt;] ? process_one_work+0x1ed/0x6b0
[    1.518584]  [&lt;ffffffff8107e538&gt;] process_one_work+0x268/0x6b0
[    1.518584]  [&lt;ffffffff8107e4bd&gt;] ? process_one_work+0x1ed/0x6b0
[    1.518584]  [&lt;ffffffff8107e9c3&gt;] worker_thread+0x43/0x4e0
[    1.518584]  [&lt;ffffffff8107e980&gt;] ? process_one_work+0x6b0/0x6b0
[    1.518584]  [&lt;ffffffff8107e980&gt;] ? process_one_work+0x6b0/0x6b0
[    1.518584]  [&lt;ffffffff8108505f&gt;] kthread+0xdf/0x100
[    1.518584]  [&lt;ffffffff81a4297f&gt;] ret_from_fork+0x1f/0x40
[    1.518584]  [&lt;ffffffff81084f80&gt;] ? kthread_create_on_node+0x210/0x210

Signed-off-by: Arek Lichwa &lt;arek.lichwa@gmail.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds missing callback assignment to cmd_complete in pending management command
context. Dump path involves security procedure performed on legacy (pre-SSP)
devices with service security requirements set to HIGH (16digits PIN).
It fails when shorter PIN is delivered by user.

[    1.517950] Bluetooth: PIN code is not 16 bytes long
[    1.518491] BUG: unable to handle kernel NULL pointer dereference at           (null)
[    1.518584] IP: [&lt;          (null)&gt;]           (null)
[    1.518584] PGD 9e08067 PUD 9fdf067 PMD 0
[    1.518584] Oops: 0010 [#1] SMP
[    1.518584] Modules linked in:
[    1.518584] CPU: 0 PID: 1002 Comm: kworker/u3:2 Not tainted 4.8.0-rc6-354649-gaf4168c #16
[    1.518584] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.9.3-20160701_074356-anatol 04/01/2014
[    1.518584] Workqueue: hci0 hci_rx_work
[    1.518584] task: ffff880009ce14c0 task.stack: ffff880009e10000
[    1.518584] RIP: 0010:[&lt;0000000000000000&gt;]  [&lt;          (null)&gt;]           (null)
[    1.518584] RSP: 0018:ffff880009e13bc8  EFLAGS: 00010293
[    1.518584] RAX: 0000000000000000 RBX: ffff880009eed100 RCX: 0000000000000006
[    1.518584] RDX: ffff880009ddc000 RSI: 0000000000000000 RDI: ffff880009eed100
[    1.518584] RBP: ffff880009e13be0 R08: 0000000000000000 R09: 0000000000000001
[    1.518584] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[    1.518584] R13: ffff880009e13ccd R14: ffff880009ddc000 R15: ffff880009ddc010
[    1.518584] FS:  0000000000000000(0000) GS:ffff88000bc00000(0000) knlGS:0000000000000000
[    1.518584] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.518584] CR2: 0000000000000000 CR3: 0000000009fdd000 CR4: 00000000000006f0
[    1.518584] Stack:
[    1.518584]  ffffffff81909808 ffff880009e13cce ffff880009e0d40b ffff880009e13c68
[    1.518584]  ffffffff818f428d 00000000024000c0 ffff880009e13c08 ffffffff810ca903
[    1.518584]  ffff880009e13c48 ffffffff811ade34 ffffffff8178c31f ffff880009ee6200
[    1.518584] Call Trace:
[    1.518584]  [&lt;ffffffff81909808&gt;] ? mgmt_pin_code_neg_reply_complete+0x38/0x60
[    1.518584]  [&lt;ffffffff818f428d&gt;] hci_cmd_complete_evt+0x69d/0x3200
[    1.518584]  [&lt;ffffffff810ca903&gt;] ? rcu_read_lock_sched_held+0x53/0x60
[    1.518584]  [&lt;ffffffff811ade34&gt;] ? kmem_cache_alloc+0x1a4/0x200
[    1.518584]  [&lt;ffffffff8178c31f&gt;] ? skb_clone+0x4f/0xa0
[    1.518584]  [&lt;ffffffff818f9d81&gt;] hci_event_packet+0x8e1/0x28e0
[    1.518584]  [&lt;ffffffff81a421f1&gt;] ? _raw_spin_unlock_irqrestore+0x31/0x50
[    1.518584]  [&lt;ffffffff810aea3e&gt;] ? trace_hardirqs_on_caller+0xee/0x1b0
[    1.518584]  [&lt;ffffffff818e6bd1&gt;] hci_rx_work+0x1e1/0x5b0
[    1.518584]  [&lt;ffffffff8107e4bd&gt;] ? process_one_work+0x1ed/0x6b0
[    1.518584]  [&lt;ffffffff8107e538&gt;] process_one_work+0x268/0x6b0
[    1.518584]  [&lt;ffffffff8107e4bd&gt;] ? process_one_work+0x1ed/0x6b0
[    1.518584]  [&lt;ffffffff8107e9c3&gt;] worker_thread+0x43/0x4e0
[    1.518584]  [&lt;ffffffff8107e980&gt;] ? process_one_work+0x6b0/0x6b0
[    1.518584]  [&lt;ffffffff8107e980&gt;] ? process_one_work+0x6b0/0x6b0
[    1.518584]  [&lt;ffffffff8108505f&gt;] kthread+0xdf/0x100
[    1.518584]  [&lt;ffffffff81a4297f&gt;] ret_from_fork+0x1f/0x40
[    1.518584]  [&lt;ffffffff81084f80&gt;] ? kthread_create_on_node+0x210/0x210

Signed-off-by: Arek Lichwa &lt;arek.lichwa@gmail.com&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Set appearance only for LE capable controllers</title>
<updated>2016-09-19T18:48:22+00:00</updated>
<author>
<name>Michał Narajowski</name>
<email>michal.narajowski@codecoup.pl</email>
</author>
<published>2016-09-19T12:33:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=af4168c5a925dc3b11b0246c2b91124327919f47'/>
<id>af4168c5a925dc3b11b0246c2b91124327919f47</id>
<content type='text'>
Setting appearance on controllers without LE support will result
in No Supported error.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Johan Hedberg &lt;johan.hedberg@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting appearance on controllers without LE support will result
in No Supported error.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Johan Hedberg &lt;johan.hedberg@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Fix missing ext info event when setting appearance</title>
<updated>2016-09-19T18:33:27+00:00</updated>
<author>
<name>Michał Narajowski</name>
<email>michal.narajowski@codecoup.pl</email>
</author>
<published>2016-09-19T18:25:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e74317f43f5ce2d13cddaab867c59d42934d9585'/>
<id>e74317f43f5ce2d13cddaab867c59d42934d9585</id>
<content type='text'>
This patch adds missing event when setting appearance, just like
in the set local name command.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds missing event when setting appearance, just like
in the set local name command.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Add supported data types to ext info changed event</title>
<updated>2016-09-19T18:33:27+00:00</updated>
<author>
<name>Michał Narajowski</name>
<email>michal.narajowski@codecoup.pl</email>
</author>
<published>2016-09-19T18:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5e9fae48f800b973e45887ce0b8d717d54c0bb11'/>
<id>5e9fae48f800b973e45887ce0b8d717d54c0bb11</id>
<content type='text'>
This patch adds EIR data to extended info changed event.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds EIR data to extended info changed event.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Add appearance to Read Ext Controller Info command</title>
<updated>2016-09-19T18:33:27+00:00</updated>
<author>
<name>Szymon Janc</name>
<email>szymon.janc@codecoup.pl</email>
</author>
<published>2016-09-19T18:25:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6a9e90bff9cfb33d5939c29e5bf2674c9176365d'/>
<id>6a9e90bff9cfb33d5939c29e5bf2674c9176365d</id>
<content type='text'>
If LE is enabled appearance is added to EIR data.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If LE is enabled appearance is added to EIR data.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Factor appending EIR to separate helper</title>
<updated>2016-09-19T18:33:27+00:00</updated>
<author>
<name>Michał Narajowski</name>
<email>michal.narajowski@codecoup.pl</email>
</author>
<published>2016-09-19T18:25:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cde7a863d36a4a629c111f37edc2297d6b822a82'/>
<id>cde7a863d36a4a629c111f37edc2297d6b822a82</id>
<content type='text'>
This will also be used for Extended Information Event handling.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will also be used for Extended Information Event handling.

Signed-off-by: Michał Narajowski &lt;michal.narajowski@codecoup.pl&gt;
Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bluetooth: Refactor read_ext_controller_info handler</title>
<updated>2016-09-19T18:33:27+00:00</updated>
<author>
<name>Szymon Janc</name>
<email>szymon.janc@codecoup.pl</email>
</author>
<published>2016-09-19T18:25:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7d5c11da1ff6389511c42448f59456373edfc103'/>
<id>7d5c11da1ff6389511c42448f59456373edfc103</id>
<content type='text'>
There is no need to allocate heap for reply only to copy stack data to
it. This also fix rp memory leak and missing hdev unlock if kmalloc
failed.

Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no need to allocate heap for reply only to copy stack data to
it. This also fix rp memory leak and missing hdev unlock if kmalloc
failed.

Signed-off-by: Szymon Janc &lt;szymon.janc@codecoup.pl&gt;
Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
