Commit 51789ec3 authored by Adrian Bunk's avatar Adrian Bunk Committed by Ben Hutchings
Browse files

mwifiex: Fix NL80211_TX_POWER_LIMITED



commit 65a576e2 upstream.

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: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
[bwh: Backported to 3.16: adjust filenames]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 4a60fd94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment