Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235868
b: refs/heads/master
c: ec984e0
h: refs/heads/master
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Feb 9, 2011
1 parent 519785b commit 7a84bba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea66f752c003beed8839ecc07f187169309d9afd
refs/heads/master: ec984e0cabfa1726a3166dff0ef8e04aafc57a71
53 changes: 13 additions & 40 deletions trunk/drivers/staging/rtl8192e/r8190_rtl8256.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,57 +635,30 @@ MlmeDisassociateRequest(
}


static void
MgntDisconnectAP(
struct net_device* dev,
u8 asRsn
)
static void MgntDisconnectAP(struct net_device *dev, u8 asRsn)
{
struct r8192_priv *priv = ieee80211_priv(dev);
bool bFilterOutNonAssociatedBSSID = false;
u32 RegRCR, Type;

//
// Commented out by rcnjko, 2005.01.27:
// I move SecClearAllKeys() to MgntActSet_802_11_DISASSOCIATE().
//
// //2004/09/15, kcwu, the key should be cleared, or the new handshaking will not success
// SecClearAllKeys(Adapter);

// In WPA WPA2 need to Clear all key ... because new key will set after new handshaking.
#ifdef TO_DO
if( pMgntInfo->SecurityInfo.AuthMode > RT_802_11AuthModeAutoSwitch ||
(pMgntInfo->bAPSuportCCKM && pMgntInfo->bCCX8021xenable) ) // In CCKM mode will Clear key
{
SecClearAllKeys(Adapter);
RT_TRACE(COMP_SEC, DBG_LOUD,("======>CCKM clear key..."))
}
#endif
// If disconnect, clear RCR CBSSID bit
/* If disconnect, clear RCR CBSSID bit */
bFilterOutNonAssociatedBSSID = false;
{
u32 RegRCR, Type;

Type = bFilterOutNonAssociatedBSSID;
//Adapter->HalFunc.GetHwRegHandler(Adapter, HW_VAR_RCR, (pu1Byte)(&RegRCR));
RegRCR = read_nic_dword(priv, RCR);
priv->ReceiveConfig = RegRCR;

if (Type == true)
RegRCR |= (RCR_CBSSID);
else if (Type == false)
RegRCR &= (~RCR_CBSSID);
Type = bFilterOutNonAssociatedBSSID;
RegRCR = read_nic_dword(priv, RCR);
priv->ReceiveConfig = RegRCR;

write_nic_dword(priv, RCR, RegRCR);
priv->ReceiveConfig = RegRCR;
if (Type == true)
RegRCR |= (RCR_CBSSID);
else if (Type == false)
RegRCR &= (~RCR_CBSSID);

write_nic_dword(priv, RCR, RegRCR);
priv->ReceiveConfig = RegRCR;

}
// 2004.10.11, by rcnjko.
//MlmeDisassociateRequest( Adapter, pMgntInfo->Bssid, disas_lv_ss );
MlmeDisassociateRequest( dev, priv->ieee80211->current_network.bssid, asRsn );
MlmeDisassociateRequest(dev, priv->ieee80211->current_network.bssid, asRsn);

priv->ieee80211->state = IEEE80211_NOLINK;
//pMgntInfo->AsocTimestamp = 0;
}


Expand Down

0 comments on commit 7a84bba

Please sign in to comment.