Search Linux Wireless

Re: phyX enumeration conflict

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux