mirror of
https://github.com/drygdryg/rtl8188eus.git
synced 2025-04-29 02:37:16 +09:00
Some fixes and tweak to similarly to rtl8723bs
This commit is contained in:
parent
cb3d26279d
commit
cea7924b19
@ -981,8 +981,10 @@ void rtw_cfg80211_ibss_indicate_connect(_adapter *padapter)
|
||||
return ;
|
||||
}
|
||||
} else {
|
||||
if (scanned == NULL)
|
||||
if (scanned == NULL) {
|
||||
rtw_warn_on(1);
|
||||
return;
|
||||
}
|
||||
|
||||
if (_rtw_memcmp(&(scanned->network.Ssid), &(pnetwork->Ssid), sizeof(NDIS_802_11_SSID)) == _TRUE
|
||||
&& _rtw_memcmp(scanned->network.MacAddress, pnetwork->MacAddress, sizeof(NDIS_802_11_MAC_ADDRESS)) == _TRUE
|
||||
@ -1240,7 +1242,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
||||
if (is_broadcast_mac_addr(param->sta_addr)) {
|
||||
if (param->u.crypt.idx >= WEP_KEYS
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
&& param->u.crypt.idx > BIP_MAX_KEYID
|
||||
|| param->u.crypt.idx > BIP_MAX_KEYID
|
||||
#endif
|
||||
) {
|
||||
ret = -EINVAL;
|
||||
@ -1487,7 +1489,7 @@ static int rtw_cfg80211_set_encryption(struct net_device *dev, struct ieee_param
|
||||
if (is_broadcast_mac_addr(param->sta_addr)) {
|
||||
if (param->u.crypt.idx >= WEP_KEYS
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
&& param->u.crypt.idx > BIP_MAX_KEYID
|
||||
|| param->u.crypt.idx > BIP_MAX_KEYID
|
||||
#endif
|
||||
) {
|
||||
ret = -EINVAL;
|
||||
@ -4258,8 +4260,10 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
|
||||
|
||||
RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
|
||||
|
||||
if (skb)
|
||||
rtw_mstat_update(MSTAT_TYPE_SKB, MSTAT_ALLOC_SUCCESS, skb->truesize);
|
||||
if (!skb)
|
||||
goto fail;
|
||||
|
||||
rtw_mstat_update(MSTAT_TYPE_SKB, MSTAT_ALLOC_SUCCESS, skb->truesize);
|
||||
|
||||
if (IS_CH_WAITING(rfctl)) {
|
||||
#ifdef CONFIG_DFS_MASTER
|
||||
|
@ -3598,7 +3598,9 @@ void rtw_ndev_destructor(struct net_device *ndev)
|
||||
if (ndev->ieee80211_ptr)
|
||||
rtw_mfree((u8 *)ndev->ieee80211_ptr, sizeof(struct wireless_dev));
|
||||
#endif
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 8))
|
||||
free_netdev(ndev);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARP_KEEP_ALIVE
|
||||
|
Loading…
x
Reference in New Issue
Block a user