3

I have 2 interfaces wlan0 and wlan1.

When I want to see the modes that support my cards I do iw list and I see phy0 and phy2. How do I know what information corresponds to what card?

In other words, how can I know what wlan_x corresponds to which phy_x?

1
  • graphics card? I'm sure you meant something different...
    – Sebastian
    Nov 5, 2014 at 9:08

2 Answers 2

2

With

iw dev

I hope this will help you.

1
  • 2
    I suggest explain more, what it does and why.
    – peterh
    Oct 1, 2015 at 19:37
0

Worked on this a bit for another project:

List wifi interfaces:

iw dev | grep -Po '^\sInterface\s\K.*$'

List connected SSID's:

iw dev | grep -Po '^\sInterface\s\K.*$' | xargs -I {} iw dev {} link | grep -Po '^\sSSID:\s\K.*$'    

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .