Advertisement
brpr

h

Aug 21st, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. [ -e /lib/firmware/$FIRMWARE ] && exit 0
  4.  
  5. . /lib/functions/caldata.sh
  6.  
  7. board=$(board_name)
  8.  
  9. case "$FIRMWARE" in
  10. "ath10k/cal-pci-0000:00:00.0.bin")
  11. case $board in
  12. asus,rt-ac55u)
  13. caldata_extract "cal" 0x5000 0x844
  14. ;;
  15. domywifi,dw33d)
  16. caldata_extract "art" 0x5000 0x844
  17. ath10k_patch_mac $(mtd_get_mac_binary art 0x12)
  18. ;;
  19. glinet,gl-ar750s-nor|\
  20. glinet,gl-ar750s-nor-nand)
  21. caldata_extract "art" 0x5000 0x844
  22. ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 1)
  23. ;;
  24. zyxel,nbg6716)
  25. caldata_extract "art" 0x5000 0x844
  26. ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) 1)
  27. ;;
  28. esac
  29. ;;
  30. *)
  31. exit 1
  32. ;;
  33. esac
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement