Commit 8b506ef1 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Do not call netdev_open23a() from cfg80211_rtw_change_iface()

Calling open on the device when changing the interface type is wrong.
Let the stack call open at the right time.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aaa1d635
...@@ -1391,15 +1391,6 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, ...@@ -1391,15 +1391,6 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
int ret = 0; int ret = 0;
DBG_8723A("%s(%s): call netdev_open23a\n", __func__, ndev->name); DBG_8723A("%s(%s): call netdev_open23a\n", __func__, ndev->name);
if (netdev_open23a(ndev) != 0) {
ret = -EPERM;
goto exit;
}
if (_FAIL == rtw_pwr_wakeup(padapter)) {
ret = -EPERM;
goto exit;
}
old_type = rtw_wdev->iftype; old_type = rtw_wdev->iftype;
DBG_8723A("%s(%s): old_iftype =%d, new_iftype =%d\n", DBG_8723A("%s(%s): old_iftype =%d, new_iftype =%d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment