mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mac80211: backport from trunk r48782 + required kernel patches and mt76, mwlwifi
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48822 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mt76
|
||||
PKG_VERSION:=2015-10-12
|
||||
PKG_VERSION:=2016-02-28
|
||||
PKG_RELEASE=1
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
@@ -10,7 +10,7 @@ PKG_LICENSE_FILES:=
|
||||
PKG_SOURCE_URL:=https://github.com/openwrt/mt76
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=2f31d1e329dc43074a05782624195860c45b099a
|
||||
PKG_SOURCE_VERSION:=675868d4e84f0f4be2449c40902b229b79ecf926
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
|
||||
|
||||
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
|
||||
@@ -23,8 +23,10 @@ define KernelPackage/mt76
|
||||
SUBMENU:=Wireless Drivers
|
||||
TITLE:=MediaTek MT76x2 wireless driver
|
||||
DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT @PCI_SUPPORT
|
||||
FILES:=$(PKG_BUILD_DIR)/mt76pci.ko
|
||||
AUTOLOAD:=$(call AutoLoad,50,mac80211 mt76pci)
|
||||
FILES:=\
|
||||
$(PKG_BUILD_DIR)/mt76.ko \
|
||||
$(PKG_BUILD_DIR)/mt76x2e.ko
|
||||
AUTOLOAD:=$(call AutoLoad,50,mac80211 mt76 mt76x2e)
|
||||
endef
|
||||
|
||||
NOSTDINC_FLAGS = \
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/init.c
|
||||
+++ b/init.c
|
||||
@@ -16,6 +16,9 @@
|
||||
#include "eeprom.h"
|
||||
#include "mcu.h"
|
||||
|
||||
+#define ieee80211_hw_set(hw, flag) \
|
||||
+ do { (hw)->flags |= IEEE80211_HW_##flag; } while(0)
|
||||
+
|
||||
static bool
|
||||
mt76_wait_for_mac(struct mt76_dev *dev)
|
||||
{
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/init.c
|
||||
+++ b/init.c
|
||||
@@ -816,7 +816,6 @@ int mt76_register_device(struct mt76_dev
|
||||
ieee80211_hw_set(hw, HOST_BROADCAST_PS_BUFFERING);
|
||||
ieee80211_hw_set(hw, AMPDU_AGGREGATION);
|
||||
ieee80211_hw_set(hw, SUPPORTS_RC_TABLE);
|
||||
- ieee80211_hw_set(hw, SUPPORT_FAST_XMIT);
|
||||
|
||||
hw->sta_data_size = sizeof(struct mt76_sta);
|
||||
hw->vif_data_size = sizeof(struct mt76_vif);
|
||||
Reference in New Issue
Block a user