diff options
| author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-05-25 22:43:10 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-25 15:14:39 -0700 |
| commit | 8b506ef18102fd1a30719d075e2be0efa1c2a920 (patch) | |
| tree | 26b59faeb5fdc36a089e3ebae0017a692246282a | |
| parent | aaa1d6359b0732e5d31cecc39a998f54e3bc0af2 (diff) | |
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: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c index f75a82596243..2bcdbe10ae0f 100644 --- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c @@ -1391,15 +1391,6 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, int ret = 0; 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; DBG_8723A("%s(%s): old_iftype =%d, new_iftype =%d\n", |
