]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c6aa2d0c3f10c55ef34af9d86e4457b9eb5cf81
tree87496739a33cb3a27d84958d5f6bcc045bbfb58a
parent57a9458bc3a9d5178be75bf220934fb45a1246bb
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