Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162311
b: refs/heads/master
c: e82bf85
h: refs/heads/master
i:
  162309: 8cf847c
  162307: 63c7d33
  162303: dca10f0
v: v3
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent a19a617 commit 4c3a5be
Show file tree
Hide file tree
Showing 8 changed files with 14 additions 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: 7d5efd61999c8d0e63f995339f76bbfc653b645a
refs/heads/master: e82bf85ec92e9cb2db9b226c1a29e2219b489b94
7 changes: 0 additions & 7 deletions trunk/drivers/staging/rt2860/oid.h
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,6 @@ typedef struct _NDIS_802_11_CAPABILITY
NDIS_802_11_AUTHENTICATION_ENCRYPTION AuthenticationEncryptionSupported[1];
} NDIS_802_11_CAPABILITY, *PNDIS_802_11_CAPABILITY;

#if WIRELESS_EXT <= 11
#ifndef SIOCDEVPRIVATE
#define SIOCDEVPRIVATE 0x8BE0
#endif
#define SIOCIWFIRSTPRIV SIOCDEVPRIVATE
#endif

#ifdef RT30xx
#define RT_PRIV_IOCTL_EXT (SIOCIWFIRSTPRIV + 0x01) // Sync. with AP for wsc upnp daemon
#endif
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/staging/rt2860/rt_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ VOID RTMPSendWirelessEvent(
IN UCHAR BssIdx,
IN CHAR Rssi)
{
#if WIRELESS_EXT >= 15

union iwreq_data wrqu;
PUCHAR pBuf = NULL, pBufPtr = NULL;
Expand Down Expand Up @@ -805,9 +804,6 @@ VOID RTMPSendWirelessEvent(
}
else
DBGPRINT(RT_DEBUG_ERROR, ("%s : Can't allocate memory for wireless event.\n", __func__));
#else
DBGPRINT(RT_DEBUG_ERROR, ("%s : The Wireless Extension MUST be v15 or newer.\n", __func__));
#endif /* WIRELESS_EXT >= 15 */
}

void send_monitor_packets(
Expand Down
9 changes: 0 additions & 9 deletions trunk/drivers/staging/rt2860/rt_main_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@ static void CfgInitHook(PRTMP_ADAPTER pAd);

extern const struct iw_handler_def rt28xx_iw_handler_def;

#if WIRELESS_EXT >= 12
// This function will be called when query /proc
struct iw_statistics *rt28xx_get_wireless_stats(
IN struct net_device *net_dev);
#endif

struct net_device_stats *RT28xx_get_ether_stats(
IN struct net_device *net_dev);
Expand Down Expand Up @@ -695,16 +693,11 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p
CHAR slot_name[IFNAMSIZ];
struct net_device *device;

#if WIRELESS_EXT >= 12
if (pAd->OpMode == OPMODE_STA)
{
dev->wireless_handlers = &rt28xx_iw_handler_def;
}
#endif //WIRELESS_EXT >= 12

#if WIRELESS_EXT < 21
dev->get_wireless_stats = rt28xx_get_wireless_stats;
#endif
dev->priv_flags = INT_MAIN;
dev->netdev_ops = &rt2860_netdev_ops;
// find available device name
Expand Down Expand Up @@ -942,7 +935,6 @@ void CfgInitHook(PRTMP_ADAPTER pAd)
} /* End of CfgInitHook */


#if WIRELESS_EXT >= 12
// This function will be called when query /proc
struct iw_statistics *rt28xx_get_wireless_stats(
IN struct net_device *net_dev)
Expand Down Expand Up @@ -976,7 +968,6 @@ struct iw_statistics *rt28xx_get_wireless_stats(
DBGPRINT(RT_DEBUG_TRACE, ("<--- rt28xx_get_wireless_stats\n"));
return &pAd->iw_stats;
} /* End of rt28xx_get_wireless_stats */
#endif // WIRELESS_EXT //



Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/staging/rt2860/rt_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,14 +1230,10 @@ NDIS_STATUS RTMPReadParametersHook(
//WirelessEvent
if(RTMPGetKeyParameter("WirelessEvent", tmpbuf, 10, buffer))
{
#if WIRELESS_EXT >= 15
if(simple_strtol(tmpbuf, 0, 10) != 0)
pAd->CommonCfg.bWirelessEvent = simple_strtol(tmpbuf, 0, 10);
else
pAd->CommonCfg.bWirelessEvent = 0; // disable
#else
pAd->CommonCfg.bWirelessEvent = 0; // disable
#endif
DBGPRINT(RT_DEBUG_TRACE, ("WirelessEvent=%d\n", pAd->CommonCfg.bWirelessEvent));
}
if(RTMPGetKeyParameter("WiFiTest", tmpbuf, 10, buffer))
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/staging/rt2860/rtmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2972,9 +2972,7 @@ typedef struct _RTMP_ADAPTER

ULONG OneSecondnonBEpackets; // record non BE packets per second

#if WIRELESS_EXT >= 12
struct iw_statistics iw_stats;
#endif

struct net_device_stats stats;

Expand Down Expand Up @@ -6323,11 +6321,9 @@ void send_monitor_packets(
IN PRTMP_ADAPTER pAd,
IN RX_BLK *pRxBlk);

#if WIRELESS_EXT >= 12
// This function will be called when query /proc
struct iw_statistics *rt28xx_get_wireless_stats(
IN struct net_device *net_dev);
#endif

VOID RTMPSetDesiredRates(
IN PRTMP_ADAPTER pAdapter,
Expand Down
14 changes: 0 additions & 14 deletions trunk/drivers/staging/rt2860/sta/assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,6 @@ int wext_notify_event_assoc(
union iwreq_data wrqu;
char custom[IW_CUSTOM_MAX] = {0};

#if WIRELESS_EXT > 17
if (pAd->StaCfg.ReqVarIELen <= IW_CUSTOM_MAX)
{
wrqu.data.length = pAd->StaCfg.ReqVarIELen;
Expand All @@ -1512,19 +1511,6 @@ int wext_notify_event_assoc(
}
else
DBGPRINT(RT_DEBUG_TRACE, ("pAd->StaCfg.ReqVarIELen > MAX_CUSTOM_LEN\n"));
#else
if (((pAd->StaCfg.ReqVarIELen*2) + 17) <= IW_CUSTOM_MAX)
{
UCHAR idx;
wrqu.data.length = (pAd->StaCfg.ReqVarIELen*2) + 17;
sprintf(custom, "ASSOCINFO(ReqIEs=");
for (idx=0; idx<pAd->StaCfg.ReqVarIELen; idx++)
sprintf(custom + strlen(custom), "%02x", pAd->StaCfg.ReqVarIEs[idx]);
wireless_send_event(pAd->net_dev, IWEVCUSTOM, &wrqu, custom);
}
else
DBGPRINT(RT_DEBUG_TRACE, ("(pAd->StaCfg.ReqVarIELen*2) + 17 > MAX_CUSTOM_LEN\n"));
#endif

return 0;

Expand Down
Loading

0 comments on commit 4c3a5be

Please sign in to comment.