rndis_wlan: set ieee80211_ptr->iftype in rndis_change_virtual_intf
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
7b1fff996a
commit
161391725e
@@ -1526,7 +1526,8 @@ static int rndis_change_virtual_intf(struct wiphy *wiphy,
|
|||||||
enum nl80211_iftype type, u32 *flags,
|
enum nl80211_iftype type, u32 *flags,
|
||||||
struct vif_params *params)
|
struct vif_params *params)
|
||||||
{
|
{
|
||||||
struct usbnet *usbdev = netdev_priv(dev);
|
struct rndis_wlan_private *priv = wiphy_priv(wiphy);
|
||||||
|
struct usbnet *usbdev = priv->usbdev;
|
||||||
int mode;
|
int mode;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@@ -1540,6 +1541,8 @@ static int rndis_change_virtual_intf(struct wiphy *wiphy,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
priv->wdev.iftype = type;
|
||||||
|
|
||||||
return set_infra_mode(usbdev, mode);
|
return set_infra_mode(usbdev, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user