Hi,
My laptop has 2 USB Wifi cards (with identical driver) and 1 internal Wifi. For further usage I need to select a "wlanX" that corresponds to one of these USB wifis but IWCONFIG does not help me with identifying "wlanXes" and USB devices. How can I find which USB wifi has particular "wlanX"?
IWCONFIG and finding a matching USB wifi card
-
- Full of knowledge
- Posts: 2069
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
IWCONFIG and finding a matching USB wifi card
First you need to know the MAC address of each device.
Plug in one by one and make a note of the MAC
You should see a new MAC appearing every time you plug in
an additional device.
e.g
internal wifi MAC address =
USB dongle A, (brand), MAC address =
USB dongle B, (brand), MAC address =
Once you know which device has which MAC address,
you should be able to determine which device is which wlanX.
Plug in one by one and make a note of the MAC
Code: Select all
cat /sys/class/net/*/address
an additional device.
e.g
internal wifi MAC address =
USB dongle A, (brand), MAC address =
USB dongle B, (brand), MAC address =
Once you know which device has which MAC address,
you should be able to determine which device is which wlanX.
Code: Select all
find /sys/class/net/ -mindepth 1 -printf "%P: " -exec cat {}/address \;