mac80211: reintroduce rt61/rt73 support
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 24 Oct 2024 22:12:05 +0000 (00:12 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 28 Oct 2024 23:07:53 +0000 (00:07 +0100)
Reintroduce rt61/rt73 support as they looks to be pretty standard and
currently required by Gemini or Xway-legacy targets.

Notice that they are b/g card.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/kernel/mac80211/ralink.mk

index 83d208ee1a0a0ee11561603cf0792e52aecb1e31..6925d9c5496fb3aabd53295bda8c219c0cb43af9 100644 (file)
@@ -1,6 +1,7 @@
 PKG_DRIVERS += \
        rt2x00-lib rt2x00-pci rt2x00-usb rt2x00-mmio \
-       rt2800-lib rt2800-mmio rt2800-pci rt2800-soc rt2800-usb
+       rt2800-lib rt2800-mmio rt2800-pci rt2800-soc rt2800-usb \
+  rt61-pci rt73-usb
 
 PKG_CONFIG_DEPENDS += \
        CONFIG_PACKAGE_RT2X00_LIB_DEBUGFS \
@@ -128,4 +129,18 @@ $(call KernelPackage/rt2x00/Default)
   AUTOLOAD:=$(call AutoProbe,rt2800usb)
 endef
 
+define KernelPackage/rt61-pci
+$(call KernelPackage/rt2x00/Default)
+  DEPENDS+= @PCI_SUPPORT +kmod-rt2x00-pci +kmod-eeprom-93cx6 +kmod-lib-crc-itu-t +rt61-pci-firmware
+  TITLE+= (RT2x61 PCI)
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt61pci.ko
+  AUTOLOAD:=$(call AutoProbe,rt61pci)
+endef
 
+define KernelPackage/rt73-usb
+  $(call KernelPackage/rt2x00/Default)
+  DEPENDS+= @USB_SUPPORT +kmod-rt2x00-usb +kmod-lib-crc-itu-t +rt73-usb-firmware
+  TITLE+= (RT73 USB)
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ralink/rt2x00/rt73usb.ko
+  AUTOLOAD:=$(call AutoProbe,rt73usb)
+endef