diff options
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index c28fde59c32b..d11762011dc2 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -1526,7 +1526,8 @@ static int rndis_change_virtual_intf(struct wiphy *wiphy, | |||
1526 | enum nl80211_iftype type, u32 *flags, | 1526 | enum nl80211_iftype type, u32 *flags, |
1527 | struct vif_params *params) | 1527 | struct vif_params *params) |
1528 | { | 1528 | { |
1529 | struct usbnet *usbdev = netdev_priv(dev); | 1529 | struct rndis_wlan_private *priv = wiphy_priv(wiphy); |
1530 | struct usbnet *usbdev = priv->usbdev; | ||
1530 | int mode; | 1531 | int mode; |
1531 | 1532 | ||
1532 | switch (type) { | 1533 | switch (type) { |
@@ -1540,6 +1541,8 @@ static int rndis_change_virtual_intf(struct wiphy *wiphy, | |||
1540 | return -EINVAL; | 1541 | return -EINVAL; |
1541 | } | 1542 | } |
1542 | 1543 | ||
1544 | priv->wdev.iftype = type; | ||
1545 | |||
1543 | return set_infra_mode(usbdev, mode); | 1546 | return set_infra_mode(usbdev, mode); |
1544 | } | 1547 | } |
1545 | 1548 | ||