mt76: sync with trunk r47143, add backports for compat with the older mac80211 version
[15.05/openwrt.git] / package / kernel / mt76 / patches / 001-backport_ieee80211_hw_set.patch
1 --- a/init.c
2 +++ b/init.c
3 @@ -16,6 +16,9 @@
4  #include "eeprom.h"
5  #include "mcu.h"
6  
7 +#define ieee80211_hw_set(hw, flag) \
8 +       do { (hw)->flags |= IEEE80211_HW_##flag; } while(0)
9 +
10  static bool
11  mt76_wait_for_mac(struct mt76_dev *dev)
12  {