X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fwireless%2Fcore.c;h=6ddf74f0ae1e5ace4346f3c0cf6b4f1ce13fa580;hb=fae172136c0cfc80cb4b13620c861688e671650a;hp=11743d48cbc2b8f370fd4a93ff709bed9e6626c8;hpb=370bd005937c0e00f9104a602f9fe1dd6b21b54b;p=~andy%2Flinux diff --git a/net/wireless/core.c b/net/wireless/core.c index 11743d48cbc..6ddf74f0ae1 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -902,8 +902,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb, /* allow mac80211 to determine the timeout */ wdev->ps_timeout = -1; - if (!dev->ethtool_ops) - dev->ethtool_ops = &cfg80211_ethtool_ops; + netdev_set_default_ethtool_ops(dev, &cfg80211_ethtool_ops); if ((wdev->iftype == NL80211_IFTYPE_STATION || wdev->iftype == NL80211_IFTYPE_P2P_CLIENT ||