summaryrefslogtreecommitdiffstats
path: root/target/linux/qualcommax
diff options
context:
space:
mode:
authorChukun Pan <amadeus@jmu.edu.cn>2024-04-30 23:10:01 +0800
committerRobert Marko <robimarko@gmail.com>2024-06-03 13:15:48 +0200
commit29faf53b8cbb0f6212b4099be72057347c125791 (patch)
tree2c453077425d7283ba41bde9270067949ee8795e /target/linux/qualcommax
parentd4acd052181a71d7486430bd4322dec879b99847 (diff)
downloadopenwrt-29faf53b8cbb0f6212b4099be72057347c125791.tar.gz
openwrt-29faf53b8cbb0f6212b4099be72057347c125791.tar.bz2
openwrt-29faf53b8cbb0f6212b4099be72057347c125791.zip
qualcommax: use ath11k_patch_mac for ZBT-Z800AX
Use ath11k_patch_mac and ath11k_set_macflag functions instead of fix_wifi_mac script. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/15580 Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'target/linux/qualcommax')
-rw-r--r--target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata8
-rw-r--r--target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac4
2 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata b/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
index a116d884e2..106a86be75 100644
--- a/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
+++ b/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/firmware/11-ath11k-caldata
@@ -27,7 +27,6 @@ case "$FIRMWARE" in
xiaomi,ax3600|\
xiaomi,ax9000|\
yuncore,ax880|\
- zbtlink,zbt-z800ax|\
zte,mf269)
caldata_extract "0:art" 0x1000 0x20000
;;
@@ -56,6 +55,13 @@ case "$FIRMWARE" in
spectrum,sax1v1k)
caldata_extract_mmc "0:ART" 0x1000 0x20000
;;
+ zbtlink,zbt-z800ax)
+ caldata_extract "0:art" 0x1000 0x20000
+ label_mac=$(get_mac_label)
+ ath11k_patch_mac $(macaddr_add $label_mac -1) 0
+ ath11k_patch_mac $(macaddr_add $label_mac -2) 1
+ ath11k_set_macflag
+ ;;
zyxel,nbg7815)
caldata_extract "0:art" 0x1000 0x20000
label_mac=$(get_mac_label)
diff --git a/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac b/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
index 9552536ade..75a548d1c6 100644
--- a/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
+++ b/target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/11_fix_wifi_mac
@@ -30,8 +30,4 @@ case "$board" in
[ "$PHYNBR" = "1" ] && macaddr_setbit_la $(get_mac_label) > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "2" ] && mtd_get_mac_binary boarddata1 0x12 > /sys${DEVPATH}/macaddress
;;
- zbtlink,zbt-z800ax)
- [ "$PHYNBR" = "0" ] && macaddr_add $(get_mac_label) -1 > /sys${DEVPATH}/macaddress
- [ "$PHYNBR" = "1" ] && macaddr_add $(get_mac_label) -2 > /sys${DEVPATH}/macaddress
- ;;
esac