> > I think we should "just" move ieee80211_verify_mac() into do_open(). > > Semantically anyway, I'm clearly handwaving a bit. But I would argue > > that you can set any MAC address that you like, as long as you don't > > bring the interface up, hence the verification really shouldn't be done > > when you assign the address but when you bring it up. > > I've considered this initially. Two reasons that made me > think the current approach is cleaner are: > - it's nice when user gets the error during the action that > puts system in inconsistent state not some time later. I > personally hate to get vague EBUSY and have to figure out > what's wrong. > - suppose there are two interfaces, both down with > incompatible addresses. User adds third ifc, what address > should we assign to it? Right now you can assign the same addresses to multiple interfaces and then you can't bring them up. This happens for example if there are no more addresses to assign. > Besides who would care what address does passive monitor > have? ;) Well those obviously don't matter, which is really the problem here, no? > > address mask: 00:00:00:00:00:03 > > wlan0: 02:00:00:00:00:00 > > wlan1: 02:00:00:00:00:01 > > > > Now you want to change to > > wlan0: 03:00:00:00:00:00 > > wlan1: 03:00:00:00:00:01 > > > > It seems that right now you can't do this at all, which also seems > > wrong. > > Right but I believe user would understand what is the problem > here and just remove and recreate one of the interfaces. They > have to be down to change MAC addr anyway. Dunno, you could also argue the other way around, that since they're down the MAC address really shouldn't matter at all... 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