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)
commitef15aac6073b27fd4f70007784d2d52ed394bf43
tree80eeb99e74263e255d4e8af582550a6363ad7884
parentb3fbdcf49f940d0703c356441e0daf045e64e076
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