wifi-scripts: ucode: set default wildcard mac for wifi-station
authorOldřich Jedlička <[email protected]>
Tue, 29 Jul 2025 08:10:58 +0000 (10:10 +0200)
committerFelix Fietkau <[email protected]>
Tue, 2 Sep 2025 07:31:56 +0000 (09:31 +0200)
commit2146f5c31fcdd414620e8b4c6db05d8368019d90
treed5456947b8183dc99a7d684a3522919ec4fff6d5
parenta8e3bff523bc639caa583953e81cdd9778268f1f
wifi-scripts: ucode: set default wildcard mac for wifi-station

When creating the PSK file, the old script sets `mac` to
`00:00:00:00:00:00` when `mac` is not specified (see [here][1]),
creating hostapd configuration lines like:

  vlanid=10 00:00:00:00:00:00 MyStrongPassword

That matches any MAC address (a wildcard). The `ucode` script alternative
misses the default, so set it.

[1]: https://github.com/openwrt/openwrt/blob/9c26d144893c25e484ca97c7a3f58cdec6767465/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh#L428

Signed-off-by: Oldřich Jedlička <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh
package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-station.json