mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
Staging: rt2860: remove dependency on WIRELESS_EXT version
As the driver is in mainline now we can remove such dependencies. WIRELESS_EXT is 22 now. Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
7d5efd6199
commit
e82bf85ec9
7 changed files with 13 additions and 133 deletions
|
@ -626,13 +626,6 @@ typedef struct _NDIS_802_11_CAPABILITY
|
||||||
NDIS_802_11_AUTHENTICATION_ENCRYPTION AuthenticationEncryptionSupported[1];
|
NDIS_802_11_AUTHENTICATION_ENCRYPTION AuthenticationEncryptionSupported[1];
|
||||||
} NDIS_802_11_CAPABILITY, *PNDIS_802_11_CAPABILITY;
|
} NDIS_802_11_CAPABILITY, *PNDIS_802_11_CAPABILITY;
|
||||||
|
|
||||||
#if WIRELESS_EXT <= 11
|
|
||||||
#ifndef SIOCDEVPRIVATE
|
|
||||||
#define SIOCDEVPRIVATE 0x8BE0
|
|
||||||
#endif
|
|
||||||
#define SIOCIWFIRSTPRIV SIOCDEVPRIVATE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RT30xx
|
#ifdef RT30xx
|
||||||
#define RT_PRIV_IOCTL_EXT (SIOCIWFIRSTPRIV + 0x01) // Sync. with AP for wsc upnp daemon
|
#define RT_PRIV_IOCTL_EXT (SIOCIWFIRSTPRIV + 0x01) // Sync. with AP for wsc upnp daemon
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -728,7 +728,6 @@ VOID RTMPSendWirelessEvent(
|
||||||
IN UCHAR BssIdx,
|
IN UCHAR BssIdx,
|
||||||
IN CHAR Rssi)
|
IN CHAR Rssi)
|
||||||
{
|
{
|
||||||
#if WIRELESS_EXT >= 15
|
|
||||||
|
|
||||||
union iwreq_data wrqu;
|
union iwreq_data wrqu;
|
||||||
PUCHAR pBuf = NULL, pBufPtr = NULL;
|
PUCHAR pBuf = NULL, pBufPtr = NULL;
|
||||||
|
@ -805,9 +804,6 @@ VOID RTMPSendWirelessEvent(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
DBGPRINT(RT_DEBUG_ERROR, ("%s : Can't allocate memory for wireless event.\n", __func__));
|
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(
|
void send_monitor_packets(
|
||||||
|
|
|
@ -74,11 +74,9 @@ static void CfgInitHook(PRTMP_ADAPTER pAd);
|
||||||
|
|
||||||
extern const struct iw_handler_def rt28xx_iw_handler_def;
|
extern const struct iw_handler_def rt28xx_iw_handler_def;
|
||||||
|
|
||||||
#if WIRELESS_EXT >= 12
|
|
||||||
// This function will be called when query /proc
|
// This function will be called when query /proc
|
||||||
struct iw_statistics *rt28xx_get_wireless_stats(
|
struct iw_statistics *rt28xx_get_wireless_stats(
|
||||||
IN struct net_device *net_dev);
|
IN struct net_device *net_dev);
|
||||||
#endif
|
|
||||||
|
|
||||||
struct net_device_stats *RT28xx_get_ether_stats(
|
struct net_device_stats *RT28xx_get_ether_stats(
|
||||||
IN struct net_device *net_dev);
|
IN struct net_device *net_dev);
|
||||||
|
@ -695,16 +693,11 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p
|
||||||
CHAR slot_name[IFNAMSIZ];
|
CHAR slot_name[IFNAMSIZ];
|
||||||
struct net_device *device;
|
struct net_device *device;
|
||||||
|
|
||||||
#if WIRELESS_EXT >= 12
|
|
||||||
if (pAd->OpMode == OPMODE_STA)
|
if (pAd->OpMode == OPMODE_STA)
|
||||||
{
|
{
|
||||||
dev->wireless_handlers = &rt28xx_iw_handler_def;
|
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->priv_flags = INT_MAIN;
|
||||||
dev->netdev_ops = &rt2860_netdev_ops;
|
dev->netdev_ops = &rt2860_netdev_ops;
|
||||||
// find available device name
|
// find available device name
|
||||||
|
@ -942,7 +935,6 @@ void CfgInitHook(PRTMP_ADAPTER pAd)
|
||||||
} /* End of CfgInitHook */
|
} /* End of CfgInitHook */
|
||||||
|
|
||||||
|
|
||||||
#if WIRELESS_EXT >= 12
|
|
||||||
// This function will be called when query /proc
|
// This function will be called when query /proc
|
||||||
struct iw_statistics *rt28xx_get_wireless_stats(
|
struct iw_statistics *rt28xx_get_wireless_stats(
|
||||||
IN struct net_device *net_dev)
|
IN struct net_device *net_dev)
|
||||||
|
@ -976,7 +968,6 @@ struct iw_statistics *rt28xx_get_wireless_stats(
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("<--- rt28xx_get_wireless_stats\n"));
|
DBGPRINT(RT_DEBUG_TRACE, ("<--- rt28xx_get_wireless_stats\n"));
|
||||||
return &pAd->iw_stats;
|
return &pAd->iw_stats;
|
||||||
} /* End of rt28xx_get_wireless_stats */
|
} /* End of rt28xx_get_wireless_stats */
|
||||||
#endif // WIRELESS_EXT //
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1230,14 +1230,10 @@ NDIS_STATUS RTMPReadParametersHook(
|
||||||
//WirelessEvent
|
//WirelessEvent
|
||||||
if(RTMPGetKeyParameter("WirelessEvent", tmpbuf, 10, buffer))
|
if(RTMPGetKeyParameter("WirelessEvent", tmpbuf, 10, buffer))
|
||||||
{
|
{
|
||||||
#if WIRELESS_EXT >= 15
|
|
||||||
if(simple_strtol(tmpbuf, 0, 10) != 0)
|
if(simple_strtol(tmpbuf, 0, 10) != 0)
|
||||||
pAd->CommonCfg.bWirelessEvent = simple_strtol(tmpbuf, 0, 10);
|
pAd->CommonCfg.bWirelessEvent = simple_strtol(tmpbuf, 0, 10);
|
||||||
else
|
else
|
||||||
pAd->CommonCfg.bWirelessEvent = 0; // disable
|
pAd->CommonCfg.bWirelessEvent = 0; // disable
|
||||||
#else
|
|
||||||
pAd->CommonCfg.bWirelessEvent = 0; // disable
|
|
||||||
#endif
|
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("WirelessEvent=%d\n", pAd->CommonCfg.bWirelessEvent));
|
DBGPRINT(RT_DEBUG_TRACE, ("WirelessEvent=%d\n", pAd->CommonCfg.bWirelessEvent));
|
||||||
}
|
}
|
||||||
if(RTMPGetKeyParameter("WiFiTest", tmpbuf, 10, buffer))
|
if(RTMPGetKeyParameter("WiFiTest", tmpbuf, 10, buffer))
|
||||||
|
|
|
@ -2972,9 +2972,7 @@ typedef struct _RTMP_ADAPTER
|
||||||
|
|
||||||
ULONG OneSecondnonBEpackets; // record non BE packets per second
|
ULONG OneSecondnonBEpackets; // record non BE packets per second
|
||||||
|
|
||||||
#if WIRELESS_EXT >= 12
|
|
||||||
struct iw_statistics iw_stats;
|
struct iw_statistics iw_stats;
|
||||||
#endif
|
|
||||||
|
|
||||||
struct net_device_stats stats;
|
struct net_device_stats stats;
|
||||||
|
|
||||||
|
@ -6323,11 +6321,9 @@ void send_monitor_packets(
|
||||||
IN PRTMP_ADAPTER pAd,
|
IN PRTMP_ADAPTER pAd,
|
||||||
IN RX_BLK *pRxBlk);
|
IN RX_BLK *pRxBlk);
|
||||||
|
|
||||||
#if WIRELESS_EXT >= 12
|
|
||||||
// This function will be called when query /proc
|
// This function will be called when query /proc
|
||||||
struct iw_statistics *rt28xx_get_wireless_stats(
|
struct iw_statistics *rt28xx_get_wireless_stats(
|
||||||
IN struct net_device *net_dev);
|
IN struct net_device *net_dev);
|
||||||
#endif
|
|
||||||
|
|
||||||
VOID RTMPSetDesiredRates(
|
VOID RTMPSetDesiredRates(
|
||||||
IN PRTMP_ADAPTER pAdapter,
|
IN PRTMP_ADAPTER pAdapter,
|
||||||
|
|
|
@ -1503,7 +1503,6 @@ int wext_notify_event_assoc(
|
||||||
union iwreq_data wrqu;
|
union iwreq_data wrqu;
|
||||||
char custom[IW_CUSTOM_MAX] = {0};
|
char custom[IW_CUSTOM_MAX] = {0};
|
||||||
|
|
||||||
#if WIRELESS_EXT > 17
|
|
||||||
if (pAd->StaCfg.ReqVarIELen <= IW_CUSTOM_MAX)
|
if (pAd->StaCfg.ReqVarIELen <= IW_CUSTOM_MAX)
|
||||||
{
|
{
|
||||||
wrqu.data.length = pAd->StaCfg.ReqVarIELen;
|
wrqu.data.length = pAd->StaCfg.ReqVarIELen;
|
||||||
|
@ -1512,19 +1511,6 @@ int wext_notify_event_assoc(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
DBGPRINT(RT_DEBUG_TRACE, ("pAd->StaCfg.ReqVarIELen > MAX_CUSTOM_LEN\n"));
|
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;
|
return 0;
|
||||||
|
|
||||||
|
|
|
@ -815,11 +815,9 @@ int rt_ioctl_giwrange(struct net_device *dev,
|
||||||
range->min_frag = 256;
|
range->min_frag = 256;
|
||||||
range->max_frag = 2346;
|
range->max_frag = 2346;
|
||||||
|
|
||||||
#if WIRELESS_EXT > 17
|
|
||||||
/* IW_ENC_CAPA_* bit field */
|
/* IW_ENC_CAPA_* bit field */
|
||||||
range->enc_capa = IW_ENC_CAPA_WPA | IW_ENC_CAPA_WPA2 |
|
range->enc_capa = IW_ENC_CAPA_WPA | IW_ENC_CAPA_WPA2 |
|
||||||
IW_ENC_CAPA_CIPHER_TKIP | IW_ENC_CAPA_CIPHER_CCMP;
|
IW_ENC_CAPA_CIPHER_TKIP | IW_ENC_CAPA_CIPHER_CCMP;
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1110,25 +1108,15 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WIRELESS_EXT >= 17
|
|
||||||
if (data->length > 0)
|
if (data->length > 0)
|
||||||
end_buf = extra + data->length;
|
end_buf = extra + data->length;
|
||||||
else
|
else
|
||||||
end_buf = extra + IW_SCAN_MAX_DATA;
|
end_buf = extra + IW_SCAN_MAX_DATA;
|
||||||
#else
|
|
||||||
end_buf = extra + IW_SCAN_MAX_DATA;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for (i = 0; i < pAdapter->ScanTab.BssNr; i++)
|
for (i = 0; i < pAdapter->ScanTab.BssNr; i++)
|
||||||
{
|
{
|
||||||
if (current_ev >= end_buf)
|
if (current_ev >= end_buf)
|
||||||
{
|
return -E2BIG;
|
||||||
#if WIRELESS_EXT >= 17
|
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
//MAC address
|
//MAC address
|
||||||
//================================
|
//================================
|
||||||
|
@ -1141,11 +1129,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
current_ev = iwe_stream_add_event(info, current_ev,end_buf, &iwe, IW_EV_ADDR_LEN);
|
current_ev = iwe_stream_add_event(info, current_ev,end_buf, &iwe, IW_EV_ADDR_LEN);
|
||||||
#ifdef RT30xx
|
#ifdef RT30xx
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Protocol:
|
Protocol:
|
||||||
|
@ -1221,11 +1205,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_ADDR_LEN);
|
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_ADDR_LEN);
|
||||||
#endif /* RT30xx */
|
#endif /* RT30xx */
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//ESSID
|
//ESSID
|
||||||
//================================
|
//================================
|
||||||
|
@ -1237,11 +1217,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
previous_ev = current_ev;
|
previous_ev = current_ev;
|
||||||
current_ev = iwe_stream_add_point(info, current_ev,end_buf, &iwe, pAdapter->ScanTab.BssEntry[i].Ssid);
|
current_ev = iwe_stream_add_point(info, current_ev,end_buf, &iwe, pAdapter->ScanTab.BssEntry[i].Ssid);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Network Type
|
//Network Type
|
||||||
//================================
|
//================================
|
||||||
|
@ -1264,11 +1240,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
previous_ev = current_ev;
|
previous_ev = current_ev;
|
||||||
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_UINT_LEN);
|
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_UINT_LEN);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Channel and Frequency
|
//Channel and Frequency
|
||||||
//================================
|
//================================
|
||||||
|
@ -1284,11 +1256,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
previous_ev = current_ev;
|
previous_ev = current_ev;
|
||||||
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_FREQ_LEN);
|
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_FREQ_LEN);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Add quality statistics
|
//Add quality statistics
|
||||||
//================================
|
//================================
|
||||||
|
@ -1299,11 +1267,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
set_quality(pAdapter, &iwe.u.qual, pAdapter->ScanTab.BssEntry[i].Rssi);
|
set_quality(pAdapter, &iwe.u.qual, pAdapter->ScanTab.BssEntry[i].Rssi);
|
||||||
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_QUAL_LEN);
|
current_ev = iwe_stream_add_event(info, current_ev, end_buf, &iwe, IW_EV_QUAL_LEN);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Encyption key
|
//Encyption key
|
||||||
//================================
|
//================================
|
||||||
|
@ -1317,11 +1281,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
previous_ev = current_ev;
|
previous_ev = current_ev;
|
||||||
current_ev = iwe_stream_add_point(info, current_ev, end_buf,&iwe, (char *)pAdapter->SharedKey[BSS0][(iwe.u.data.flags & IW_ENCODE_INDEX)-1].Key);
|
current_ev = iwe_stream_add_point(info, current_ev, end_buf,&iwe, (char *)pAdapter->SharedKey[BSS0][(iwe.u.data.flags & IW_ENCODE_INDEX)-1].Key);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Bit Rate
|
//Bit Rate
|
||||||
//================================
|
//================================
|
||||||
|
@ -1350,11 +1310,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
if((current_val-current_ev)>IW_EV_LCP_LEN)
|
if((current_val-current_ev)>IW_EV_LCP_LEN)
|
||||||
current_ev = current_val;
|
current_ev = current_val;
|
||||||
else
|
else
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef IWEVGENIE
|
#ifdef IWEVGENIE
|
||||||
|
@ -1369,11 +1325,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
iwe.u.data.length = pAdapter->ScanTab.BssEntry[i].WpaIE.IELen;
|
iwe.u.data.length = pAdapter->ScanTab.BssEntry[i].WpaIE.IELen;
|
||||||
current_ev = iwe_stream_add_point(info, current_ev, end_buf, &iwe, custom);
|
current_ev = iwe_stream_add_point(info, current_ev, end_buf, &iwe, custom);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//WPA2 IE
|
//WPA2 IE
|
||||||
|
@ -1387,11 +1339,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
iwe.u.data.length = pAdapter->ScanTab.BssEntry[i].RsnIE.IELen;
|
iwe.u.data.length = pAdapter->ScanTab.BssEntry[i].RsnIE.IELen;
|
||||||
current_ev = iwe_stream_add_point(info, current_ev, end_buf, &iwe, custom);
|
current_ev = iwe_stream_add_point(info, current_ev, end_buf, &iwe, custom);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
//WPA IE
|
//WPA IE
|
||||||
|
@ -1408,11 +1356,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
previous_ev = current_ev;
|
previous_ev = current_ev;
|
||||||
current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe, custom);
|
current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe, custom);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//WPA2 IE
|
//WPA2 IE
|
||||||
|
@ -1428,11 +1372,7 @@ int rt_ioctl_giwscan(struct net_device *dev,
|
||||||
previous_ev = current_ev;
|
previous_ev = current_ev;
|
||||||
current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe, custom);
|
current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe, custom);
|
||||||
if (current_ev == previous_ev)
|
if (current_ev == previous_ev)
|
||||||
#if WIRELESS_EXT >= 17
|
return -E2BIG;
|
||||||
return -E2BIG;
|
|
||||||
#else
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif // IWEVGENIE //
|
#endif // IWEVGENIE //
|
||||||
}
|
}
|
||||||
|
@ -2332,7 +2272,6 @@ int rt_ioctl_siwmlme(struct net_device *dev,
|
||||||
}
|
}
|
||||||
#endif // SIOCSIWMLME //
|
#endif // SIOCSIWMLME //
|
||||||
|
|
||||||
#if WIRELESS_EXT > 17
|
|
||||||
int rt_ioctl_siwauth(struct net_device *dev,
|
int rt_ioctl_siwauth(struct net_device *dev,
|
||||||
struct iw_request_info *info,
|
struct iw_request_info *info,
|
||||||
union iwreq_data *wrqu, char *extra)
|
union iwreq_data *wrqu, char *extra)
|
||||||
|
@ -2911,7 +2850,6 @@ int rt_ioctl_siwpmksa(struct net_device *dev,
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif // #if WIRELESS_EXT > 17
|
|
||||||
|
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
static int
|
static int
|
||||||
|
@ -3214,7 +3152,6 @@ static const iw_handler rt_handler[] =
|
||||||
(iw_handler) NULL, /* SIOCGIWPOWER */
|
(iw_handler) NULL, /* SIOCGIWPOWER */
|
||||||
(iw_handler) NULL, /* -- hole -- */
|
(iw_handler) NULL, /* -- hole -- */
|
||||||
(iw_handler) NULL, /* -- hole -- */
|
(iw_handler) NULL, /* -- hole -- */
|
||||||
#if WIRELESS_EXT > 17
|
|
||||||
(iw_handler) rt_ioctl_siwgenie, /* SIOCSIWGENIE */
|
(iw_handler) rt_ioctl_siwgenie, /* SIOCSIWGENIE */
|
||||||
(iw_handler) rt_ioctl_giwgenie, /* SIOCGIWGENIE */
|
(iw_handler) rt_ioctl_giwgenie, /* SIOCGIWGENIE */
|
||||||
(iw_handler) rt_ioctl_siwauth, /* SIOCSIWAUTH */
|
(iw_handler) rt_ioctl_siwauth, /* SIOCSIWAUTH */
|
||||||
|
@ -3222,7 +3159,6 @@ static const iw_handler rt_handler[] =
|
||||||
(iw_handler) rt_ioctl_siwencodeext, /* SIOCSIWENCODEEXT */
|
(iw_handler) rt_ioctl_siwencodeext, /* SIOCSIWENCODEEXT */
|
||||||
(iw_handler) rt_ioctl_giwencodeext, /* SIOCGIWENCODEEXT */
|
(iw_handler) rt_ioctl_giwencodeext, /* SIOCGIWENCODEEXT */
|
||||||
(iw_handler) rt_ioctl_siwpmksa, /* SIOCSIWPMKSA */
|
(iw_handler) rt_ioctl_siwpmksa, /* SIOCSIWPMKSA */
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const iw_handler rt_priv_handlers[] = {
|
static const iw_handler rt_priv_handlers[] = {
|
||||||
|
@ -4584,22 +4520,9 @@ INT RTMPQueryInformation(
|
||||||
}
|
}
|
||||||
pBss->Length = (ULONG)(sizeof(NDIS_WLAN_BSSID_EX) - 1 + sizeof(NDIS_802_11_FIXED_IEs) + pAdapter->ScanTab.BssEntry[i].VarIELen + Padding);
|
pBss->Length = (ULONG)(sizeof(NDIS_WLAN_BSSID_EX) - 1 + sizeof(NDIS_802_11_FIXED_IEs) + pAdapter->ScanTab.BssEntry[i].VarIELen + Padding);
|
||||||
|
|
||||||
#if WIRELESS_EXT < 17
|
|
||||||
if ((BssLen + pBss->Length) < wrq->u.data.length)
|
|
||||||
BssLen += pBss->Length;
|
BssLen += pBss->Length;
|
||||||
else
|
|
||||||
{
|
|
||||||
pBssidList->NumberOfItems = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
BssLen += pBss->Length;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if WIRELESS_EXT < 17
|
|
||||||
wrq->u.data.length = BssLen;
|
|
||||||
#else
|
|
||||||
if (BssLen > wrq->u.data.length)
|
if (BssLen > wrq->u.data.length)
|
||||||
{
|
{
|
||||||
kfree(pBssidList);
|
kfree(pBssidList);
|
||||||
|
@ -4607,7 +4530,6 @@ INT RTMPQueryInformation(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
wrq->u.data.length = BssLen;
|
wrq->u.data.length = BssLen;
|
||||||
#endif
|
|
||||||
Status = copy_to_user(wrq->u.data.pointer, pBssidList, BssLen);
|
Status = copy_to_user(wrq->u.data.pointer, pBssidList, BssLen);
|
||||||
kfree(pBssidList);
|
kfree(pBssidList);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue