/****************************************************************************
NAME
    scanMakeDiscoverable

DESCRIPTION
    Make the dongle connectable and discoverable.
    
*/
void scanMakeDiscoverable (void)
{
    DEBUG_SCAN(("Connectable/Discoverable\n"));
    ConnectionWritePagescanActivity(0x800, 0x12);
    ConnectionWriteInquiryscanActivity(0x800, 0x12);
    ConnectionWriteScanEnable(hci_scan_enable_inq_and_page);
}
Exemple #2
0
/****************************************************************************
NAME    
    sinkEnableConnectable
    
DESCRIPTION
    Make the device connectable 

RETURNS
    void
*/
void sinkEnableConnectable( void )
{
    hci_scan_enable scan = hci_scan_enable_off;
    
    MAIN_DEBUG(("MP Enable Connectable %ci\n", theSink.inquiry_scan_enabled ? '+' : '-'));
    
    /* Set the page scan params */
    ConnectionWritePagescanActivity(theSink.conf2->radio.page_scan_interval, theSink.conf2->radio.page_scan_window);

    /* Make sure that if we're inquiry scanning we don't disable it */
    if (theSink.inquiry_scan_enabled)
        scan = hci_scan_enable_inq_and_page;
    else
        scan = hci_scan_enable_page;

    /* Enable scan mode */
    ConnectionWriteScanEnable(scan);

    /* Set the flag to indicate we're page scanning */
    theSink.page_scan_enabled = TRUE;
}
/****************************************************************************
NAME
    scanMakeConnectable

DESCRIPTION
    Make the dongle connectable.
    
*/
void scanMakeConnectable (void)
{
    DEBUG_SCAN(("Connectable\n"));
    ConnectionWritePagescanActivity(0x800, 0x12);
    ConnectionWriteScanEnable(hci_scan_enable_page);
}