]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix unconditional error return in .add_virtual_intf callback
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 1 Jul 2016 19:39:42 +0000 (15:39 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 5 Jul 2016 13:27:50 +0000 (16:27 +0300)
commit952b1f7bc10b96f897ecb2868690962a48613777
tree78d82f1ff32b6eaf40215a7b137810e26ac0f71c
parent077f3060d32decb96ae28d2063734b06b3e0ce37
mwifiex: fix unconditional error return in .add_virtual_intf callback

The commit 8169671917bc ("mwifiex: fix AP start problem for newly added
interface") attempted to fix an issue when a new AP interface is added.

But the patch didn't check the return value of the functions doing the
firmware calls and returned an error even if the functions didn't fail.

This prevents the network device to be registered properly, so fix it.

Fixes: 8169671917bc ("mwifiex: fix AP start problem for newly added interface")
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c