summaryrefslogtreecommitdiffstats
path: root/net/wireless/core.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2009-09-30 14:50:17 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:45 -0400
commit4890e3beddfb4a6859c4bb782c9cd05dd94ead82 (patch)
treeda00d4f34f6c76acc46c9c44be91d17b0fbbfe02 /net/wireless/core.c
parentf41bb897f202d23a7d896c716002a3d6050b991e (diff)
downloadop-kernel-dev-4890e3beddfb4a6859c4bb782c9cd05dd94ead82.zip
op-kernel-dev-4890e3beddfb4a6859c4bb782c9cd05dd94ead82.tar.gz
wireless: implement basic ethtool support for cfg80211 devices
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r--net/wireless/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index eb0bb24..0725296 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -21,6 +21,7 @@
#include "sysfs.h"
#include "debugfs.h"
#include "wext-compat.h"
+#include "ethtool.h"
/* name for sysfs, %d is appended */
#define PHY_NAME "phy"
@@ -690,6 +691,8 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
wdev->wext.ps = false;
}
#endif
+ if (!dev->ethtool_ops)
+ dev->ethtool_ops = &cfg80211_ethtool_ops;
break;
case NETDEV_GOING_DOWN:
switch (wdev->iftype) {
OpenPOWER on IntegriCloud