projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ad6352
)
[packages] switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver
author
Hauke Mehrtens
<hauke@openwrt.org>
Sat, 22 Sep 2012 12:29:23 +0000
(12:29 +0000)
committer
Hauke Mehrtens
<hauke@openwrt.org>
Sat, 22 Sep 2012 12:29:23 +0000
(12:29 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33506
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/switch/src/switch-robo.c
patch
|
blob
|
history
diff --git
a/package/switch/src/switch-robo.c
b/package/switch/src/switch-robo.c
index
5b849cb
..
f1160c8
100644
(file)
--- 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++)