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:22:34 -0700 [thread overview]
Message-ID: <4CB355EA.5050902@candelatech.com> (raw)
In-Reply-To: <1286820600.3634.80.camel@jlt3.sipsolutions.net>
On 10/11/2010 11:10 AM, Johannes Berg wrote:
> On Mon, 2010-10-11 at 11:04 -0700, Ben Greear wrote:
>
>
>> 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
>
> What's wrong with
>
> basename $(readlink /sys/class/net/wlan0/phy80211)
It looks like that could work, but it seems a lot easier to probe
network devices via normal manner, and then check if I can just
open and read /sys/class/net/[dev-name]/phy80211/name
I can do that easily from within a C/C++ program, where as
doing system calls and grabbing standard output is more of
a pain (and more overhead).
But, if you don't want to add my patch, it's not a big deal.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2010-10-11 18:22 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
2010-10-11 18:10 ` Johannes Berg
2010-10-11 18:22 ` Ben Greear [this message]
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=4CB355EA.5050902@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).