mt76x0: init: use mt76x02_mac_wcid_setup for wcid configuration
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Mon, 29 Oct 2018 00:37:00 +0000 (01:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:42 +0000 (12:21 +0100)
commit24702cdb5f49c4e09dd89cfc248ae4e43275b2bd
treef855ff2d2c881d238f94a985ef578aff1455a16e
parent544f9a532f0ac3236dec903e1d0c3c5cc8bed919
mt76x0: init: use mt76x02_mac_wcid_setup for wcid configuration

Use mt76x02_mac_wcid_setup utility routine for wcid init configuration
and remove duplicated code. This patch fixes a mt76x0 AP issue since
hw key table selection was set to pairwise by default

Fixes: dbad2adcb2c7 ("mt76x0: pci: enable AP support")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/init.c