diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2012-09-22 12:29:23 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2012-09-22 12:29:23 +0000 |
commit | 63c477708e5a73818d58c14bbe332d157bd2e7c2 (patch) | |
tree | 123b865452248c48b1348025057bf2c330dd7c4c /package/switch | |
parent | 7ad635211d5d53e423094461aaf3ee0ad1424a6a (diff) | |
download | master-187ad058-63c477708e5a73818d58c14bbe332d157bd2e7c2.tar.gz master-187ad058-63c477708e5a73818d58c14bbe332d157bd2e7c2.tar.bz2 master-187ad058-63c477708e5a73818d58c14bbe332d157bd2e7c2.zip |
[packages] switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33506 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch')
-rw-r--r-- | package/switch/src/switch-robo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index 5b849cb33d..f1160c8894 100644 --- a/package/switch/src/switch-robo.c +++ b/package/switch/src/switch-robo.c @@ -269,6 +269,10 @@ static int robo_probe(char *devname) printk("No such device\n"); return 1; } + if (!robo.dev->netdev_ops || !robo.dev->netdev_ops->ndo_do_ioctl) { + printk("ndo_do_ioctl not implemented in ethernet driver\n"); + return 1; + } robo.device = devname; for (i = 0; i < 5; i++) |