sm.c (6535961a1f105e850ecdf294c128b9fc982ee05a) | sm.c (ff3cc4a5378c2f681cc9b75cf54d154a12a3051e) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1994 unchanged lines hidden (view full) --- 2003 break; 2004 } 2005 } 2006 2007 // 2008 // active connection handling 2009 // -- use loop to handle next connection if lock on setup context is released 2010 | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1994 unchanged lines hidden (view full) --- 2003 break; 2004 } 2005 } 2006 2007 // 2008 // active connection handling 2009 // -- use loop to handle next connection if lock on setup context is released 2010 |
2011 while (1) { | 2011 while (true) { |
2012 2013 // Find connections that requires setup context and make active if no other is locked 2014 hci_connections_get_iterator(&it); 2015 while((sm_active_connection_handle == HCI_CON_HANDLE_INVALID) && btstack_linked_list_iterator_has_next(&it)){ 2016 hci_connection_t * hci_connection = (hci_connection_t *) btstack_linked_list_iterator_next(&it); 2017 sm_connection_t * sm_connection = &hci_connection->sm_connection; 2018 // - if no connection locked and we're ready/waiting for setup context, fetch it and start 2019 int done = 1; --- 2381 unchanged lines hidden --- | 2012 2013 // Find connections that requires setup context and make active if no other is locked 2014 hci_connections_get_iterator(&it); 2015 while((sm_active_connection_handle == HCI_CON_HANDLE_INVALID) && btstack_linked_list_iterator_has_next(&it)){ 2016 hci_connection_t * hci_connection = (hci_connection_t *) btstack_linked_list_iterator_next(&it); 2017 sm_connection_t * sm_connection = &hci_connection->sm_connection; 2018 // - if no connection locked and we're ready/waiting for setup context, fetch it and start 2019 int done = 1; --- 2381 unchanged lines hidden --- |