don't send hci_delete_stored_link_key without checking for can send

This commit is contained in:
matthias.ringwald 2011-07-15 19:48:07 +00:00
parent 2a544672af
commit fe8c8cc295

View File

@ -982,7 +982,8 @@ static void rfcomm_multiplexer_state_machine(rfcomm_multiplexer_t * multiplexer,
rfcomm_multiplexer_finalize(multiplexer);
// try to detect authentication errors: drop link key if multiplexer closed before first channel got opened
if (!multiplexer->at_least_one_connection){
hci_send_cmd(&hci_delete_stored_link_key, multiplexer->remote_addr);
log_dbg("TODO: no connections established - delete link key prophylactically\n");
// hci_send_cmd(&hci_delete_stored_link_key, multiplexer->remote_addr);
}
default:
break;