All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Christian Lamparter <chunkeey@googlemail.com>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	"John W. Linville" <linville@tuxdriver.com>,
	rainbow lum <rainbowlum@gmail.com>
Subject: Re: phyX enumeration conflict
Date: Mon, 11 Oct 2010 10:26:08 -0700	[thread overview]
Message-ID: <4CB348B0.3050909@candelatech.com> (raw)
In-Reply-To: <1286729035.3547.10.camel@jlt3.sipsolutions.net>

On 10/10/2010 09:43 AM, Johannes Berg wrote:
> On Sun, 2010-10-10 at 08:39 -0700, Ben Greear wrote:
>
>> Sorry about that.  If anyone has any example udev magic to do this sort
>> of thing, I'd like to try that out.
>
> This works:
>
> /etc/udev/rules.d/70-phyname.rules:
> -- begin --
> ACTION!="add", GOTO="phyname_end"
> SUBSYSTEM!="ieee80211", GOTO="phyname_end"
>
> # read MAC address
> ENV{MATCHADDR}="$attr{macaddress}"
> ENV{PHYIDX}="$attr{index}"
>
> ENV{MATCHADDR}=="02:00:00:00:00:00", RUN+="/usr/sbin/iw %k set name hwsim0"
>
> LABEL="phyname_end"
> -- end --
>
> Of course, you'd probably want to do something like
> persistent-net-generator etc, but I'll leave that to somebody else.
>
> Just remember you can't actually name it "phy0".

Ok, that part is working.

However, the 'phy0' name doesn't change in
/debug/ath5k/[phy-dev]/ link, so it confuses my tools.

I'm going to see if I can get that fixed somehow...

Thanks,
Ben

>
> johannes
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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


  reply	other threads:[~2010-10-11 17:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08 19:59 phyX enumeration conflict Christian Lamparter
2010-10-10  8:09 ` Johannes Berg
2010-10-10  8:16   ` Johannes Berg
2010-10-10 15:39     ` Ben Greear
2010-10-10 16:43       ` Johannes Berg
2010-10-11 17:26         ` Ben Greear [this message]
2010-10-11 17:34           ` Johannes Berg
2010-10-11 17:46             ` Ben Greear
2010-10-11 17:56               ` Johannes Berg

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=4CB348B0.3050909@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=chunkeey@googlemail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=rainbowlum@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.