qualcommax: ipq807x: use ath11k_patch_mac for RAX120v2
authorPaweł Owoc <frut3k7@gmail.com>
Mon, 4 Mar 2024 18:29:51 +0000 (19:29 +0100)
committerRobert Marko <robimarko@gmail.com>
Tue, 23 Apr 2024 20:35:57 +0000 (22:35 +0200)
Use ath11k_patch_mac and ath11k_set_macflag functions for RAX120v2 (pre-caldata does not contain valid MAC addresses)

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata

index b373e8471d5e2943da926e4e7e793891f08c7a9c..8f207a38b021f62cfce7e7db2e8018767083f3cf 100644 (file)
@@ -17,7 +17,6 @@ case "$FIRMWARE" in
        edgecore,eap102|\
        edimax,cax1800|\
        linksys,mx5300|\
-       netgear,rax120v2|\
        netgear,wax218|\
        netgear,wax620|\
        netgear,wax630|\
@@ -44,6 +43,13 @@ case "$FIRMWARE" in
                ath11k_remove_regdomain
                ath11k_set_macflag
                ;;
+       netgear,rax120v2)
+               caldata_extract "0:art" 0x1000 0x20000
+               ath11k_patch_mac $(mtd_get_mac_binary boarddata1 0xc) 0
+               ath11k_patch_mac $(mtd_get_mac_binary boarddata1 0x0) 1
+               ath11k_patch_mac $(mtd_get_mac_binary boarddata1 0x6) 2
+               ath11k_set_macflag
+               ;;
        prpl,haze|\
        spectrum,sax1v1k)
                caldata_extract_mmc "0:ART" 0x1000 0x20000