wlan0 unsupported ioctl

Pavel Roskin proski
Tue Dec 23 20:45:58 PST 2003


On Tue, 23 Dec 2003, Jason Carr wrote:

> I've been using hostap, everything works fine, but I keep getting
> these messages in my logs:
>
> wlan0 unsupported ioctl(0x8947)

That's SIOCGMIIPHY from linux/sockios.h

> wlan0 unsupported ioctl(0x89f0)

SIOCDEVPRIVATE from the same file.  It was used for wireless extensions 11
and older.

> That repeats quite often, enough that my logs are full of these. Any
> reason why this would happen?

They are indeed unsupported.  Some utility (maybe mii-tool) tries to use
them.  This utility is invoked automatically, e.g. by hotplug.

I checked other drivers and they don't print anything about unsupported
ioctls.  At least hostap should use its own debugging mechanism, which
would enable logging only if specifically requested:

===========================
--- driver/modules/hostap_ioctl.c
+++ driver/modules/hostap_ioctl.c
@@ -3602,7 +3602,7 @@ int hostap_ioctl(struct net_device *dev,
 			ret = -EOPNOTSUPP;
 			break;
 		}
-		printk(KERN_DEBUG "%s unsupported ioctl(0x%04x)\n",
+		PDEBUG(DEBUG_EXTRA, "%s unsupported ioctl(0x%04x)\n",
 		       dev->name, cmd);
 		ret = -EOPNOTSUPP;
 		break;
===========================

-- 
Regards,
Pavel Roskin




More information about the Hostap mailing list