Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc0da5cd authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: prioritize the interrupt channel in hidp



Interrupt channel has low latency requiments, should be processed first.

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent cd11cdd2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -714,18 +714,18 @@ static int hidp_session(void *arg)
				intr_sk->sk_state != BT_CONNECTED)
			break;

		while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) {
		while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) {
			skb_orphan(skb);
			if (!skb_linearize(skb))
				hidp_recv_ctrl_frame(session, skb);
				hidp_recv_intr_frame(session, skb);
			else
				kfree_skb(skb);
		}

		while ((skb = skb_dequeue(&intr_sk->sk_receive_queue))) {
		while ((skb = skb_dequeue(&ctrl_sk->sk_receive_queue))) {
			skb_orphan(skb);
			if (!skb_linearize(skb))
				hidp_recv_intr_frame(session, skb);
				hidp_recv_ctrl_frame(session, skb);
			else
				kfree_skb(skb);
		}