mirror of
https://github.com/drygdryg/rtl8188eus.git
synced 2025-04-29 02:37:16 +09:00
Fix compile error
This commit is contained in:
parent
4da6cc0197
commit
b0657323e8
@ -3183,6 +3183,9 @@ int _netdev_open(struct net_device *pnetdev)
|
||||
{
|
||||
uint status;
|
||||
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
struct wireless_dev *wdev = padapter->rtw_wdev;
|
||||
#endif
|
||||
struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter);
|
||||
#ifdef CONFIG_BT_COEXIST_SOCKET_TRX
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
@ -3550,12 +3553,10 @@ static int netdev_close(struct net_device *pnetdev)
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
wdev->iftype = NL80211_IFTYPE_MONITOR;
|
||||
wdev->current_bss = NULL;
|
||||
rtw_scan_abort(padapter);
|
||||
rtw_cfg80211_wait_scan_req_empty(padapter, 200);
|
||||
adapter_wdev_data(padapter)->bandroid_scan = _FALSE;
|
||||
/* padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR; */ /* set this at the end */
|
||||
//padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR; /* set this at the end */
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
|
Loading…
x
Reference in New Issue
Block a user