mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Remove dead code for other PLATFORM_XX variables
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a3ca3380b5
commit
bb27b28f6e
18 changed files with 4 additions and 652 deletions
|
@ -2470,22 +2470,6 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
goto exit;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PLATFORM_MSTAR_TITANIA12
|
||||
printk("MStar Android!\n");
|
||||
if ((wdev_to_priv(padapter->rtw_wdev))->bandroid_scan == false)
|
||||
{
|
||||
#ifdef CONFIG_P2P
|
||||
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
|
||||
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
|
||||
#endif //CONFIG_P2P
|
||||
{
|
||||
ret = -EBUSY;
|
||||
printk("Android hasn't attached yet!\n");
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_FAIL == rtw_pwr_wakeup(padapter)) {
|
||||
ret= -EPERM;
|
||||
goto exit;
|
||||
|
@ -2974,18 +2958,14 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f
|
|||
#else //COMPAT_KERNEL_RELEASE
|
||||
{
|
||||
//to avoid WARN_ON(wdev->iftype != NL80211_IFTYPE_STATION) when calling cfg80211_send_rx_assoc()
|
||||
#ifndef CONFIG_PLATFORM_MSTAR_TITANIA12
|
||||
pwdev->iftype = NL80211_IFTYPE_STATION;
|
||||
#endif //CONFIG_PLATFORM_MSTAR_TITANIA12
|
||||
DBG_88E("iftype=%d before call cfg80211_send_rx_assoc()\n", pwdev->iftype);
|
||||
rtw_cfg80211_send_rx_assoc(ndev, NULL, pmgmt_frame, frame_len);
|
||||
DBG_88E("iftype=%d after call cfg80211_send_rx_assoc()\n", pwdev->iftype);
|
||||
pwdev->iftype = NL80211_IFTYPE_AP;
|
||||
//cfg80211_rx_action(padapter->pnetdev, freq, pmgmt_frame, frame_len, GFP_ATOMIC);
|
||||
}
|
||||
#endif //COMPAT_KERNEL_RELEASE
|
||||
#endif /* defined(RTW_USE_CFG80211_STA_EVENT) */
|
||||
|
||||
}
|
||||
|
||||
void rtw_cfg80211_indicate_sta_disassoc(_adapter *padapter, unsigned char *da, unsigned short reason)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue