Page 1 of 1

IWCONFIG and finding a matching USB wifi card

Posted: 05 Aug 2019, 10:22
by glestwid
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

Posted: 06 Aug 2019, 00:53
by donald
First you need to know the MAC address of each device.

Plug in one by one and make a note of the MAC

Code: Select all

cat /sys/class/net/*/address
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.

Code: Select all

find /sys/class/net/ -mindepth 1 -printf "%P: " -exec cat {}/address \;