linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] wireless:  Print wiphy name in sysfs.
Date: Mon, 11 Oct 2010 11:04:34 -0700	[thread overview]
Message-ID: <4CB351B2.4070803@candelatech.com> (raw)
In-Reply-To: <1286819927.3634.79.camel@jlt3.sipsolutions.net>

On 10/11/2010 10:58 AM, Johannes Berg wrote:
> On Mon, 2010-10-11 at 10:28 -0700, greearb@candelatech.com wrote:
>
>> The index cannot be used to reliably reconstruct a phy
>> name, so explicitly add the phy name to sysfs so that scripts
>> can figure out the parent phy device for a particular
>> wireless interface.
>
> But you still need to know the name to get at this to start with, so
> what's the point?
>
> cat /sys/class/ieee80211/<phyname>/name
> <phyname>
>
> or
>
> cat /sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/ssb0:0/ieee80211/phy0/name
> phy0

I use this to determine the phy device for a particular network device:

[root@dx-2u-ath5k lanforge]# cat /sys/class/net/wlan0/phy80211/name
wiphy0


Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  reply	other threads:[~2010-10-11 18:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11 17:28 [PATCH] wireless: Print wiphy name in sysfs greearb
2010-10-11 17:58 ` Johannes Berg
2010-10-11 18:04   ` Ben Greear [this message]
2010-10-11 18:10     ` Johannes Berg
2010-10-11 18:22       ` Ben Greear
2010-10-11 18:42         ` Johannes Berg
2010-10-11 18:50           ` Ben Greear

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CB351B2.4070803@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).