projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc44886
)
iwlwifi: mvm: fail temp test enabling if the ucode is not loaded
author
Luciano Coelho
<
[email protected]
>
Wed, 20 Aug 2014 07:21:07 +0000
(10:21 +0300)
committer
Emmanuel Grumbach
<
[email protected]
>
Sun, 14 Sep 2014 09:56:38 +0000
(12:56 +0300)
If the ucode is not loaded, don't allow the temperature test to be
started, but allow it to be changed or stopped if already running.
Signed-off-by: Luciano Coelho <
[email protected]
>
Reviewed-by: Johannes Berg <
[email protected]
>
Signed-off-by: Emmanuel Grumbach <
[email protected]
>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/mvm/debugfs.c
b/drivers/net/wireless/iwlwifi/mvm/debugfs.c
index d98ee109c5e93c6e6be08c51bed17548e810a013..85eb847c749d39e92b490bd392e6983be14f0f19 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/mvm/debugfs.c
+++ b/
drivers/net/wireless/iwlwifi/mvm/debugfs.c
@@
-288,6
+288,9
@@
static ssize_t iwl_dbgfs_set_nic_temperature_write(struct iwl_mvm *mvm,
{
int temperature;
+ if (!mvm->ucode_loaded && !mvm->temperature_test)
+ return -EIO;
+
if (kstrtoint(buf, 10, &temperature))
return -EINVAL;
/* not a legal temperature */