include $(TOPDIR)/rules.mk
PKG_NAME:=mt76
-PKG_VERSION:=2015-06-15
+PKG_VERSION:=2015-10-05
PKG_RELEASE=1
PKG_LICENSE:=GPLv2
PKG_SOURCE_URL:=https://github.com/openwrt/mt76
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=ec91841868a554375b3019bcfaa13ae6d20fe91c
+PKG_SOURCE_VERSION:=0169cab3e4e8377ab5a508895ec893c4e00dbbc5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
--- /dev/null
+--- 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)
+ {
--- /dev/null
+--- 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);
+++ /dev/null
-From: Felix Fietkau <nbd@openwrt.org>
-Date: Sat, 18 Jul 2015 17:51:24 +0200
-Subject: [PATCH] dma: fix rx buffer allocation size
-
-Signed-off-by: Felix Fietkau <nbd@openwrt.org>
----
-
---- a/dma.c
-+++ b/dma.c
-@@ -158,7 +158,7 @@ mt76_dma_rx_fill(struct mt76_dev *dev, s
- while (q->queued < q->ndesc - 1) {
- int offset = mt76_rx_buf_offset(dev);
-
-- buf = kzalloc(len, GFP_ATOMIC);
-+ buf = kzalloc(q->buf_size, GFP_ATOMIC);
- if (!buf)
- break;
-