mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 20:43:40 +00:00
rtl8188eu: Remove CONFIG_LAYER2_ROAMING
This symbol is always defined. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
4808b0c71e
commit
72bd29ec15
6 changed files with 4 additions and 59 deletions
|
@ -1159,7 +1159,6 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG_871X("try_to_join, but select scanning queue fail, to_roaming:%d\n", rtw_to_roaming(adapter));
|
DBG_871X("try_to_join, but select scanning queue fail, to_roaming:%d\n", rtw_to_roaming(adapter));
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
if (rtw_to_roaming(adapter) != 0) {
|
if (rtw_to_roaming(adapter) != 0) {
|
||||||
if( --pmlmepriv->to_roaming == 0
|
if( --pmlmepriv->to_roaming == 0
|
||||||
|| _SUCCESS != rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)
|
|| _SUCCESS != rtw_sitesurvey_cmd(adapter, &pmlmepriv->assoc_ssid, 1, NULL, 0)
|
||||||
|
@ -1178,10 +1177,7 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
|
||||||
} else {
|
} else {
|
||||||
pmlmepriv->to_join = true;
|
pmlmepriv->to_join = true;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
rtw_indicate_disconnect(adapter);
|
rtw_indicate_disconnect(adapter);
|
||||||
}
|
}
|
||||||
_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
|
_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
|
||||||
|
@ -2063,7 +2059,6 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf)
|
||||||
|
|
||||||
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) )
|
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) )
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
if(adapter->registrypriv.wifi_spec==1)
|
if(adapter->registrypriv.wifi_spec==1)
|
||||||
rtw_set_roaming(adapter, 0); /* don't roam */
|
rtw_set_roaming(adapter, 0); /* don't roam */
|
||||||
else if (rtw_to_roaming(adapter) > 0)
|
else if (rtw_to_roaming(adapter) > 0)
|
||||||
|
@ -2075,7 +2070,6 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf)
|
||||||
#endif /* CONFIG_INTEL_WIDI */
|
#endif /* CONFIG_INTEL_WIDI */
|
||||||
if(*((unsigned short *)(pstadel->rsvd)) != WLAN_REASON_EXPIRATION_CHK)
|
if(*((unsigned short *)(pstadel->rsvd)) != WLAN_REASON_EXPIRATION_CHK)
|
||||||
rtw_set_roaming(adapter, 0); /* don't roam */
|
rtw_set_roaming(adapter, 0); /* don't roam */
|
||||||
#endif
|
|
||||||
|
|
||||||
rtw_free_uc_swdec_pending_queue(adapter);
|
rtw_free_uc_swdec_pending_queue(adapter);
|
||||||
|
|
||||||
|
@ -2090,14 +2084,7 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf)
|
||||||
}
|
}
|
||||||
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
|
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
_rtw_roaming(adapter, tgt_network);
|
_rtw_roaming(adapter, tgt_network);
|
||||||
#else
|
|
||||||
#ifdef CONFIG_INTEL_WIDI
|
|
||||||
process_intel_widi_disconnect(adapter, 1);
|
|
||||||
#endif /* CONFIG_INTEL_WIDI */
|
|
||||||
#endif /* CONFIG_LAYER2_ROAMING */
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( check_fwstate(pmlmepriv,WIFI_ADHOC_MASTER_STATE) ||
|
if ( check_fwstate(pmlmepriv,WIFI_ADHOC_MASTER_STATE) ||
|
||||||
|
@ -2170,9 +2157,7 @@ void _rtw_join_timeout_handler (struct adapter *adapter)
|
||||||
{
|
{
|
||||||
_irqL irqL;
|
_irqL irqL;
|
||||||
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
|
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
int do_join_r;
|
int do_join_r;
|
||||||
#endif /* CONFIG_LAYER2_ROAMING */
|
|
||||||
|
|
||||||
;
|
;
|
||||||
DBG_871X("%s, fw_state=%x\n", __FUNCTION__, get_fwstate(pmlmepriv));
|
DBG_871X("%s, fw_state=%x\n", __FUNCTION__, get_fwstate(pmlmepriv));
|
||||||
|
@ -2183,7 +2168,6 @@ void _rtw_join_timeout_handler (struct adapter *adapter)
|
||||||
|
|
||||||
_enter_critical_bh(&pmlmepriv->lock, &irqL);
|
_enter_critical_bh(&pmlmepriv->lock, &irqL);
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
if (rtw_to_roaming(adapter) > 0) { /* join timeout caused by roaming */
|
if (rtw_to_roaming(adapter) > 0) { /* join timeout caused by roaming */
|
||||||
while(1) {
|
while(1) {
|
||||||
pmlmepriv->to_roaming--;
|
pmlmepriv->to_roaming--;
|
||||||
|
@ -2208,10 +2192,7 @@ void _rtw_join_timeout_handler (struct adapter *adapter)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
} else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
rtw_indicate_disconnect(adapter);
|
rtw_indicate_disconnect(adapter);
|
||||||
free_scanqueue(pmlmepriv);/* */
|
free_scanqueue(pmlmepriv);/* */
|
||||||
|
|
||||||
|
@ -2415,14 +2396,12 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
|
||||||
if(rtw_is_desired_network(adapter, competitor) == false)
|
if(rtw_is_desired_network(adapter, competitor) == false)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
if(rtw_to_roaming(adapter) > 0) {
|
if(rtw_to_roaming(adapter) > 0) {
|
||||||
if( rtw_get_passing_time_ms((u32)competitor->last_scanned) >= RTW_SCAN_RESULT_EXPIRE
|
if( rtw_get_passing_time_ms((u32)competitor->last_scanned) >= RTW_SCAN_RESULT_EXPIRE
|
||||||
|| is_same_ess(&competitor->network, &pmlmepriv->cur_network.network) == false
|
|| is_same_ess(&competitor->network, &pmlmepriv->cur_network.network) == false
|
||||||
)
|
)
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if(*candidate == NULL ||(*candidate)->network.Rssi<competitor->network.Rssi )
|
if(*candidate == NULL ||(*candidate)->network.Rssi<competitor->network.Rssi )
|
||||||
{
|
{
|
||||||
|
@ -2431,7 +2410,6 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
|
||||||
}
|
}
|
||||||
|
|
||||||
if(updated){
|
if(updated){
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
DBG_871X("[by_bssid:%u][assoc_ssid:%s]"
|
DBG_871X("[by_bssid:%u][assoc_ssid:%s]"
|
||||||
"[to_roaming:%u] "
|
"[to_roaming:%u] "
|
||||||
"new candidate: %s("MAC_FMT") rssi:%d\n",
|
"new candidate: %s("MAC_FMT") rssi:%d\n",
|
||||||
|
@ -2442,16 +2420,6 @@ static int rtw_check_join_candidate(struct mlme_priv *pmlmepriv
|
||||||
MAC_ARG((*candidate)->network.MacAddress),
|
MAC_ARG((*candidate)->network.MacAddress),
|
||||||
(int)(*candidate)->network.Rssi
|
(int)(*candidate)->network.Rssi
|
||||||
);
|
);
|
||||||
#else
|
|
||||||
DBG_871X("[by_bssid:%u][assoc_ssid:%s]"
|
|
||||||
"new candidate: %s("MAC_FMT") rssi:%d\n",
|
|
||||||
pmlmepriv->assoc_by_bssid,
|
|
||||||
pmlmepriv->assoc_ssid.Ssid,
|
|
||||||
(*candidate)->network.Ssid.Ssid,
|
|
||||||
MAC_ARG((*candidate)->network.MacAddress),
|
|
||||||
(int)(*candidate)->network.Rssi
|
|
||||||
);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
@ -3243,7 +3211,6 @@ void rtw_issue_addbareq_cmd(struct adapter *padapter, struct xmit_frame *pxmitfr
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
inline void rtw_set_roaming(struct adapter *adapter, u8 to_roaming)
|
inline void rtw_set_roaming(struct adapter *adapter, u8 to_roaming)
|
||||||
{
|
{
|
||||||
if (to_roaming == 0)
|
if (to_roaming == 0)
|
||||||
|
@ -3308,7 +3275,6 @@ void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
sint rtw_linked_check(struct adapter *padapter)
|
sint rtw_linked_check(struct adapter *padapter)
|
||||||
{
|
{
|
||||||
|
|
|
@ -69,7 +69,6 @@
|
||||||
#define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
|
#define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
|
||||||
#define CONFIG_GLOBAL_UI_PID
|
#define CONFIG_GLOBAL_UI_PID
|
||||||
|
|
||||||
#define CONFIG_LAYER2_ROAMING
|
|
||||||
#define CONFIG_LONG_DELAY_ISSUE
|
#define CONFIG_LONG_DELAY_ISSUE
|
||||||
#define CONFIG_NEW_SIGNAL_STAT_PROCESS
|
#define CONFIG_NEW_SIGNAL_STAT_PROCESS
|
||||||
#define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
|
#define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */
|
||||||
|
|
|
@ -175,9 +175,7 @@ struct registry_priv
|
||||||
char adaptor_info_caching_file_path[PATH_LENGTH_MAX];
|
char adaptor_info_caching_file_path[PATH_LENGTH_MAX];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
u8 max_roaming_times; // the max number driver will try to roaming
|
u8 max_roaming_times; // the max number driver will try to roaming
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_IOL
|
#ifdef CONFIG_IOL
|
||||||
u8 fw_iol; //enable iol without other concern
|
u8 fw_iol; //enable iol without other concern
|
||||||
|
|
|
@ -387,9 +387,7 @@ struct mlme_priv {
|
||||||
sint fw_state; //shall we protect this variable? maybe not necessarily...
|
sint fw_state; //shall we protect this variable? maybe not necessarily...
|
||||||
u8 bScanInProcess;
|
u8 bScanInProcess;
|
||||||
u8 to_join; //flag
|
u8 to_join; //flag
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
u8 to_roaming; // roaming trying times
|
u8 to_roaming; // roaming trying times
|
||||||
#endif
|
|
||||||
|
|
||||||
u8 *nic_hdl;
|
u8 *nic_hdl;
|
||||||
|
|
||||||
|
@ -775,17 +773,10 @@ void rtw_issue_addbareq_cmd(struct adapter *padapter, struct xmit_frame *pxmitfr
|
||||||
int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
|
int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
|
||||||
int is_same_network(WLAN_BSSID_EX *src, WLAN_BSSID_EX *dst, u8 feature);
|
int is_same_network(WLAN_BSSID_EX *src, WLAN_BSSID_EX *dst, u8 feature);
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
void _rtw_roaming(struct adapter *adapter, struct wlan_network *tgt_network);
|
void _rtw_roaming(struct adapter *adapter, struct wlan_network *tgt_network);
|
||||||
void rtw_roaming(struct adapter *adapter, struct wlan_network *tgt_network);
|
void rtw_roaming(struct adapter *adapter, struct wlan_network *tgt_network);
|
||||||
void rtw_set_roaming(struct adapter *adapter, u8 to_roaming);
|
void rtw_set_roaming(struct adapter *adapter, u8 to_roaming);
|
||||||
u8 rtw_to_roaming(struct adapter *adapter);
|
u8 rtw_to_roaming(struct adapter *adapter);
|
||||||
#else
|
|
||||||
#define _rtw_roaming(adapter, tgt_network) do {} while(0)
|
|
||||||
#define rtw_roaming(adapter, tgt_network) do {} while(0)
|
|
||||||
#define rtw_set_roaming(adapter, to_roaming) do {} while(0)
|
|
||||||
#define rtw_to_roaming(adapter) 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void rtw_sta_media_status_rpt(struct adapter *adapter,struct sta_info *psta, u32 mstatus);
|
void rtw_sta_media_status_rpt(struct adapter *adapter,struct sta_info *psta, u32 mstatus);
|
||||||
|
|
||||||
|
@ -794,4 +785,5 @@ void rtw_proxim_enable(struct adapter *padapter);
|
||||||
void rtw_proxim_disable(struct adapter *padapter);
|
void rtw_proxim_disable(struct adapter *padapter);
|
||||||
void rtw_proxim_send_packet(struct adapter *padapter,u8 *pbuf,u16 len,u8 hw_rate);
|
void rtw_proxim_send_packet(struct adapter *padapter,u8 *pbuf,u16 len,u8 hw_rate);
|
||||||
#endif //CONFIG_INTEL_PROXIM
|
#endif //CONFIG_INTEL_PROXIM
|
||||||
|
|
||||||
#endif //__RTL871X_MLME_H_
|
#endif //__RTL871X_MLME_H_
|
||||||
|
|
|
@ -697,7 +697,6 @@ check_bss:
|
||||||
if (!rtw_cfg80211_check_bss(padapter))
|
if (!rtw_cfg80211_check_bss(padapter))
|
||||||
DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" BSS not found !!\n", FUNC_ADPT_ARG(padapter));
|
DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" BSS not found !!\n", FUNC_ADPT_ARG(padapter));
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
if (rtw_to_roaming(padapter) > 0) {
|
if (rtw_to_roaming(padapter) > 0) {
|
||||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) || defined(COMPAT_KERNEL_RELEASE)
|
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) || defined(COMPAT_KERNEL_RELEASE)
|
||||||
struct wiphy *wiphy = pwdev->wiphy;
|
struct wiphy *wiphy = pwdev->wiphy;
|
||||||
|
@ -724,10 +723,7 @@ check_bss:
|
||||||
, pmlmepriv->assoc_rsp+sizeof(struct rtw_ieee80211_hdr_3addr)+6
|
, pmlmepriv->assoc_rsp+sizeof(struct rtw_ieee80211_hdr_3addr)+6
|
||||||
, pmlmepriv->assoc_rsp_len-sizeof(struct rtw_ieee80211_hdr_3addr)-6
|
, pmlmepriv->assoc_rsp_len-sizeof(struct rtw_ieee80211_hdr_3addr)-6
|
||||||
, GFP_ATOMIC);
|
, GFP_ATOMIC);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
cfg80211_connect_result(padapter->pnetdev, cur_network->network.MacAddress
|
cfg80211_connect_result(padapter->pnetdev, cur_network->network.MacAddress
|
||||||
, pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2
|
, pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2
|
||||||
, pmlmepriv->assoc_req_len-sizeof(struct rtw_ieee80211_hdr_3addr)-2
|
, pmlmepriv->assoc_req_len-sizeof(struct rtw_ieee80211_hdr_3addr)-2
|
||||||
|
|
|
@ -234,11 +234,9 @@ module_param(rtw_adaptor_info_caching_file_path, charp, 0644);
|
||||||
MODULE_PARM_DESC(rtw_adaptor_info_caching_file_path, "The path of adapter info cache file");
|
MODULE_PARM_DESC(rtw_adaptor_info_caching_file_path, "The path of adapter info cache file");
|
||||||
#endif /* CONFIG_ADAPTOR_INFO_CACHING_FILE */
|
#endif /* CONFIG_ADAPTOR_INFO_CACHING_FILE */
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
static uint rtw_max_roaming_times=2;
|
static uint rtw_max_roaming_times=2;
|
||||||
module_param(rtw_max_roaming_times, uint, 0644);
|
module_param(rtw_max_roaming_times, uint, 0644);
|
||||||
MODULE_PARM_DESC(rtw_max_roaming_times,"The max roaming times to try");
|
MODULE_PARM_DESC(rtw_max_roaming_times,"The max roaming times to try");
|
||||||
#endif /* CONFIG_LAYER2_ROAMING */
|
|
||||||
|
|
||||||
#ifdef CONFIG_IOL
|
#ifdef CONFIG_IOL
|
||||||
static int rtw_fw_iol=1;/* 0:Disable, 1:enable, 2:by usb speed */
|
static int rtw_fw_iol=1;/* 0:Disable, 1:enable, 2:by usb speed */
|
||||||
|
@ -300,8 +298,6 @@ static uint loadparam( struct adapter *padapter, _nic_hdl pnetdev)
|
||||||
uint status = _SUCCESS;
|
uint status = _SUCCESS;
|
||||||
struct registry_priv *registry_par = &padapter->registrypriv;
|
struct registry_priv *registry_par = &padapter->registrypriv;
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
GlobalDebugLevel = rtw_debug;
|
GlobalDebugLevel = rtw_debug;
|
||||||
registry_par->chip_version = (u8)rtw_chip_version;
|
registry_par->chip_version = (u8)rtw_chip_version;
|
||||||
registry_par->rfintfs = (u8)rtw_rfintfs;
|
registry_par->rfintfs = (u8)rtw_rfintfs;
|
||||||
|
@ -389,12 +385,10 @@ static uint loadparam( struct adapter *padapter, _nic_hdl pnetdev)
|
||||||
registry_par->adaptor_info_caching_file_path[PATH_LENGTH_MAX-1]=0;
|
registry_par->adaptor_info_caching_file_path[PATH_LENGTH_MAX-1]=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_LAYER2_ROAMING
|
|
||||||
registry_par->max_roaming_times = (u8)rtw_max_roaming_times;
|
registry_par->max_roaming_times = (u8)rtw_max_roaming_times;
|
||||||
#ifdef CONFIG_INTEL_WIDI
|
#ifdef CONFIG_INTEL_WIDI
|
||||||
registry_par->max_roaming_times = (u8)rtw_max_roaming_times + 2;
|
registry_par->max_roaming_times = (u8)rtw_max_roaming_times + 2;
|
||||||
#endif /* CONFIG_INTEL_WIDI */
|
#endif /* CONFIG_INTEL_WIDI */
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_IOL
|
#ifdef CONFIG_IOL
|
||||||
registry_par->fw_iol = rtw_fw_iol;
|
registry_par->fw_iol = rtw_fw_iol;
|
||||||
|
|
Loading…
Reference in a new issue