hci.c (bc00e12c3fd94794a9ee9235d4aa3183edbc3316) hci.c (d7387af38d88a0c8d4e85f60f1b0906d02cd738a)
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

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

3498 return hci_stack->gap_security_mode;
3499}
3500
3501void gap_set_security_level(gap_security_level_t security_level){
3502 hci_stack->gap_security_level = security_level;
3503}
3504
3505gap_security_level_t gap_get_security_level(void){
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

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

3498 return hci_stack->gap_security_mode;
3499}
3500
3501void gap_set_security_level(gap_security_level_t security_level){
3502 hci_stack->gap_security_level = security_level;
3503}
3504
3505gap_security_level_t gap_get_security_level(void){
3506 if (hci_stack->gap_secure_connections_only_mode){
3507 return LEVEL_4;
3508 }
3506 return hci_stack->gap_security_level;
3507}
3508
3509void gap_set_secure_connections_only_mode(bool enable){
3510 hci_stack->gap_secure_connections_only_mode = enable;
3511}
3512
3513bool gap_get_secure_connections_only_mode(void){

--- 3204 unchanged lines hidden ---
3509 return hci_stack->gap_security_level;
3510}
3511
3512void gap_set_secure_connections_only_mode(bool enable){
3513 hci_stack->gap_secure_connections_only_mode = enable;
3514}
3515
3516bool gap_get_secure_connections_only_mode(void){

--- 3204 unchanged lines hidden ---