mwifiex: Fix NL80211_TX_POWER_LIMITED
authorAdrian Bunk <bunk@kernel.org>
Wed, 13 Feb 2019 13:59:38 +0000 (15:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Feb 2019 15:15:10 +0000 (17:15 +0200)
commit65a576e27309120e0621f54d5c81eb9128bd56be
treee31a0fc09a506ee7211b81f8a2e88560d8f5824e
parente97cb6ea71b03e13449726d57f2409f66e531180
mwifiex: Fix NL80211_TX_POWER_LIMITED

NL80211_TX_POWER_LIMITED was treated as NL80211_TX_POWER_AUTOMATIC,
which is the opposite of what should happen and can cause nasty
regulatory problems.

if/else converted to a switch without default to make gcc warn
on unhandled enum values.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c
drivers/net/wireless/marvell/mwifiex/ioctl.h
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c