Explorar el Código

hostapd: fix mac address of interfaces created via wdev.uc

Use the wdev config with the generated MAC address

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau hace 2 años
padre
commit
0c43a48735
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      package/network/services/hostapd/files/wdev.uc

+ 1 - 1
package/network/services/hostapd/files/wdev.uc

@@ -41,7 +41,7 @@ function iface_start(wdev)
 		wdev_config[key] = wdev[key];
 	if (!wdev_config.macaddr && wdev.mode != "monitor")
 		wdev_config.macaddr = phydev.macaddr_next();
-	wdev_create(phy, ifname, wdev);
+	wdev_create(phy, ifname, wdev_config);
 	system([ "ip", "link", "set", "dev", ifname, "up" ]);
 	if (wdev.freq)
 		system(`iw dev ${ifname} set freq ${wdev.freq} ${wdev.htmode}`);