mt76: mt7615: fix monitor injection of beacon frames
authorFelix Fietkau <nbd@nbd.name>
Mon, 17 Feb 2020 16:46:33 +0000 (17:46 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 17 Mar 2020 16:13:59 +0000 (17:13 +0100)
commitc984457b661a5f86ea22f2b2fc52bd6c3503c9d8
tree87496739a33cb3a27d84958d5f6bcc045bbfb58a
parente9415009afb9dd82647dafadf4d4bb872c5b97e9
mt76: mt7615: fix monitor injection of beacon frames

When injecting beacon frames via monitor interface, they must not be sent to
the beacon hardware queue, because they don't follow normal hardware beacon tx
rules.
Fix sending them by adding a flag to mt7615_mac_write_txwi that selects the
beacon queue for tx, and use it only from mt7615_mcu_set_bcn.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h