I have an inbuilt network card and a Wi-Fi dongle.
hostapd and the likes to operate them.
The trouble is that sometimes the dongle is
wlan0, and sometimes it is
wlan1 (likewise for the inbuilt network card of course): so I never know whether "
wlan0" is the dongle or the inbuilt card. The association
wlanX <-> hardware appears completely random to me.
What is the command line to see, for a specific interface (
wlan0 for instance), what hardware it corresponds to?
Alternatively, how to make sure a specific hardware (the dongle say) is always designated by a same interface (
Not being able to discriminate between these two hardware is a real problem because my dongle does not support the AP mode for instance.