kernel 2.6.17: hostap_cs not working, used to work on older kernels

Bryan Kadzban bryan
Wed Nov 8 09:45:05 PST 2006


On Thu, Nov 09, 2006 at 12:08:16AM +0800, claytonk at 163.com wrote:
> SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:02:6f:34:96:3c", NAME="eth1"
> 
> however if I was to tweak this file it is not clear to me how I would
> take care of the case where there are two interfaces with exactly the
> same MAC.

The DRIVERS=="?*" is supposed to handle that for bridge devices and VLAN
sub-interfaces (this is another case where you have multiple interfaces
with the same MAC).  But it doesn't handle wifi0/wlan0 correctly.

udev-103's write_net_rules script has logic in it to handle ath* or
wlan* interfaces correctly.  If the name of the interface starts with
"ath" or "wlan", it adds an ATTRS{type}=="1" match to the generated
rule.  But this only takes effect when generating a new rule (the entire
persistent generator scheme fails to update old rules, pretty much by
design).

So you should be able to change the rule to call the interface wlan0,
and add the ATTRS{type}=="1" match to it (assuming udev >=098; for older
versions use SYSFS{type}).  This should skip the rename of wifi0.

> If it is fixed, the fix hasn't made it to unstable yet

It's in testing -- or at least, the new write_net_rules script is, so
new interfaces will work properly.  Your current setup is still broken
because the rules don't update.  Your choices are to either update your
rules file manually (as above), or remove your rules file and run
"/lib/udev/write_net_rules all_interfaces" to regenerate it.

I'm not sure there's anything Debian can do about older incorrect
rules...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20061108/464314cf/attachment.pgp 



More information about the Hostap mailing list