瀏覽代碼

mac80211: fix wmac node names

The upstream submission for this mandates the node to be named wifi
instead of wmac. Change all ath79 entries to match the new names and
remove the compatibility patch.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19328
Signed-off-by: Robert Marko <[email protected]>
Rosen Penev 5 月之前
父節點
當前提交
7e09959efd

+ 0 - 16
package/kernel/mac80211/patches/ath9k/553-ath9k-ahb_of_compat.patch

@@ -1,16 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/ahb.c
-+++ b/drivers/net/wireless/ath/ath9k/ahb.c
-@@ -31,6 +31,13 @@ static const struct of_device_id ath9k_o
- 	{ .compatible = "qca,qca9530-wifi", .data = (void *)AR9300_DEVID_AR953X },
- 	{ .compatible = "qca,qca9550-wifi", .data = (void *)AR9300_DEVID_QCA955X },
- 	{ .compatible = "qca,qca9560-wifi", .data = (void *)AR9300_DEVID_QCA956X },
-+	/* backwards compat, remove if no longer needed: */
-+	{ .compatible = "qca,ar9130-wmac", .data = (void *)AR5416_AR9100_DEVID },
-+	{ .compatible = "qca,ar9330-wmac", .data = (void *)AR9300_DEVID_AR9330 },
-+	{ .compatible = "qca,ar9340-wmac", .data = (void *)AR9300_DEVID_AR9340 },
-+	{ .compatible = "qca,qca9530-wmac", .data = (void *)AR9300_DEVID_AR953X },
-+	{ .compatible = "qca,qca9550-wmac", .data = (void *)AR9300_DEVID_QCA955X },
-+	{ .compatible = "qca,qca9560-wmac", .data = (void *)AR9300_DEVID_QCA956X },
- 	{},
- };
- 

+ 6 - 6
package/network/config/wifi-scripts/files-ucode/usr/share/wifi_devices.json

@@ -238,12 +238,12 @@
 		[ "0x0000", "0x0000", "0x0bda", "0xf179", 0, 0, "Realtek", "RTL8188FTV" ]
 	],
 	"compatible": {
-		"qca,ar9130-wmac": [ "Atheros", "AR9130" ],
-		"qca,ar9330-wmac": [ "Atheros", "AR9330" ],
-		"qca,ar9340-wmac": [ "Atheros", "AR9340" ],
-		"qca,qca9530-wmac": [ "Qualcomm Atheros", "QCA9530" ],
-		"qca,qca9550-wmac": [ "Qualcomm Atheros", "QCA9550" ],
-		"qca,qca9560-wmac": [ "Qualcomm Atheros", "QCA9560" ],
+		"qca,ar9130-wifi": [ "Atheros", "AR9130" ],
+		"qca,ar9330-wifi": [ "Atheros", "AR9330" ],
+		"qca,ar9340-wifi": [ "Atheros", "AR9340" ],
+		"qca,qca9530-wifi": [ "Qualcomm Atheros", "QCA9530" ],
+		"qca,qca9550-wifi": [ "Qualcomm Atheros", "QCA9550" ],
+		"qca,qca9560-wifi": [ "Qualcomm Atheros", "QCA9560" ],
 		"qcom,ipq4019-wifi": [ "Qualcomm Atheros", "IPQ4019" ],
 		"qcom,ipq6018-wifi": [ "Qualcomm Atheros", "IPQ6018" ],
 		"qcom,ipq8074-wifi": [ "Qualcomm Atheros", "IPQ8074" ],

+ 2 - 2
target/linux/ath79/dts/ar9132.dtsi

@@ -175,8 +175,8 @@
 			#size-cells = <0>;
 		};
 
-		wmac: wmac@180c0000 {
-			compatible = "qca,ar9130-wmac";
+		wmac: wifi@180c0000 {
+			compatible = "qca,ar9130-wifi";
 			reg = <0x180c0000 0x230000>;
 
 			interrupts = <2>;

+ 2 - 2
target/linux/ath79/dts/ar9330.dtsi

@@ -152,8 +152,8 @@
 			reg = <0x18070000 0x4>;
 		};
 
-		wmac: wmac@18100000 {
-			compatible = "qca,ar9330-wmac";
+		wmac: wifi@18100000 {
+			compatible = "qca,ar9330-wifi";
 			reg = <0x18100000 0x20000>;
 
 			interrupts = <2>;

+ 2 - 2
target/linux/ath79/dts/ar934x.dtsi

@@ -153,8 +153,8 @@
 			reg = <0x18070000 0x14>;
 		};
 
-		wmac: wmac@18100000 {
-			compatible = "qca,ar9340-wmac";
+		wmac: wifi@18100000 {
+			compatible = "qca,ar9340-wifi";
 			reg = <0x18100000 0x20000>;
 
 			status = "disabled";

+ 2 - 2
target/linux/ath79/dts/qca953x.dtsi

@@ -177,8 +177,8 @@
 			status = "disabled";
 		};
 
-		wmac: wmac@18100000 {
-			compatible = "qca,qca9530-wmac";
+		wmac: wifi@18100000 {
+			compatible = "qca,qca9530-wifi";
 			reg = <0x18100000 0x20000>;
 
 			interrupt-parent = <&intc2>;

+ 2 - 2
target/linux/ath79/dts/qca955x.dtsi

@@ -229,8 +229,8 @@
 			status = "disabled";
 		};
 
-		wmac: wmac@18100000 {
-			compatible = "qca,qca9550-wmac";
+		wmac: wifi@18100000 {
+			compatible = "qca,qca9550-wifi";
 			reg = <0x18100000 0x10000>;
 
 			interrupt-parent = <&intc2>;

+ 2 - 2
target/linux/ath79/dts/qca956x.dtsi

@@ -147,8 +147,8 @@
 			reg = <0x18070000 0x64>;
 		};
 
-		wmac: wmac@18100000 {
-			compatible = "qca,qca9560-wmac";
+		wmac: wifi@18100000 {
+			compatible = "qca,qca9560-wifi";
 			reg = <0x18100000 0x10000>;
 
 			interrupt-parent = <&cpuintc>;