Commit 01ced242 authored by Florian Schilhabel's avatar Florian Schilhabel Committed by Greg Kroah-Hartman

staging: rtl8192su: clean dot11d.[c|h]

Signed-off-by: default avatarFlorian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 56c93a05
//----------------------------------------------------------------------------- /******************************************************************************
// File: * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
// Dot11d.c *
// * This program is distributed in the hope that it will be useful, but WITHOUT
// Description: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// Implement 802.11d. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// * more details.
//----------------------------------------------------------------------------- *
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
* The full GNU General Public License is included in this distribution in the
* file called LICENSE.
*
* Contact Information:
* wlanfae <wlanfae@realtek.com>
******************************************************************************/
#include "dot11d.h" #include "dot11d.h"
...@@ -50,7 +60,6 @@ Dot11d_Reset(struct ieee80211_device *ieee) ...@@ -50,7 +60,6 @@ Dot11d_Reset(struct ieee80211_device *ieee)
pDot11dInfo->CountryIeLen = 0; pDot11dInfo->CountryIeLen = 0;
RESET_CIE_WATCHDOG(ieee); RESET_CIE_WATCHDOG(ieee);
//printk("Dot11d_Reset()\n");
} }
// //
...@@ -105,7 +114,6 @@ Dot11d_UpdateCountryIe( ...@@ -105,7 +114,6 @@ Dot11d_UpdateCountryIe(
pTriple = (PCHNL_TXPOWER_TRIPLE)((u8*)pTriple + 3); pTriple = (PCHNL_TXPOWER_TRIPLE)((u8*)pTriple + 3);
} }
#if 1 #if 1
//printk("Dot11d_UpdateCountryIe(): Channel List:\n");
printk("Channel List:"); printk("Channel List:");
for(i=1; i<= MAX_CHANNEL_NUMBER; i++) for(i=1; i<= MAX_CHANNEL_NUMBER; i++)
if(pDot11dInfo->channel_map[i] > 0) if(pDot11dInfo->channel_map[i] > 0)
......
/******************************************************************************
* Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*
* The full GNU General Public License is included in this distribution in the
* file called LICENSE.
*
* Contact Information:
* wlanfae <wlanfae@realtek.com>
******************************************************************************/
#ifndef __INC_DOT11D_H #ifndef __INC_DOT11D_H
#define __INC_DOT11D_H #define __INC_DOT11D_H
#include "ieee80211.h" #include "ieee80211.h"
//#define DOT11D_MAX_CHNL_NUM 83
typedef struct _CHNL_TXPOWER_TRIPLE { typedef struct _CHNL_TXPOWER_TRIPLE {
u8 FirstChnl; u8 FirstChnl;
u8 NumChnls; u8 NumChnls;
...@@ -18,7 +34,6 @@ typedef enum _DOT11D_STATE { ...@@ -18,7 +34,6 @@ typedef enum _DOT11D_STATE {
}DOT11D_STATE; }DOT11D_STATE;
typedef struct _RT_DOT11D_INFO { typedef struct _RT_DOT11D_INFO {
//DECLARE_RT_OBJECT(RT_DOT11D_INFO);
bool bEnabled; // dot11MultiDomainCapabilityEnabled bool bEnabled; // dot11MultiDomainCapabilityEnabled
...@@ -28,8 +43,6 @@ typedef struct _RT_DOT11D_INFO { ...@@ -28,8 +43,6 @@ typedef struct _RT_DOT11D_INFO {
u8 CountryIeWatchdog; u8 CountryIeWatchdog;
u8 channel_map[MAX_CHANNEL_NUMBER+1]; //!!!Value 0: Invalid, 1: Valid (active scan), 2: Valid (passive scan) u8 channel_map[MAX_CHANNEL_NUMBER+1]; //!!!Value 0: Invalid, 1: Valid (active scan), 2: Valid (passive scan)
//u8 ChnlListLen; // #Bytes valid in ChnlList[].
//u8 ChnlList[DOT11D_MAX_CHNL_NUM];
u8 MaxTxPwrDbmList[MAX_CHANNEL_NUMBER+1]; u8 MaxTxPwrDbmList[MAX_CHANNEL_NUMBER+1];
DOT11D_STATE State; DOT11D_STATE State;
...@@ -95,4 +108,4 @@ int ToLegalChannel( ...@@ -95,4 +108,4 @@ int ToLegalChannel(
struct ieee80211_device * dev, struct ieee80211_device * dev,
u8 channel u8 channel
); );
#endif // #ifndef __INC_DOT11D_H #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment