nrf52840 ble Filtering MAC Addresses

The code shown below filters the duplicate MAC addresses, but I found in the previous development process that many Bluetooth devices only display the MAC address, not the name.  If I mask this filtering code, I can scan a lot of devices that I couldn't scan before.  However, there is a problem with this operation: there are many duplicate MAC addresses or device names in the scan list.  Please tell me how I can filter the duplicate MAC addresses to only one without using the code in the figure below.  

examples\ble_central_and_peripheral\experimental\ble_app_interactive\pca10056\s140

Related