hci.c (43dfd98a195d99d9e218be75213c3899149c41f9) hci.c (7fdbaf795c836a47ec1edcd4774cd06df6629a0c)
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

--- 6947 unchanged lines hidden (view full) ---

6956 if (requested_level <= current_level){
6957 hci_emit_security_level(con_handle, current_level);
6958 return;
6959 }
6960
6961 // store request
6962 connection->requested_security_level = requested_level;
6963
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

--- 6947 unchanged lines hidden (view full) ---

6956 if (requested_level <= current_level){
6957 hci_emit_security_level(con_handle, current_level);
6958 return;
6959 }
6960
6961 // store request
6962 connection->requested_security_level = requested_level;
6963
6964 // request remote features if not already active
6965 hci_remote_features_query(con_handle);
6966
6967 // start to authenticate connection
6968 connection->bonding_flags |= BONDING_SEND_AUTHENTICATE_REQUEST;
6964 // start to authenticate connection
6965 connection->bonding_flags |= BONDING_SEND_AUTHENTICATE_REQUEST;
6969 hci_run();
6966
6967 // request remote features if not already active, also trigger hci_run
6968 hci_remote_features_query(con_handle);
6970 }
6971}
6972
6973/**
6974 * @brief start dedicated bonding with device. disconnect after bonding
6975 * @param device
6976 * @param request MITM protection
6977 * @result GAP_DEDICATED_BONDING_COMPLETE

--- 1730 unchanged lines hidden ---
6969 }
6970}
6971
6972/**
6973 * @brief start dedicated bonding with device. disconnect after bonding
6974 * @param device
6975 * @param request MITM protection
6976 * @result GAP_DEDICATED_BONDING_COMPLETE

--- 1730 unchanged lines hidden ---