• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revision93753c193b2381a67e6689c8be26ea8640c590bc (tree)
Zeit2013-02-12 14:49:03
AutorToshi Kikuchi <toshik@goog...>
CommiterAndroid Git Automerger

Log Message

am 6ff9944c: fix bt_hc_worker_thread() sometimes transmit more than num_hci_cmd_pkts

# Via Toshi Kikuchi
* commit '6ff9944c9dda368fd79ebdf8d6748fc4922eafec':

fix bt_hc_worker_thread() sometimes transmit more than num_hci_cmd_pkts

Ändern Zusammenfassung

Diff

--- a/hci/src/bt_hci_bdroid.c
+++ b/hci/src/bt_hci_bdroid.c
@@ -415,6 +415,7 @@ static void *bt_hc_worker_thread(void *arg)
415415 tx_cmd_pkts_pending = FALSE;
416416 HC_BT_HDR * sending_msg_que[64];
417417 int sending_msg_count = 0;
418+ int sending_hci_cmd_pkts_count = 0;
418419 utils_lock();
419420 p_next_msg = tx_q.p_first;
420421 while (p_next_msg && sending_msg_count <
@@ -430,12 +431,14 @@ static void *bt_hc_worker_thread(void *arg)
430431 * gives back us credits through CommandCompleteEvent or
431432 * CommandStatusEvent.
432433 */
433- if ((tx_cmd_pkts_pending == TRUE) || (num_hci_cmd_pkts <= 0))
434+ if ((tx_cmd_pkts_pending == TRUE) ||
435+ (sending_hci_cmd_pkts_count >= num_hci_cmd_pkts))
434436 {
435437 tx_cmd_pkts_pending = TRUE;
436438 p_next_msg = utils_getnext(p_next_msg);
437439 continue;
438440 }
441+ sending_hci_cmd_pkts_count++;
439442 }
440443
441444 p_msg = p_next_msg;