ath10k_patch_mac $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 0x66) +2)
;;
mikrotik,hap-ac2)
- caldata_sysfsload_from_file "/sys/firmware/mikrotik/hard_config/wlan_data" 0x0 0x2f20
+ wdata="/sys/firmware/mikrotik/hard_config/wlan_data"
+ ( [ -f "$wdata" ] && caldata_sysfsload_from_file "$wdata" 0x0 0x2f20 ) || \
+ ( [ -d "$wdata" ] && caldata_sysfsload_from_file "$wdata/data_0" 0x0 0x2f20 )
;;
netgear,ex6100v2 |\
netgear,ex6150v2)
ath10k_patch_mac $(macaddr_add $(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 0x66) +3)
;;
mikrotik,hap-ac2)
- caldata_sysfsload_from_file "/sys/firmware/mikrotik/hard_config/wlan_data" 0x8000 0x2f20
+ wdata="/sys/firmware/mikrotik/hard_config/wlan_data"
+ ( [ -f "$wdata" ] && caldata_sysfsload_from_file "$wdata" 0x8000 0x2f20 ) || \
+ ( [ -d "$wdata" ] && caldata_sysfsload_from_file "$wdata/data_2" 0x0 0x2f20 )
;;
netgear,ex6100v2 |\
netgear,ex6150v2)