On 02/07/2022 17:05, Christian Marangi wrote:
+++ b/target/linux/bcm53xx/base-files/etc/hotplug.d/ieee80211/10-fix-mac-address
@@ -0,0 +1,18 @@
+#!/bin/ash
+
+[ "$ACTION" = "add" ] || exit 0
+
Sorry for OT and unreleated question.
We are doing a nvmem migration and some device can declare precal bin
with nvmem cells but mac addrs still require special handling with a
script. We currently ""abuse"" the system requesting the precal bin but
this is problematic if we drop the precal bin (since it will be provided
via nvmem) and mac won't be patched.

I notice you are using this and wonder does this gets called when each
wifi gets probed?

Think will be an good solution to my problem.

Just asking some info sorry for the OT question again.


No worries, this script pops up from time to time. I've
copied that from ath79 or was it mpc85xx?

yes, each phyX when registered issues a hotplug-call. procd/hotplug
then checks if something exists in /etc/hotplug.d/%SUBSYSTEM%
(i.e ieee80211) and then executes the script with various environment
variables set. This is orchestrated by the /etc/hotplug.json rule
at the very end of the file.

Does this help?

Cheers,
Christian

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to