Do not copy beacon skb in mt76x02_mac_set_beacon_enable for usb devices since it will be done in tbtt tasklet. Moreover tidy up a bit beacon shared code Lorenzo Bianconi (2): mt76: mt76x02: introduce mt76x02_pre_tbtt_enable and mt76x02_beacon_enable macros mt76: mt76x02: do not copy beacon skb in mt76x02_mac_set_beacon_enable .../net/wireless/mediatek/mt76/mt76x0/main.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x02.h | 5 ++ .../wireless/mediatek/mt76/mt76x02_beacon.c | 66 ++++++++----------- .../net/wireless/mediatek/mt76/mt76x02_mac.h | 2 +- .../wireless/mediatek/mt76/mt76x2/usb_main.c | 4 +- 5 files changed, 37 insertions(+), 44 deletions(-) -- 2.21.0