]> 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)
commitc1cd049fb16a1f0d21517c9e92041305aea67b24
tree87496739a33cb3a27d84958d5f6bcc045bbfb58a
parentf2054abfa3c133dfec94cc48da75b87096318a75
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