aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMat Martineau <mathewm@codeaurora.org>2011-12-13 18:06:02 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-18 18:57:21 -0500
commit65983fc7bb8df655706cb6e8353b6561b633ee4d (patch)
treed1182dc788fdd644d0b8c949e48eb414570e27e9 /net/bluetooth/hci_core.c
parentf42809185896296d5662778e4ec63e084cfa5f2b (diff)
Bluetooth: Incoming ACL packets do not force active mode
Incoming sk_buffs always have bt_cb(skb)->force_active set to 0, so it's misleading to use that value from the control block when calling hci_conn_enter_active_mode() for incoming data. The destination socket is not known in the HCI layer, so the force_active setting for each socket isn't known either. Hard-coding the force_active parameter does not change any behavior, but makes it obvious that incoming ACL data never exits sniff mode. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index b5ba42db056..d6382dbb7b7 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2455,7 +2455,7 @@ static inline void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb)
2455 if (conn) { 2455 if (conn) {
2456 register struct hci_proto *hp; 2456 register struct hci_proto *hp;
2457 2457
2458 hci_conn_enter_active_mode(conn, bt_cb(skb)->force_active); 2458 hci_conn_enter_active_mode(conn, BT_POWER_FORCE_ACTIVE_OFF);
2459 2459
2460 /* Send to upper protocol */ 2460 /* Send to upper protocol */
2461 hp = hci_proto[HCI_PROTO_L2CAP]; 2461 hp = hci_proto[HCI_PROTO_L2CAP];