Skip to content

Commit

Permalink
ipq807x: fix QNAP 301w 10G phy autneg at boot
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Apr 20, 2022
1 parent 8a72970 commit 6a7ad84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions target/linux/ipq807x/base-files/etc/init.d/bootcount
Expand Up @@ -19,6 +19,12 @@ boot() {
macaddr_add $mac_addr 3 > /sys/devices/platform/soc/c000000.wifi/ieee80211/phy1/macaddress
wifi
;;
qnap,301w)
ssdk_sh debug phy set 0 0x4004c441 0x8 1> /dev/kmsg 2>&1
ssdk_sh debug phy set 0 0x40070000 0x3200 1> /dev/kmsg 2>&1
ssdk_sh debug phy set 8 0x4004c441 0x8 1> /dev/kmsg 2>&1
ssdk_sh debug phy set 8 0x40070000 0x3200 1> /dev/kmsg 2>&1
;;
esac

for q in $(ls /sys/class/net/eth*/queues/rx-*/rps_cpus); do echo f > $q; done
Expand Down

0 comments on commit 6a7ad84

Please sign in to comment.