pending.next();
}
+function iface_macaddr_init(phydev, config, macaddr_list)
+{
+ let macaddr_data = {
+ num_global: config.num_global_macaddr ?? 1,
+ mbssid: config.mbssid ?? 0,
+ };
+
+ return phydev.macaddr_init(macaddr_list, macaddr_data);
+}
+
function iface_restart(phydev, config, old_config)
{
let phy = phydev.name;
return;
}
- phydev.macaddr_init(iface_config_macaddr_list(config));
+ iface_macaddr_init(phydev, config, iface_config_macaddr_list(config));
for (let i = 0; i < length(config.bss); i++) {
let bss = config.bss[i];
if (bss.default_macaddr)
}
// Step 6: assign BSSID for newly created interfaces
- let macaddr_data = {
- num_global: config.num_global_macaddr ?? 1,
- mbssid: config.mbssid ?? 0,
- };
- macaddr_list = phydev.macaddr_init(macaddr_list, macaddr_data);
+ macaddr_list = iface_macaddr_init(phydev, config, macaddr_list);
for (let i = 0; i < length(config.bss); i++) {
if (bss_list[i])
continue;
if (val[0] == "#num_global_macaddr" ||
val[0] == "mbssid")
- config[val[0]] = int(val[1]);
+ config[substr(val[0], 1)] = int(val[1]);
push(config.radio.data, line);
}