IWCONFIG and finding a matching USB wifi card

Post here if you are a new Porteus member and you're looking for some help.
glestwid
Samurai
Samurai
Posts: 182
Joined: 09 Jan 2018, 20:05
Distribution: Porteus-XFCE 5.0 i586

IWCONFIG and finding a matching USB wifi card

Post#1 by glestwid » 05 Aug 2019, 10:22

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"?

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

IWCONFIG and finding a matching USB wifi card

Post#2 by donald » 06 Aug 2019, 00:53

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 \;

Post Reply