diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c b/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c index 2e90ff795c13..d919b4ebc83c 100644 --- a/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c +++ b/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * GPL LICENSE SUMMARY | 6 | * GPL LICENSE SUMMARY |
7 | * | 7 | * |
8 | * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. | 8 | * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. |
9 | * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH | ||
9 | * | 10 | * |
10 | * This program is free software; you can redistribute it and/or modify | 11 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of version 2 of the GNU General Public License as | 12 | * it under the terms of version 2 of the GNU General Public License as |
@@ -31,6 +32,7 @@ | |||
31 | * BSD LICENSE | 32 | * BSD LICENSE |
32 | * | 33 | * |
33 | * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. | 34 | * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. |
35 | * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH | ||
34 | * All rights reserved. | 36 | * All rights reserved. |
35 | * | 37 | * |
36 | * Redistribution and use in source and binary forms, with or without | 38 | * Redistribution and use in source and binary forms, with or without |
@@ -119,6 +121,10 @@ static void iwl_dbgfs_update_pm(struct iwl_mvm *mvm, | |||
119 | IWL_DEBUG_POWER(mvm, "uapsd_misbehaving_enable=%d\n", val); | 121 | IWL_DEBUG_POWER(mvm, "uapsd_misbehaving_enable=%d\n", val); |
120 | dbgfs_pm->uapsd_misbehaving = val; | 122 | dbgfs_pm->uapsd_misbehaving = val; |
121 | break; | 123 | break; |
124 | case MVM_DEBUGFS_PM_USE_PS_POLL: | ||
125 | IWL_DEBUG_POWER(mvm, "use_ps_poll=%d\n", val); | ||
126 | dbgfs_pm->use_ps_poll = val; | ||
127 | break; | ||
122 | } | 128 | } |
123 | } | 129 | } |
124 | 130 | ||
@@ -169,6 +175,10 @@ static ssize_t iwl_dbgfs_pm_params_write(struct ieee80211_vif *vif, char *buf, | |||
169 | if (sscanf(buf + 18, "%d", &val) != 1) | 175 | if (sscanf(buf + 18, "%d", &val) != 1) |
170 | return -EINVAL; | 176 | return -EINVAL; |
171 | param = MVM_DEBUGFS_PM_UAPSD_MISBEHAVING; | 177 | param = MVM_DEBUGFS_PM_UAPSD_MISBEHAVING; |
178 | } else if (!strncmp("use_ps_poll=", buf, 12)) { | ||
179 | if (sscanf(buf + 12, "%d", &val) != 1) | ||
180 | return -EINVAL; | ||
181 | param = MVM_DEBUGFS_PM_USE_PS_POLL; | ||
172 | } else { | 182 | } else { |
173 | return -EINVAL; | 183 | return -EINVAL; |
174 | } | 184 | } |