Skip to content

Commit 65983fc

Browse files
Mat MartineauGustavo F. Padovan
authored andcommitted
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>
1 parent f428091 commit 65983fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/bluetooth/hci_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ static inline void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb)
24552455
if (conn) {
24562456
register struct hci_proto *hp;
24572457

2458-
hci_conn_enter_active_mode(conn, bt_cb(skb)->force_active);
2458+
hci_conn_enter_active_mode(conn, BT_POWER_FORCE_ACTIVE_OFF);
24592459

24602460
/* Send to upper protocol */
24612461
hp = hci_proto[HCI_PROTO_L2CAP];

0 commit comments

Comments
 (0)