Results 1 to 4 of 4

Thread: Understanding IW command / options

  1. #1
    Join Date
    Nov 2010
    Location
    Colorado, USA
    Beans
    67
    Distro
    Ubuntu 10.04 Lucid Lynx

    Understanding IW command / options

    I went to this page....

    http://manpages.ubuntu.com/manpages/natty/en/man8/iw.8.html

    and saw this:
    IW - COMMAND SYNTAX

    OBJECT dev <interface name> - network interface. phy <phy name> - wireless hardware device (by name). phy#<phy index> - wireless hardware device (by index). reg - regulatory agent.

    I am not sure how to use it.
    For example: iw phy <phy name>
    Where can I get correct Linux name for phy?

    The Ubuntu man pages is quite vague and lack many description.
    Is there a better reference?

    the I went here:

    http://wireless.kernel.org/en/users/Documentation/iw#Adding_interfaces_with_iw
    and saw this:
    For example to add a monitor interface:
    iw phy phy0 interface add moni0 type monitorwhere you can replace monitor by anything else and moni0 by the interface name, and need to replace phy0 by the PHY name for your hardware (usually phy0 will be correct unless you hotplugged or reloaded any modules.) If your udev is configured incorrectly, the newly created virtual interface may be renamed by it right away, use ip link to list all interfaces.

    It still does not explain where they got phy name ( phy0 ).
    In fact the entire description on iw needs better examples and explanation....
    So I think I am missing a link here to complete my understanding.
    Is there a reference discussing how names are assigned to hardware devices?
    i wonder a Linux driver development type book may shed some light....., if there is such a book or reference....

    Comments please.

    Thanks.

  2. #2
    Join Date
    Sep 2011
    Beans
    1,531

    Re: Understanding IW command / options

    To discover the names of hardware devices on your computer, type in a terminal
    Code:
    lshw
    You're not looking for a generic name of a hardware device, you're looking for the specific name of your specific hardware. That won't be in any textbook.

  3. #3
    Join Date
    Sep 2011
    Beans
    7

    Re: Understanding IW command / options

    I used the command
    Code:
    iw phy phy0
    for my wlan0 and it worked. you can get information about a particular device using
    Code:
    iw dev wlan0 info
    you will see

    Code:
    iwphy #
    where # is an actual integer. And your entirely right, there isn't much documentation on it ( or any )

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Understanding IW command / options

    Old thread.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad] [Sub-forum]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •