mt76x0: fix remove_interface
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 3 Sep 2018 10:26:21 +0000 (12:26 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 17 Sep 2018 14:10:25 +0000 (17:10 +0300)
commit3341ba9f0f2637a51738ef5de5114e13a1cd3eca
tree0ca3ebd7517391bc5065ba719ce5fe4259b8cf83
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
mt76x0: fix remove_interface

We wrongly use wcid_mask instead of vif_mask. This creates problems
when the interface is removed more than 8 times, for example with iw:

iw dev <devname> interface add <name> type <type>
iw dev <name> del

This caused 'ifconfig up' to fail with error:

SIOCSIFFLAGS: No space left on device

Fixes: 95e444098a7b ("mt76x0: main file")
Reported-and-tested-by: Sid Hayn <sidhayn@gmail.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x0/main.c