af_ieee802154: fix ioctl processing
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sun, 2 Aug 2009 10:12:01 +0000 (14:12 +0400)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 6 Aug 2009 08:49:17 +0000 (12:49 +0400)
commit45a41d147a3a31bb218201b0dd70cfe4e9ed5105
tree3a5938a4c8bb04b5bbe2a80a41356e8008a7503f
parent0bf52b981770cbf006323bab5177f2858a196766
af_ieee802154: fix ioctl processing

fix two errors in ioctl processing:
1) if the ioctl isn't supported one should return -ENOIOCTLCMD
2) don't call ndo_do_ioctl if the device doesn't provide it

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
net/ieee802154/af_ieee802154.c