mt76: pratially unify add_interface
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 4 Sep 2018 14:40:56 +0000 (16:40 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 19 Sep 2018 10:29:05 +0000 (12:29 +0200)
commitcab12953ec1e7ab923213bcc07033d6c5615433c
tree337716a083f34c3155e11da1ada96a28110ec178
parent624400e4cd254777b05415d35a3c7baa7d568820
mt76: pratially unify add_interface

Create common mt76x02_vif_init function and use int on drivers
add_interface callback.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/main.c
drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h
drivers/net/wireless/mediatek/mt76/mt76x02_mac.h
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
drivers/net/wireless/mediatek/mt76/mt76x02_util.h
drivers/net/wireless/mediatek/mt76/mt76x2.h
drivers/net/wireless/mediatek/mt76/mt76x2_main.c
drivers/net/wireless/mediatek/mt76/mt76x2u_main.c