|
|
|
|
@ -417,7 +417,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset, u8
|
|
|
|
|
if (ret != _SUCCESS)
|
|
|
|
|
goto exit;
|
|
|
|
|
|
|
|
|
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
|
|
|
|
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
int freq = rtw_ch2freq(ch);
|
|
|
|
|
@ -4929,7 +4929,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
|
|
|
|
|
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev, unsigned int link_id)
|
|
|
|
|
{
|
|
|
|
|
_adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
|
|
|
|
|
|
|
|
|
|
@ -9678,12 +9678,12 @@ void rtw_wdev_unregister(struct wireless_dev *wdev)
|
|
|
|
|
|
|
|
|
|
rtw_cfg80211_indicate_scan_done(adapter, _TRUE);
|
|
|
|
|
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
|
if (wdev->current_bss) {
|
|
|
|
|
RTW_INFO(FUNC_ADPT_FMT" clear current_bss by cfg80211_disconnected\n", FUNC_ADPT_ARG(adapter));
|
|
|
|
|
rtw_cfg80211_indicate_disconnect(adapter, 0, 1);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
// #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
|
// if (wdev->current_bss) {
|
|
|
|
|
// RTW_INFO(FUNC_ADPT_FMT" clear current_bss by cfg80211_disconnected\n", FUNC_ADPT_ARG(adapter));
|
|
|
|
|
// rtw_cfg80211_indicate_disconnect(adapter, 0, 1);
|
|
|
|
|
// }
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
if (pwdev_priv->pmon_ndev) {
|
|
|
|
|
RTW_INFO("%s, unregister monitor interface\n", __func__);
|
|
|
|
|
|