Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161966
b: refs/heads/master
c: 5212499
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent e7cf309 commit dee162e
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 134 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: 0bd2f8efe94ab4e6ef630a311dfd58812c80b653
refs/heads/master: 5212499a7a41822496c3a62abae6fe103d308f18
3 changes: 0 additions & 3 deletions trunk/drivers/staging/rtl8187se/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ EXTRA_CFLAGS += -DSW_DIG
EXTRA_CFLAGS += -DRATE_ADAPT
EXTRA_CFLAGS += -DCONFIG_RTL8180_PM

#+YJ,080626
EXTRA_CFLAGS += -DENABLE_DOT11D

#enable it for legacy power save, disable it for leisure power save
EXTRA_CFLAGS += -DENABLE_LPS

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/rtl8187se/ieee80211/dot11d.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#ifdef ENABLE_DOT11D
//-----------------------------------------------------------------------------
// File:
// Dot11d.c
Expand Down Expand Up @@ -233,4 +232,3 @@ EXPORT_SYMBOL(DOT11D_ScanComplete);
EXPORT_SYMBOL(IsLegalChannel);
EXPORT_SYMBOL(ToLegalChannel);
#endif
#endif
10 changes: 0 additions & 10 deletions trunk/drivers/staging/rtl8187se/ieee80211/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ struct ieee80211_header_data {
#define MFIE_TYPE_RATES_EX 50
#define MFIE_TYPE_GENERIC 221

#ifdef ENABLE_DOT11D
typedef enum
{
COUNTRY_CODE_FCC = 0,
Expand All @@ -709,7 +708,6 @@ typedef enum
COUNTRY_CODE_GLOBAL_DOMAIN = 9,
COUNTRY_CODE_WORLD_WIDE_13_INDEX = 10
}country_code_type_t;
#endif

struct ieee80211_info_element_hdr {
u8 id;
Expand Down Expand Up @@ -961,10 +959,8 @@ struct ieee80211_network {
#ifdef THOMAS_TURBO
u8 Turbo_Enable;//enable turbo mode, added by thomas
#endif
#ifdef ENABLE_DOT11D
u16 CountryIeLen;
u8 CountryIeBuf[MAX_IE_LEN];
#endif
};

enum ieee80211_state {
Expand Down Expand Up @@ -1105,18 +1101,12 @@ struct ieee80211_device {
*/
short sync_scan_hurryup;

#ifdef ENABLE_DOT11D
void * pDot11dInfo;
bool bGlobalDomain;

// For Liteon Ch12~13 passive scan
u8 MinPassiveChnlNum;
u8 IbssStartChnl;
#else
/* map of allowed channels. 0 is dummy */
// FIXME: remeber to default to a basic channel plan depending of the PHY type
int channel_map[MAX_CHANNEL_NUMBER+1];
#endif

int rate; /* current rate */
int basic_rate;
Expand Down
12 changes: 0 additions & 12 deletions trunk/drivers/staging/rtl8187se/ieee80211/ieee80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
#include <linux/ctype.h>

#include "ieee80211.h"
#ifdef ENABLE_DOT11D
#include "dot11d.h"
#endif
static inline void ieee80211_monitor_rx(struct ieee80211_device *ieee,
struct sk_buff *skb,
struct ieee80211_rx_stats *rx_stats)
Expand Down Expand Up @@ -1072,7 +1070,6 @@ static inline int ieee80211_SignalStrengthTranslate(
return RetSS;
}

#ifdef ENABLE_DOT11D
static inline void ieee80211_extract_country_ie(
struct ieee80211_device *ieee,
struct ieee80211_info_element *info_element,
Expand Down Expand Up @@ -1114,7 +1111,6 @@ static inline void ieee80211_extract_country_ie(
}

}
#endif

int
ieee80211_TranslateToDbm(
Expand Down Expand Up @@ -1166,10 +1162,8 @@ inline int ieee80211_network_init(
#ifdef THOMAS_TURBO
network->Turbo_Enable = 0;
#endif
#ifdef ENABLE_DOT11D
network->CountryIeLen = 0;
memset(network->CountryIeBuf, 0, MAX_IE_LEN);
#endif

if (stats->freq == IEEE80211_52GHZ_BAND) {
/* for A band (No DS info) */
Expand Down Expand Up @@ -1394,14 +1388,12 @@ inline int ieee80211_network_init(
memcpy(network->rsn_ie, info_element,
network->rsn_ie_len);
break;
#ifdef ENABLE_DOT11D
case MFIE_TYPE_COUNTRY:
IEEE80211_DEBUG_SCAN("MFIE_TYPE_COUNTRY: %d bytes\n",
info_element->len);
// printk("=====>Receive <%s> Country IE\n",network->ssid);
ieee80211_extract_country_ie(ieee, info_element, network, beacon->header.addr2);
break;
#endif
default:
IEEE80211_DEBUG_SCAN("unsupported IE %d\n",
info_element->id);
Expand Down Expand Up @@ -1552,10 +1544,8 @@ inline void update_network(struct ieee80211_network *dst,
#ifdef THOMAS_TURBO
dst->Turbo_Enable = src->Turbo_Enable;
#endif
#ifdef ENABLE_DOT11D
dst->CountryIeLen = src->CountryIeLen;
memcpy(dst->CountryIeBuf, src->CountryIeBuf, src->CountryIeLen);
#endif
}


Expand Down Expand Up @@ -1623,7 +1613,6 @@ inline void ieee80211_process_probe_response(
return;
}

#ifdef ENABLE_DOT11D
// For Asus EeePc request,
// (1) if wireless adapter receive get any 802.11d country code in AP beacon,
// wireless adapter should follow the country code.
Expand Down Expand Up @@ -1677,7 +1666,6 @@ inline void ieee80211_process_probe_response(
}
}
}
#endif
/* The network parsed correctly -- so now we scan our known networks
* to see if we can find it in our list.
*
Expand Down
Loading

0 comments on commit dee162e

Please sign in to comment.