• Andre Guedes's avatar
    Bluetooth: Prepare start_discovery · f39799f5
    Andre Guedes authored
    This patch does some code refactoring in start_discovery function
    in order to prepare it for interleaved discovery support.
    
    MGMT_ADDR_* macros were moved to hci_core.h since they are now used
    to define discovery type macros.
    
    Discovery type macros were defined according to mgmt-api.txt
    specification:
    
    Possible values for the Type parameter are a bit-wise or of the
    following bits:
    
    	1	BR/EDR
    	2	LE Public
    	3	LE Random
    
    By combining these e.g. the following values are possible:
    
    	1	BR/EDR
    	6	LE (public & random)
    	7	BR/EDR/LE (interleaved discovery)
    Signed-off-by: default avatarAndre Guedes <andre.guedes@openbossa.org>
    Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
    f39799f5
hci_core.h 27.9 KB