diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c index 69102fda9ebd..2879da028bc4 100644 --- a/net/wireless/wext-core.c +++ b/net/wireless/wext-core.c @@ -896,7 +896,7 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, int call_commit_handler(struct net_device *dev) { #ifdef CONFIG_WIRELESS_EXT - if ((netif_running(dev)) && + if ((netif_running(dev)) && dev->wireless_handlers (dev->wireless_handlers->standard[0] != NULL)) /* Call the commit handler on the driver */ return dev->wireless_handlers->standard[0](dev, NULL,