]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2d68d47314850a25dcd0d829b0cfcdae768d442
treee31a0fc09a506ee7211b81f8a2e88560d8f5824e
parent60201f12d119c08d0392399ecb819af4feed28e1
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