Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277723
b: refs/heads/master
c: ec1cce2
h: refs/heads/master
i:
  277721: d396c5d
  277719: 5ff281c
v: v3
  • Loading branch information
Luiz Augusto von Dentz authored and Gustavo F. Padovan committed Nov 7, 2011
1 parent dfaac21 commit 72af848
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73d80deb7bdf0171f22e76dc2429c1f99eff90e2
refs/heads/master: ec1cce24d5950e797f10650abf7890ead67c6e64
18 changes: 16 additions & 2 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2193,10 +2193,17 @@ static inline void hci_sched_acl(struct hci_dev *hdev)

while (hdev->acl_cnt &&
(chan = hci_chan_sent(hdev, ACL_LINK, &quote))) {
while (quote-- && (skb = skb_dequeue(&chan->data_q))) {
u32 priority = (skb_peek(&chan->data_q))->priority;
while (quote-- && (skb = skb_peek(&chan->data_q))) {
BT_DBG("chan %p skb %p len %d priority %u", chan, skb,
skb->len, skb->priority);

/* Stop if priority has changed */
if (skb->priority < priority)
break;

skb = skb_dequeue(&chan->data_q);

hci_conn_enter_active_mode(chan->conn,
bt_cb(skb)->force_active);

Expand Down Expand Up @@ -2278,10 +2285,17 @@ static inline void hci_sched_le(struct hci_dev *hdev)

cnt = hdev->le_pkts ? hdev->le_cnt : hdev->acl_cnt;
while (cnt && (chan = hci_chan_sent(hdev, LE_LINK, &quote))) {
while (quote-- && (skb = skb_dequeue(&chan->data_q))) {
u32 priority = (skb_peek(&chan->data_q))->priority;
while (quote-- && (skb = skb_peek(&chan->data_q))) {
BT_DBG("chan %p skb %p len %d priority %u", chan, skb,
skb->len, skb->priority);

/* Stop if priority has changed */
if (skb->priority < priority)
break;

skb = skb_dequeue(&chan->data_q);

hci_send_frame(skb);
hdev->le_last_tx = jiffies;

Expand Down

0 comments on commit 72af848

Please sign in to comment.