"To access the hardware identifiers of nearby external devices via Bluetooth and Wi-Fi scans, your app must now have the ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permission"
https://developer.android.com/about/versions/marshmallow/and...
https://developer.android.com/about/versions/marshmallow/and...