diff options
author | Henryk Heisig <hyniu@o2.pl> | 2017-02-28 06:32:26 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2017-03-11 20:34:03 +0100 |
commit | c03083339a40853df9da4628e1bec7b821aee39e (patch) | |
tree | 1b9b5016c4017837ffa7a9204ed10f80b2fdfcd5 | |
parent | 9d84accea1da951c59e28ec0528e2ae2f8d26375 (diff) | |
download | mtk-20170518-c03083339a40853df9da4628e1bec7b821aee39e.zip mtk-20170518-c03083339a40853df9da4628e1bec7b821aee39e.tar.gz mtk-20170518-c03083339a40853df9da4628e1bec7b821aee39e.tar.bz2 |
mac80211: add support for Marvell 802.11n/802.11ac SDIO Wireless cards
This adds option to build kernel module and firmware packages
for a Marvell 8887 SDIO Wireless device
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
-rw-r--r-- | package/firmware/linux-firmware/marvell.mk | 9 | ||||
-rw-r--r-- | package/kernel/mac80211/Makefile | 19 |
2 files changed, 27 insertions, 1 deletions
diff --git a/package/firmware/linux-firmware/marvell.mk b/package/firmware/linux-firmware/marvell.mk index 752a8e0..1b99d7a 100644 --- a/package/firmware/linux-firmware/marvell.mk +++ b/package/firmware/linux-firmware/marvell.mk @@ -20,6 +20,15 @@ define Package/mwifiex-pcie-firmware/install endef $(eval $(call BuildPackage,mwifiex-pcie-firmware)) +Package/mwifiex-sdio-firmware = $(call Package/firmware-default,Marvell 8887 firmware) +define Package/mwifiex-sdio-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/mrvl + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mrvl/sd8887_uapsta.bin \ + $(1)/lib/firmware/mrvl/ +endef +$(eval $(call BuildPackage,mwifiex-sdio-firmware)) + Package/libertas-usb-firmware = $(call Package/firmware-default,Marvell 8388/8682 USB firmware) define Package/libertas-usb-firmware/install $(INSTALL_DIR) $(1)/lib/firmware/libertas diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index 578014f..d7b1e0e 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -35,7 +35,7 @@ PKG_DRIVERS = \ libertas-sdio libertas-usb libertas-spi \ mac80211-hwsim \ mt7601u \ - mwl8k mwifiex-pcie \ + mwl8k mwifiex-pcie mwifiex-sdio \ p54-common p54-pci p54-spi p54-usb \ rt2x00-lib rt2x00-pci rt2x00-usb \ rt2400-pci rt2500-pci rt2500-usb \ @@ -1066,6 +1066,21 @@ define KernelPackage/mwifiex-pcie/description Kernel modules for Marvell 802.11n/802.11ac PCIe Wireless cards endef +define KernelPackage/mwifiex-sdio + $(call KernelPackage/mac80211/Default) + TITLE:=Driver for Marvell 802.11n/802.11ac SDIO Wireless cards + URL:=http://wireless.kernel.org/en/users/Drivers/mwifiex + DEPENDS+= +kmod-mmc +kmod-mac80211 +@DRIVER_11N_SUPPORT +mwifiex-sdio-firmware + FILES:= \ + $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/mwifiex/mwifiex.ko \ + $(PKG_BUILD_DIR)/drivers/net/wireless/marvell/mwifiex/mwifiex_sdio.ko + AUTOLOAD:=$(call AutoProbe,mwifiex_sdio) +endef + +define KernelPackage/mwifiex-sdio/description + Kernel modules for Marvell 802.11n/802.11ac SDIO Wireless cards +endef + define KernelPackage/p54/Default $(call KernelPackage/mac80211/Default) TITLE:=Prism54 Drivers @@ -1598,6 +1613,7 @@ config-$(call config_package,libertas-usb) += LIBERTAS LIBERTAS_USB config-$(call config_package,libertas-spi) += LIBERTAS LIBERTAS_SPI config-$(call config_package,mwl8k) += MWL8K config-$(call config_package,mwifiex-pcie) += MWIFIEX MWIFIEX_PCIE +config-$(call config_package,mwifiex-sdio) += MWIFIEX MWIFIEX_SDIO config-$(call config_package,rtl8180) += RTL8180 config-$(call config_package,rtl8187) += RTL8187 config-$(call config_package,wlcore) += WLCORE WLCORE_SDIO @@ -1793,6 +1809,7 @@ $(eval $(call KernelPackage,mac80211-hwsim)) $(eval $(call KernelPackage,mt7601u)) $(eval $(call KernelPackage,mwl8k)) $(eval $(call KernelPackage,mwifiex-pcie)) +$(eval $(call KernelPackage,mwifiex-sdio)) $(eval $(call KernelPackage,p54-common)) $(eval $(call KernelPackage,p54-pci)) $(eval $(call KernelPackage,p54-usb)) |