mirror of
https://github.com/aircrack-ng/rtl8188eus.git
synced 2026-05-09 03:00:30 +00:00
use void in init_mp_priv() function return allways _SUCCESS
This commit is contained in:
@@ -1092,6 +1092,9 @@ check_bss:
|
||||
struct ieee80211_channel *notify_channel;
|
||||
u32 freq;
|
||||
u16 channel = cur_network->network.Configuration.DSConfig;
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
|
||||
struct cfg80211_roam_info roam_info;
|
||||
#endif
|
||||
|
||||
freq = rtw_ch2freq(channel);
|
||||
notify_channel = ieee80211_get_channel(wiphy, freq);
|
||||
|
||||
@@ -1476,8 +1476,6 @@ int rtw_mp_mon(struct net_device *dev,
|
||||
LeaveAllPowerSaveMode(padapter);
|
||||
|
||||
#ifdef CONFIG_MP_INCLUDED
|
||||
if (init_mp_priv(padapter) == _FAIL)
|
||||
RTW_INFO("%s: initialize MP private data Fail!\n", __func__);
|
||||
padapter->mppriv.channel = 6;
|
||||
|
||||
bstart = strncmp(extra, "start", 5); /* strncmp TRUE is 0*/
|
||||
|
||||
@@ -2333,8 +2333,7 @@ u8 rtw_init_drv_sw(_adapter *padapter)
|
||||
/* _rtw_memset((u8 *)&padapter->qospriv, 0, sizeof (struct qos_priv)); */ /* move to mlme_priv */
|
||||
|
||||
#ifdef CONFIG_MP_INCLUDED
|
||||
if (init_mp_priv(padapter) == _FAIL)
|
||||
RTW_INFO("%s: initialize MP private data Fail!\n", __func__);
|
||||
init_mp_priv(padapter);
|
||||
#endif
|
||||
|
||||
rtw_hal_dm_init(padapter);
|
||||
|
||||
Reference in New Issue
Block a user