The wrapper rdev_set_coalesce() checks whether the driver provides the set_coalesce callback and returns -ENOTSUPP if not. However, this check is already performed in nl80211_set_coalesce() resulting in -EOPNOTSUPP. This patch removes check from rdev wrapper function. Signed-off-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx> --- net/wireless/rdev-ops.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h index 85ff30b..903b58a 100644 --- a/net/wireless/rdev-ops.h +++ b/net/wireless/rdev-ops.h @@ -1063,11 +1063,10 @@ static inline int rdev_set_coalesce(struct cfg80211_registered_device *rdev, struct cfg80211_coalesce *coalesce) { - int ret = -ENOTSUPP; + int ret; trace_rdev_set_coalesce(&rdev->wiphy, coalesce); - if (rdev->ops->set_coalesce) - ret = rdev->ops->set_coalesce(&rdev->wiphy, coalesce); + ret = rdev->ops->set_coalesce(&rdev->wiphy, coalesce); trace_rdev_return_int(&rdev->wiphy, ret); return ret; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html