[OpenWrt-Devel] [PATCH][ar71xx] Fix finding radio calibration for RouterBOARD 951Ui-2HnD

Davey Hutchison dhutchison at bluemesh.net
Wed Nov 9 17:52:47 EST 2016


Fix acquiring the radio calibration data for the RouterBOARD 951Ui-2HnD. Mikrotik started using the w25x05 spi-nor chip. This change was made on the /639 hardware revision of the RouterBOARD 951Ui-2HnD series. Since this hardware change the radio calibration data could not be found.

The older RouterBOARD 95x platforms will still need the original location for the calibration data. Check both locations for the calibration data.

Signed-off-by: David Hutchison <dhutchison at bluemesh.net>

— a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
@@ -124,8 +124,13 @@
 	u8 wlan_mac[ETH_ALEN];
 
 	art_buf = rb_get_wlan_data();
-	if (art_buf == NULL)
-		return;
+	if (art_buf == NULL) {
+		/* Support RouterBOARD 951Ui /639 HW Revision or newer */
+		art_buf = rb_get_ext_wlan_data(1);
+		if (art_buf == NULL) {
+			return;
+		}
+	}
 
 	ath79_init_mac(wlan_mac, ath79_mac_base, 11);
 	ath79_register_wmac(art_buf + 0x1000, wlan_mac);
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list