aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
diff options
context:
space:
mode:
authorEdward Chow <equu@openmail.cc>2022-11-20 11:22:31 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-20 16:13:48 +0100
commit3d343ca713aaa1e59962cdb4f09df99b3c7ad9a2 (patch)
tree40b93a75db93c825e47efdfebde9ae80be280de0 /target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
parentbca663f20f08713eb998af579945323718d21ce7 (diff)
downloadupstream-3d343ca713aaa1e59962cdb4f09df99b3c7ad9a2.tar.gz
upstream-3d343ca713aaa1e59962cdb4f09df99b3c7ad9a2.tar.bz2
upstream-3d343ca713aaa1e59962cdb4f09df99b3c7ad9a2.zip
ath79: calibrate nand netgear wndrxxxx with nvmem
Driver for both soc (2.4GHz Wifi) and pci (5 GHz) now pull the calibration data from the nvmem subsystem. This allows us to move the userspace caldata extraction for the pci-e ath9k supported wifi into the device-tree definition of the device. wmac's nodes are also changed over to use nvmem-cells over OpenWrt's custom mtd-cal-data property. The wifi mac address remains correct after these changes, because When both "mac-address" and "calibration" are defined, the effective mac address comes from the cell corresponding to "mac-address" and mac-address-increment. Test passed on my wndr3700v4 and wndr4500v3. Signed-off-by: Edward Chow <equu@openmail.cc>
Diffstat (limited to 'target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom')
-rw-r--r--target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom23
1 files changed, 0 insertions, 23 deletions
diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index cac955905a..36ab24e2df 100644
--- a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -12,29 +12,6 @@ case "$FIRMWARE" in
8dev,rambutan)
caldata_extract "caldata" 0x1000 0x800
;;
- netgear,wndr3700-v4|\
- netgear,wndr4300|\
- netgear,wndr4300sw|\
- netgear,wndr4300tn|\
- netgear,wndr4300-v2|\
- netgear,wndr4500-v3)
- caldata_extract "caldata" 0x1000 0x440
- ;;
- *)
- caldata_die "board $board is not supported yet"
- ;;
- esac
- ;;
-"ath9k-eeprom-pci-0000:00:00.0.bin")
- case $board in
- netgear,wndr3700-v4|\
- netgear,wndr4300|\
- netgear,wndr4300sw|\
- netgear,wndr4300tn|\
- netgear,wndr4300-v2|\
- netgear,wndr4500-v3)
- caldata_extract "caldata" 0x5000 0x440
- ;;
*)
caldata_die "board $board is not supported yet"
;;