aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mt76/patches/001-backport_ieee80211_hw_set.patch
blob: e94574dc43633a21e617a770fa5d9fbfe6cc93a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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)
 {