I'm working on a project using a series of Raspberry Pis, each with two different wireless cards (with different chipsets / using different modules, one is rtl8187 and the other is rt2800usb).
At the moment I've set up persistent naming rules for each Pi, so when I set up a new Pi or swap the wireless cards between Pis, I then have to go and edit it so that the new rtl8187 card is still wlan0 and the new rt2800usb card is still wlan1.
Is there some way I can modify the persistent rules to name the interfaces based on the module they use or something? Ideally I'd like to be able to have it know that whichever rtl8187 card I plug in should be wlan0 and whichever rt2800usb card should be wlan1.
Or as a workaround, is there a way to use a partial wildcard for the MAC address matching? Every card I have of the same chipset has the same vendor MAC prefix.