]> Pileus Git - ~andy/linux/blobdiff - net/wireless/wext-compat.c
cfg80211: pass netdev to change_virtual_intf
[~andy/linux] / net / wireless / wext-compat.c
index d030c5315672817c120e0b6035ad77715637610b..9e56f3569e3e6b59af206bb1525e58c5e4e58761 100644 (file)
@@ -103,7 +103,7 @@ int cfg80211_wext_siwmode(struct net_device *dev, struct iw_request_info *info,
 
        memset(&vifparams, 0, sizeof(vifparams));
 
-       ret = rdev->ops->change_virtual_intf(wdev->wiphy, dev->ifindex, type,
+       ret = rdev->ops->change_virtual_intf(wdev->wiphy, dev, type,
                                             NULL, &vifparams);
        WARN_ON(!ret && wdev->iftype != type);