broadcom-wl: add support for setting H/W address

Some devices initialize with a default address (common to all H/W).
The address needs to be changeable so that a unique address can be
assigned to each AP.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38757 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Hauke Mehrtens
2013-11-11 22:02:14 +00:00
parent 5e70448157
commit be7a5ba554
2 changed files with 18 additions and 4 deletions

View File

@@ -891,6 +891,13 @@ static const struct wlc_call wlc_calls[] = {
.data.num = ((WLC_GET_BSSID << 16) | WLC_SET_BSSID),
.desc = "BSSID"
},
{
.name = "cur_etheraddr",
.param = MAC,
.handler = wlc_iovar,
.data.str = "cur_etheraddr",
.desc = "Current MAC Address"
},
{
.name = "default_bssid",
.param = MAC,