Changeset 46682


Ignore:
Timestamp:
2015-08-17T23:19:27+02:00 (2 years ago)
Author:
hauke
Message:

mac80211: add mt7601u driver

firmware is not available in linux-firmware yet
so use official driver source

Signed-off-by: Dirk Neukirchen <dirkneukirchen@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/mac80211/Makefile

    r46483 r46682  
    3232        iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \ 
    3333        rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \ 
    34         rtl8192de rtl8192cu 
     34        rtl8192de rtl8192cu mt7601u 
    3535 
    3636PKG_CONFIG_DEPENDS:= \ 
     
    694694  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mac80211_hwsim.ko 
    695695  AUTOLOAD:=$(call AutoProbe,mac80211_hwsim) 
     696endef 
     697 
     698PKG_MT7601U_FW_NAME:=DPO_MT7601U_LinuxSTA 
     699PKG_MT7601U_FW_VERSION:=3.0.0.4_20130913 
     700PKG_MT7601U_FW_MD5SUM:=5f440dccc8bc952745a191994fc34699 
     701PKG_MT7601U_FW_SOURCE:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION).tar.bz2 
     702PKG_MT7601U_FW_SOURCE_URL:=http://www.mediatek.com/AmazonS3/Downloads/linux/ 
     703define Download/mt7601u-firmware 
     704  FILE:=$(PKG_MT7601U_FW_SOURCE) 
     705  URL:=$(PKG_MT7601U_FW_SOURCE_URL) 
     706  MD5SUM:=$(PKG_MT7601U_FW_MD5SUM) 
     707  SUBDIR:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION) 
     708endef 
     709$(eval $(call Download,mt7601u-firmware)) 
     710 
     711define KernelPackage/mt7601u 
     712  $(call KernelPackage/mac80211/Default) 
     713  TITLE:=MT7601U-based USB dongles Wireless Driver 
     714  DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core 
     715  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko 
     716  AUTOLOAD:=$(call AutoProbe,mt7601) 
    696717endef 
    697718 
     
    15941615 
    15951616config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM 
     1617config-$(call config_package,mt7601u) += MT7601U 
     1618config-y += WL_MEDIATEK 
    15961619 
    15971620config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB 
     
    16961719        $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE) 
    16971720        $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE) 
     1721        $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_MT7601U_FW_SOURCE) 
    16981722        rm -rf \ 
    16991723                $(PKG_BUILD_DIR)/include/linux/ssb \ 
     
    18671891                $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin 
    18681892endif 
     1893endef 
     1894 
     1895define KernelPackage/mt7601u/install 
     1896        $(INSTALL_DIR) $(1)/lib/firmware 
     1897        $(INSTALL_DATA) \ 
     1898                $(PKG_BUILD_DIR)/$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION)/mcu/bin/MT7601.bin \ 
     1899                $(1)/lib/firmware/mt7601u.bin 
    18691900endef 
    18701901 
     
    20532084$(eval $(call KernelPackage,zd1211rw)) 
    20542085$(eval $(call KernelPackage,mac80211-hwsim)) 
     2086$(eval $(call KernelPackage,mt7601u)) 
    20552087$(eval $(call KernelPackage,ath9k-common)) 
    20562088$(eval $(call KernelPackage,ath9k)) 
Note: See TracChangeset for help on using the changeset viewer.