diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 09:44:56 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 09:44:56 -0700 |
commit | e4c5bf8e3dca827a1b3a6fac494eae8c74b7e1e7 (patch) | |
tree | ea51b391f7d74ca695dcb9f5e46eb02688a92ed9 /drivers/staging/otus/80211core/chb.c | |
parent | 81280572ca6f54009edfa4deee563e8678784218 (diff) | |
parent | a4ac0d847af9dd34d5953a5e264400326144b6b2 (diff) | |
download | op-kernel-dev-e4c5bf8e3dca827a1b3a6fac494eae8c74b7e1e7.zip op-kernel-dev-e4c5bf8e3dca827a1b3a6fac494eae8c74b7e1e7.tar.gz |
Merge 'staging-next' to Linus's tree
This merges the staging-next tree to Linus's tree and resolves
some conflicts that were present due to changes in other trees that were
affected by files here.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/otus/80211core/chb.c')
-rw-r--r-- | drivers/staging/otus/80211core/chb.c | 200 |
1 files changed, 0 insertions, 200 deletions
diff --git a/drivers/staging/otus/80211core/chb.c b/drivers/staging/otus/80211core/chb.c deleted file mode 100644 index 7fac150..0000000 --- a/drivers/staging/otus/80211core/chb.c +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright (c) 2007-2008 Atheros Communications Inc. - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ -/* */ -/* Module Name : hb.c */ -/* */ -/* Abstract */ -/* This module contains house keeping and timer functions. */ -/* */ -/* NOTES */ -/* None */ -/* */ -/************************************************************************/ -#include "cprecomp.h" - -/* Called by wrapper every 10 msec */ -void zfiHeartBeat(zdev_t* dev) -{ - zmw_get_wlan_dev(dev); - - wd->tick++; - -#if 0 - /* => every 1.28 seconds */ - if (wd->cwm.cw_enable && ((wd->tick & 0x7f) == 0x3f)) - { - zfHpCwmUpdate(dev); - } -#endif - /* => every 2.56 seconds */ - if ((wd->tick & 0xff) == 0) - { - zfAgingDefragList(dev, 1); - } - - /* Watch Dog */ - //zfWatchDog(); - - /* LED Control (per 100ms) */ - if ((wd->tick % 10) == 9) - { - zfLed100msCtrl(dev); -#ifdef ZM_ENABLE_BA_RATECTRL - if (!wd->modeMDKEnable) - { - zfiDbgReadTally(dev); - } -#endif - } - -#ifdef ZM_ENABLE_REWRITE_BEACON_START_ADDRESS - if ( wd->wlanMode == ZM_MODE_IBSS ) - { - if ( zfStaIsConnected(dev) ) - { - zfReWriteBeaconStartAddress(dev); - } - } -#endif - - if ( wd->wlanMode == ZM_MODE_IBSS ) - { - if ( zfStaIsConnected(dev) ) - { - wd->tickIbssReceiveBeacon++; // add 10ms - - if ( (wd->sta.ibssSiteSurveyStatus == 2) && - (wd->tickIbssReceiveBeacon == 300) && - (wd->sta.ibssReceiveBeaconCount < 3) ) - { - zm_debug_msg0("It is happen!!! No error message"); - zfReSetCurrentFrequency(dev); - } - } - } - - if(wd->sta.ReceivedPacketRateCounter <= 0) - { - wd->sta.ReceivedPktRatePerSecond = wd->sta.TotalNumberOfReceivePackets; - //zm_debug_msg1("Receive Packet Per Second = ", wd->sta.ReceivedPktRatePerSecond); - if (wd->sta.TotalNumberOfReceivePackets != 0) - { - wd->sta.avgSizeOfReceivePackets = wd->sta.TotalNumberOfReceiveBytes/wd->sta.TotalNumberOfReceivePackets; - } - else - { - wd->sta.avgSizeOfReceivePackets = 640; - } - wd->sta.TotalNumberOfReceivePackets = 0; - wd->sta.TotalNumberOfReceiveBytes = 0; - wd->sta.ReceivedPacketRateCounter = 100; /*for another 1s*/ - } - else - { - wd->sta.ReceivedPacketRateCounter--; - } - - /* => every 1.28 seconds */ - if((wd->tick & 0x7f) == 0x3f) - { - if( wd->sta.NonNAPcount > 0) - { - wd->sta.RTSInAGGMode = TRUE; - wd->sta.NonNAPcount = 0; - } - else - { - wd->sta.RTSInAGGMode = FALSE; - } - } - - - - /* Maintain management time tick */ - zfMmApTimeTick(dev); - zfMmStaTimeTick(dev); - - //zfPhyCrTuning(dev); - - //zfTxPowerControl(dev); - zfHpHeartBeat(dev); - -} - - -void zfDumpBssList(zdev_t* dev) -{ - struct zsBssInfo* pBssInfo; - u8_t str[33]; - u8_t i, j; - u32_t addr1, addr2; - zmw_get_wlan_dev(dev); - zmw_declare_for_critical_section(); - - zm_debug_msg0("***** Bss scan result *****"); - zmw_enter_critical_section(dev); - - pBssInfo = wd->sta.bssList.head; - - for( i=0; i<wd->sta.bssList.bssCount; i++ ) - { - if ( i ) - { - zm_debug_msg0("---------------------------"); - } - - zm_debug_msg1("BSS #", i); - for(j=0; j<pBssInfo->ssid[1]; j++) - { - str[j] = pBssInfo->ssid[2+j]; - } - str[pBssInfo->ssid[1]] = 0; - zm_debug_msg0("SSID = "); - zm_debug_msg0(str); - - addr1 = (pBssInfo->bssid[0] << 16) + (pBssInfo->bssid[1] << 8 ) - + pBssInfo->bssid[2]; - addr2 = (pBssInfo->bssid[3] << 16) + (pBssInfo->bssid[4] << 8 ) - + pBssInfo->bssid[5]; - zm_debug_msg2("Bssid = ", addr1); - zm_debug_msg2(" ", addr2); - zm_debug_msg1("frequency = ", pBssInfo->frequency); - zm_debug_msg1("security type = ", pBssInfo->securityType); - zm_debug_msg1("WME = ", pBssInfo->wmeSupport); - zm_debug_msg1("beacon interval = ", pBssInfo->beaconInterval[0] - + (pBssInfo->beaconInterval[1] << 8)); - zm_debug_msg1("capability = ", pBssInfo->capability[0] - + (pBssInfo->capability[1] << 8)); - if ( pBssInfo->supportedRates[1] > 0 ) - { - for( j=0; j<pBssInfo->supportedRates[1]; j++ ) - { - zm_debug_msg2("supported rates = ", pBssInfo->supportedRates[2+j]); - } - } - - for( j=0; j<pBssInfo->extSupportedRates[1]; j++ ) - { - zm_debug_msg2("ext supported rates = ", pBssInfo->extSupportedRates[2+j]); - } - - pBssInfo = pBssInfo->next; - } - zmw_leave_critical_section(dev); - - zm_debug_msg0("***************************"); -} - |