diff options
author | Bartosz Markowski <bartosz.markowski@tieto.com> | 2013-10-15 07:55:32 (GMT) |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-16 08:52:06 (GMT) |
commit | d544943afa678ffe06de295b5420f060389edfc9 (patch) | |
tree | f930b7ffca739f963bb83bf6bd97804321d07a41 /drivers/net | |
parent | 34957b25e39bbdcfd902f27ae719b8ff50c751f8 (diff) | |
download | linux-fsl-qoriq-d544943afa678ffe06de295b5420f060389edfc9.tar.xz |
ath10k: return better errno for unsupported pdev params
Return -EOPNOTSUPP if given parameter is not supported by firmware.
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 9d47526..d1e513e 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -2119,7 +2119,7 @@ int ath10k_wmi_pdev_set_param(struct ath10k *ar, u32 id, u32 value) if (id == WMI_PDEV_PARAM_UNSUPPORTED) { ath10k_warn("pdev param %d not supported by firmware\n", id); - return -EINVAL; + return -EOPNOTSUPP; } skb = ath10k_wmi_alloc_skb(sizeof(*cmd)); |