aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2016-03-06 09:42:37 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-06 18:00:40 (GMT)
commit6448e06415e314125355a9eed730f3ce11b01d60 (patch)
treefaa843e33af273cbbb50eb695414b9f77de5fab4 /hostapd/config_file.c
parentf2accfe708c4919dce69d1c33d8ff7f8ba75dbf5 (diff)
downloadhostap-6448e06415e314125355a9eed730f3ce11b01d60.zip
hostap-6448e06415e314125355a9eed730f3ce11b01d60.tar.gz
hostap-6448e06415e314125355a9eed730f3ce11b01d60.tar.bz2
hostapd: Allow use of driver-generated interface addresses
Add a new 'use_driver_iface_addr' configuration parameter to allow use of the default interface address generated by the driver on interface creation. This can be useful when specific MAC addresses were allocated to the device and we want to use them for multi-BSS operation. Signed-off-by: Eliad Peller <eliad@wizery.com>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index a157a74..6f525d9 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2826,6 +2826,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
line);
return 1;
}
+ } else if (os_strcmp(buf, "use_driver_iface_addr") == 0) {
+ conf->use_driver_iface_addr = atoi(pos);
#ifdef CONFIG_IEEE80211W
} else if (os_strcmp(buf, "ieee80211w") == 0) {
bss->ieee80211w = atoi(pos);