diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-05-15 14:33:22 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-05-23 10:56:47 +0300 |
commit | d98fb328ad103d12c1ebaea92526e4f8670e0fec (patch) | |
tree | 7f4b7cc6d6665e9f2762a73e55995e65897af522 /drivers/net/wireless/mediatek/mt76/mt76x2.h | |
parent | 0d45d3fe42efc76b6c4f5a62f8d110c7a2e6f83f (diff) | |
download | linux-stable-d98fb328ad103d12c1ebaea92526e4f8670e0fec.tar.gz linux-stable-d98fb328ad103d12c1ebaea92526e4f8670e0fec.tar.bz2 linux-stable-d98fb328ad103d12c1ebaea92526e4f8670e0fec.zip |
mt76: fix sending encrypted broadcast packets for secondary interfaces
For encryption to work properly, the BSS index needs to be initialized
for the WCID entry used for the interface.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x2.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2.h b/drivers/net/wireless/mediatek/mt76/mt76x2.h index a5d1255e4b9c..dc12bbdbb2ee 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x2.h @@ -39,6 +39,9 @@ #define MT_CALIBRATE_INTERVAL HZ +#define MT_MAX_VIFS 8 +#define MT_VIF_WCID(_n) (254 - ((_n) & 7)) + #include "mt76.h" #include "mt76x2_regs.h" #include "mt76x2_mac.h" |