diff options
| -rw-r--r-- | core/hdd/src/wlan_hdd_power.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 2df1d3d10d32..a47a40df1cf6 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -2476,6 +2476,12 @@ int hdd_set_qpower_config(hdd_context_t *hddctx, hdd_adapter_t *adapter, hdd_err("qpower is disabled in configuration"); return -EINVAL; } + if (adapter->device_mode != QDF_STA_MODE && + adapter->device_mode != QDF_P2P_CLIENT_MODE) { + hdd_info(FL("QPOWER only allowed in STA/P2P-Client modes:%d "), + adapter->device_mode); + return -EINVAL; + } if (qpower > PS_DUTY_CYCLING_QPOWER || qpower < PS_LEGACY_NODEEPSLEEP) { |
