mt76: mt76x02u: enable multi-vif support
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 2 Aug 2019 14:36:20 +0000 (16:36 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Sep 2019 15:42:31 +0000 (17:42 +0200)
commitf110d1d51d12c6d179eda6e53b23a4af1959aefa
treef616d8507447287a2c34286e4213a9cf2e711feb
parentd5160d867fe31876ff15e121fb48ca1285d93923
mt76: mt76x02u: enable multi-vif support

Enable multi-interface support for mt76x02u driver. For the moment
allow max two concurrent interfaces in order to preserve enough room
for ps traffic since we are using beacon slots for it.
I have successfully tested the following configuration:
- AP + STA
- AP0 + AP1

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Tested-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_util.c