]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: export multiple MAC addresses in sysfs
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 20 Jan 2010 11:02:33 +0000 (12:02 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Jan 2010 21:11:16 +0000 (16:11 -0500)
commit79bc205fbc138061c2fc61627ff35e6006c07784
tree80eeb99e74263e255d4e8af582550a6363ad7884
parentb16d6db1938fe1dc00ac373ad4879b76eda64c89
cfg80211: export multiple MAC addresses in sysfs

If a device has multiple MAC addresses, userspace will
need to know about that. Similarly, if it allows the
MAC addresses to vary by a bitmask.

If a driver exports multiple addresses, it is assumed
that it will be able to deal with that many different
addresses, which need not necessarily match the ones
programmed into the device; if a mask is set then the
device should deal addresses within that mask based
on an arbitrary "base address".

To test it all and show how it is used, add support
to hwsim even though it can't actually deal with
addresses different from the default.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c
include/net/cfg80211.h
net/wireless/core.c
net/wireless/sysfs.c