]> Pileus Git - ~andy/linux/commitdiff
ath10k: return better errno for unsupported pdev params
authorBartosz Markowski <bartosz.markowski@tieto.com>
Tue, 15 Oct 2013 07:55:32 +0000 (09:55 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 16 Oct 2013 08:52:06 +0000 (11:52 +0300)
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>
drivers/net/wireless/ath/ath10k/wmi.c

index 9d4752655e5457190d7422f938ce6bcf95d8e2cf..d1e513ef71ae98dff26d58df86aef203058ac40c 100644 (file)
@@ -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));