summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/ioctl.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2019-02-13 16:59:38 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-02-19 18:15:10 +0300
commit65a576e27309120e0621f54d5c81eb9128bd56be (patch)
treee31a0fc09a506ee7211b81f8a2e88560d8f5824e /drivers/net/wireless/marvell/mwifiex/ioctl.h
parente97cb6ea71b03e13449726d57f2409f66e531180 (diff)
downloadlinux-65a576e27309120e0621f54d5c81eb9128bd56be.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/ioctl.h')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/ioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/ioctl.h b/drivers/net/wireless/marvell/mwifiex/ioctl.h
index 48e154e1865d..0dd592ea6e83 100644
--- a/drivers/net/wireless/marvell/mwifiex/ioctl.h
+++ b/drivers/net/wireless/marvell/mwifiex/ioctl.h
@@ -267,6 +267,7 @@ struct mwifiex_ds_encrypt_key {
struct mwifiex_power_cfg {
u32 is_power_auto;
+ u32 is_power_fixed;
u32 power_level;
};