You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found on mikrotik hap ac2 (currently an open PR), where radio calibration data will occasionally be truncated, showing as an incorrect wifi phy macaddr #3037 (comment)
Piped dd for this device introduced with 7557e7f for caldata_from_file, caldata_sysfsload_from_file
This worked as expected in a test of 1000 tries:
dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_0 iflag=skip_bytes,fullblock bs=$((0x2f20)) skip=0 count=1 2>/dev/null | sha256sum
Reproduce:
test_caldata_extract() {
local counter
local count_good
local count_bad
local result
local result_latest
local dd_bs
johnth:
Found on mikrotik hap ac2 (currently an open PR), where radio calibration data will occasionally be truncated, showing as an incorrect wifi phy macaddr
#3037 (comment)
Piped dd for this device introduced with 7557e7f for caldata_from_file, caldata_sysfsload_from_file
Upstream busybox suggests using the iflag=fullblock https://git.busybox.net/busybox/commit/coreutils/dd.c?id=77a6678c427db5ea15d6d0005a579f441277df06
http://lists.busybox.net/pipermail/busybox/2020-November/088320.html
http://lists.busybox.net/pipermail/busybox/2020-November/088326.html
This worked as expected in a test of 1000 tries:
dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_0 iflag=skip_bytes,fullblock bs=$((0x2f20)) skip=0 count=1 2>/dev/null | sha256sum
Reproduce:
test_caldata_extract() { local counter local count_good local count_bad local result local result_latest local dd_bs
}
test_caldata_extract
The text was updated successfully, but these errors were encountered: