Some ath10k IPQ40xx devices like the MikroTik hAP ac2 and ac3 require the BDF-s to be extracted from the device storage instead of shipping packaged API 2 BDF-s. This is required as MikroTik has started shipping boards that require BDF-s to be updated, as otherwise their WLAN performance really suffers. This is however impossible as the devices that require this are release under the same revision and its not possible to differentiate them from devices using the older BDF-s. In OpenWrt we are extracting the calibration data during runtime and we are able to extract the BDF-s in the same manner, however we cannot package the BDF-s to API 2 format on the fly and can only use API 1 to provide BDF-s on the fly. This is an issue as the ath10k driver explicitly looks only for the board.bin file and not for something like board-bus-device.bin like it does for pre-cal data. Due to this we have no way of providing correct BDF-s on the fly, so lets extend the ath10k driver to first look for BDF-s in the board-bus-device.bin format, for example: board-ahb-a800000.wifi.bin If that fails, look for the default board file name as defined previously. So, backport the upstream ath10k patch. Signed-off-by: Robert Marko <robimarko@gmail.com>
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From: Sven Eckelmann <sven@open-mesh.com>
|
|
Date: Tue, 18 Nov 2014 12:29:28 +0100
|
|
Subject: [PATCH] ath10k: Don't initialize devices asynchronously
|
|
|
|
OpenWrt requires all PHYs to be initialized to create the configuration files
|
|
during bootup. ath10k violates this because it delays the creation of the PHY
|
|
to a not well defined point in the future.
|
|
|
|
Forcing the work to be done immediately works around this problem but may also
|
|
delay the boot when firmware images cannot be found.
|
|
|
|
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
|
|
---
|
|
|
|
--- a/drivers/net/wireless/ath/ath10k/core.c
|
|
+++ b/drivers/net/wireless/ath/ath10k/core.c
|
|
@@ -3440,6 +3440,16 @@ int ath10k_core_register(struct ath10k *
|
|
|
|
queue_work(ar->workqueue, &ar->register_work);
|
|
|
|
+ /* OpenWrt requires all PHYs to be initialized to create the
|
|
+ * configuration files during bootup. ath10k violates this
|
|
+ * because it delays the creation of the PHY to a not well defined
|
|
+ * point in the future.
|
|
+ *
|
|
+ * Forcing the work to be done immediately works around this problem
|
|
+ * but may also delay the boot when firmware images cannot be found.
|
|
+ */
|
|
+ flush_workqueue(ar->workqueue);
|
|
+
|
|
return 0;
|
|
}
|
|
EXPORT_SYMBOL(ath10k_core_register);
|