OSDN Git Service

mt76: mt76x2: fix multi-interface beacon configuration
authorFelix Fietkau <nbd@nbd.name>
Mon, 1 Oct 2018 11:24:00 +0000 (13:24 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 1 Oct 2018 11:26:21 +0000 (13:26 +0200)
commit5289976ad887deb07c76df7eecf553c264aeebed
tree549009c3e7f72682bf33a709b8c443b3505c4ecf
parent49f45fa13da7f7f1005e88a9cfa746f25e471b0d
mt76: mt76x2: fix multi-interface beacon configuration

If the first virtual interface is a station (or an AP with beacons
temporarily disabled), the beacon of the second interface needs to
occupy hardware beacon slot 0.
For some reason the beacon index was incorrectly masked with the
virtual interface beacon mask, which prevents the secondary
interface from sending beacons unless the first one also does.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x2_mac.c