Exemplo n.º 1
0
bool HTIOTActIsDisableMCSTwoSpatialStream(struct ieee80211_device* ieee)
{
	bool retValue = false;
#ifdef TODO
	// Apply for 819u only
//#if (HAL_CODE_BASE==RTL8192)

	//This rule only apply to Belkin(Ralink) AP
	if(IS_UNDER_11N_AES_MODE(Adapter))
	{
		if((PlatformCompareMemory(PeerMacAddr, BELKINF5D8233V1_RALINK, 3)==0) ||
				(PlatformCompareMemory(PeerMacAddr, PCI_RALINK, 3)==0) ||
				(PlatformCompareMemory(PeerMacAddr, EDIMAX_RALINK, 3)==0))
		{
			//Set True to disable this function. Disable by default, Emily, 2008.04.23
			retValue = false;
		}
	}

//#endif
#endif
#if 1
       PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
	if(ieee->is_ap_in_wep_tkip && ieee->is_ap_in_wep_tkip(ieee->dev))
	{
		if( (pHTInfo->IOTPeer != HT_IOT_PEER_ATHEROS) &&
		    (pHTInfo->IOTPeer != HT_IOT_PEER_UNKNOWN) &&
		    (pHTInfo->IOTPeer != HT_IOT_PEER_MARVELL) )
			retValue = true;
	}
#endif
	return retValue;
}
Exemplo n.º 2
0
bool HTIOTActIsDisableMCSTwoSpatialStream(struct ieee80211_device* ieee)
{
	bool retValue = false;
#ifdef TODO
	


	
	if(IS_UNDER_11N_AES_MODE(Adapter))
	{
		if((PlatformCompareMemory(PeerMacAddr, BELKINF5D8233V1_RALINK, 3)==0) ||
				(PlatformCompareMemory(PeerMacAddr, PCI_RALINK, 3)==0) ||
				(PlatformCompareMemory(PeerMacAddr, EDIMAX_RALINK, 3)==0))
		{
			
			retValue = false;
		}
	}


#endif
#if 1
       PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
	if(ieee->is_ap_in_wep_tkip && ieee->is_ap_in_wep_tkip(ieee->dev))
	{
		if( (pHTInfo->IOTPeer != HT_IOT_PEER_ATHEROS) &&
		    (pHTInfo->IOTPeer != HT_IOT_PEER_UNKNOWN) &&
		    (pHTInfo->IOTPeer != HT_IOT_PEER_MARVELL) )
			retValue = true;
	}
#endif
	return retValue;
}