Skip to content
Snippets Groups Projects

patches/openwrt: iwinfo: add device ID for Marvell 88W8997 and Atheros AR9287

Merged Josef Schlehofer requested to merge hotfix/iwinfo-add-device-id into hbk
Compare and
1 file
+ 104
0
Preferences
Compare changes
From 740cf8994c93c53978b7f371c529e31fb9354e9f Mon Sep 17 00:00:00 2001
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
Date: Fri, 29 May 2020 16:58:44 +0200
Subject: [PATCH] iwinfo: add device ID for Marvell 88W8997 (SDIO) and Atheros
AR9287
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
---
package/network/utils/iwinfo/Makefile | 2 +-
...e-id-for-Marvell-88W8997-SDIO-wifi-c.patch | 28 ++++++++++++++++
...e-id-for-Atheros-AR9287-PCIe-wifi-ca.patch | 33 +++++++++++++++++++
3 files changed, 62 insertions(+), 1 deletion(-)
create mode 100644 package/network/utils/iwinfo/patches/0001-iwinfo-add-device-id-for-Marvell-88W8997-SDIO-wifi-c.patch
create mode 100644 package/network/utils/iwinfo/patches/0002-iwinfo-add-device-id-for-Atheros-AR9287-PCIe-wifi-ca.patch
diff --git a/package/network/utils/iwinfo/Makefile b/package/network/utils/iwinfo/Makefile
index b1b60e671c..e40ae85247 100644
--- a/package/network/utils/iwinfo/Makefile
+++ b/package/network/utils/iwinfo/Makefile
@@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/iwinfo.git
diff --git a/package/network/utils/iwinfo/patches/0001-iwinfo-add-device-id-for-Marvell-88W8997-SDIO-wifi-c.patch b/package/network/utils/iwinfo/patches/0001-iwinfo-add-device-id-for-Marvell-88W8997-SDIO-wifi-c.patch
new file mode 100644
index 0000000000..ebcaaa64f2
--- /dev/null
+++ b/package/network/utils/iwinfo/patches/0001-iwinfo-add-device-id-for-Marvell-88W8997-SDIO-wifi-c.patch
@@ -0,0 +1,28 @@
+From a98d8817ce101557f078099539c3221cbd09ab92 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali@kernel.org>
+Date: Wed, 20 May 2020 14:33:05 +0200
+Subject: [PATCH 1/2] iwinfo: add device id for Marvell 88W8997 SDIO wifi card
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Pali Rohár <pali@kernel.org>
+---
+ hardware.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/hardware.txt b/hardware.txt
+index e85db06..636a9db 100644
+--- a/hardware.txt
++++ b/hardware.txt
+@@ -168,6 +168,7 @@
+ 0x11ab 0x2a55 0x11ab 0x0000 0 0 "Marvell" "88W8864"
+ 0x02df 0x9135 0x0000 0x0000 0 0 "Marvell" "88W8887"
+ 0x11ab 0x2b40 0x11ab 0x0000 0 0 "Marvell" "88W8964"
++0x02df 0x9141 0x0000 0x0000 0 0 "Marvell" "88W8997"
+ 0x14c3 0x7603 0x14c3 0x7603 0 0 "MediaTek" "MT7603E"
+ 0x14c3 0x7610 0x14c3 0x7610 0 0 "MediaTek" "MT7610E"
+ 0x14c3 0x7612 0x14c3 0x7612 0 0 "MediaTek" "MT7612E"
+--
+2.26.2
+
diff --git a/package/network/utils/iwinfo/patches/0002-iwinfo-add-device-id-for-Atheros-AR9287-PCIe-wifi-ca.patch b/package/network/utils/iwinfo/patches/0002-iwinfo-add-device-id-for-Atheros-AR9287-PCIe-wifi-ca.patch
new file mode 100644
index 0000000000..a601d9237a
--- /dev/null
+++ b/package/network/utils/iwinfo/patches/0002-iwinfo-add-device-id-for-Atheros-AR9287-PCIe-wifi-ca.patch
@@ -0,0 +1,33 @@
+From 78b1fc98013d8d76c1263bd27f37ba0fe94d9b41 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali@kernel.org>
+Date: Wed, 20 May 2020 14:31:46 +0200
+Subject: [PATCH 2/2] iwinfo: add device id for Atheros AR9287 PCIe wifi card
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This card is identified by lspci as:
+
+ 01:00.0 Network controller [0280]: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) [168c:002e] (rev 01)
+ Subsystem: Qualcomm Atheros Device [168c:30a4]
+
+Signed-off-by: Pali Rohár <pali@kernel.org>
+---
+ hardware.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/hardware.txt b/hardware.txt
+index 636a9db..f5ff7a6 100644
+--- a/hardware.txt
++++ b/hardware.txt
+@@ -145,6 +145,7 @@
+ 0x168c 0x002a 0x168c 0xa093 0 0 "Atheros" "AR9280"
+ 0x168c 0x002b 0x168c 0xa091 0 0 "Atheros" "AR9285"
+ 0x168c 0x002d 0x168c 0x209a 0 0 "Atheros" "AR9287"
++0x168c 0x002e 0x168c 0x30a4 0 0 "Atheros" "AR9287"
+ 0x168c 0x002e 0x0777 0xe0a2 8 0 "Ubiquiti" "NanoStation Loco M2 (XM)" /* wrong offset! */
+ 0x168c 0x0030 0x168c 0x3114 0 0 "Atheros" "AR9390"
+ 0x168c 0x0033 0x168c 0xa120 0 0 "Atheros" "AR9580"
+--
+2.26.2
+
--
2.26.2