mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
rtl8712: remove all NDIS_* definitions and use rndis.h instead
Remove duplicate code.The definitions are already in include/linux/rndis.h Signed-off-by: Przemo Firszt <przemo@firszt.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fc6556e844
commit
9e01b9f313
@ -28,6 +28,7 @@
|
||||
|
||||
#define _RTL871X_IOCTL_RTL_C_
|
||||
|
||||
#include <linux/rndis.h>
|
||||
#include "osdep_service.h"
|
||||
#include "drv_types.h"
|
||||
#include "wlan_bssdef.h"
|
||||
@ -42,8 +43,8 @@
|
||||
uint oid_rt_get_signal_quality_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_small_packet_crc_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -52,14 +53,14 @@ uint oid_rt_get_small_packet_crc_hdl(struct oid_par_priv *poid_par_priv)
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
*(u32 *)poid_par_priv->information_buf =
|
||||
padapter->recvpriv.rx_smallpacket_crcerr;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_middle_packet_crc_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -68,14 +69,14 @@ uint oid_rt_get_middle_packet_crc_hdl(struct oid_par_priv *poid_par_priv)
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
*(u32 *)poid_par_priv->information_buf =
|
||||
padapter->recvpriv.rx_middlepacket_crcerr;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_large_packet_crc_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -84,29 +85,29 @@ uint oid_rt_get_large_packet_crc_hdl(struct oid_par_priv *poid_par_priv)
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
*(u32 *)poid_par_priv->information_buf =
|
||||
padapter->recvpriv.rx_largepacket_crcerr;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_tx_retry_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_rx_retry_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_rx_total_packet_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -115,29 +116,29 @@ uint oid_rt_get_rx_total_packet_hdl(struct oid_par_priv *poid_par_priv)
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
*(u32 *)poid_par_priv->information_buf =
|
||||
padapter->recvpriv.rx_pkts +
|
||||
padapter->recvpriv.rx_drop;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_tx_beacon_ok_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_tx_beacon_err_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_rx_icv_err_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -146,22 +147,22 @@ uint oid_rt_get_rx_icv_err_hdl(struct oid_par_priv *poid_par_priv)
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
*(uint *)poid_par_priv->information_buf =
|
||||
padapter->recvpriv.rx_icv_err;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH ;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH ;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_set_encryption_algorithm_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != SET_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_preamble_mode_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -171,7 +172,7 @@ uint oid_rt_get_preamble_mode_hdl(struct oid_par_priv *poid_par_priv)
|
||||
u32 preamblemode = 0 ;
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
if (padapter->registrypriv.preamble == PREAMBLE_LONG)
|
||||
preamblemode = 0;
|
||||
@ -182,15 +183,15 @@ uint oid_rt_get_preamble_mode_hdl(struct oid_par_priv *poid_par_priv)
|
||||
*(u32 *)poid_par_priv->information_buf = preamblemode;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_ap_ip_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_channelplan_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -200,10 +201,10 @@ uint oid_rt_get_channelplan_hdl(struct oid_par_priv *poid_par_priv)
|
||||
struct eeprom_priv *peeprompriv = &padapter->eeprompriv;
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
*(u16 *)poid_par_priv->information_buf = peeprompriv->channel_plan;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_set_channelplan_hdl(struct oid_par_priv
|
||||
@ -214,9 +215,9 @@ uint oid_rt_set_channelplan_hdl(struct oid_par_priv
|
||||
struct eeprom_priv *peeprompriv = &padapter->eeprompriv;
|
||||
|
||||
if (poid_par_priv->type_of_oid != SET_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
peeprompriv->channel_plan = *(u16 *)poid_par_priv->information_buf;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_set_preamble_mode_hdl(struct oid_par_priv
|
||||
@ -227,7 +228,7 @@ uint oid_rt_set_preamble_mode_hdl(struct oid_par_priv
|
||||
u32 preamblemode = 0;
|
||||
|
||||
if (poid_par_priv->type_of_oid != SET_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
preamblemode = *(u32 *)poid_par_priv->information_buf;
|
||||
if (preamblemode == 0)
|
||||
@ -239,21 +240,21 @@ uint oid_rt_set_preamble_mode_hdl(struct oid_par_priv
|
||||
*(u32 *)poid_par_priv->information_buf = preamblemode;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_set_bcn_intvl_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != SET_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_dedicate_probe_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_total_tx_bytes_hdl(struct oid_par_priv
|
||||
@ -263,14 +264,14 @@ uint oid_rt_get_total_tx_bytes_hdl(struct oid_par_priv
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
*(u32 *)poid_par_priv->information_buf =
|
||||
padapter->xmitpriv.tx_bytes;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_total_rx_bytes_hdl(struct oid_par_priv
|
||||
@ -280,37 +281,37 @@ uint oid_rt_get_total_rx_bytes_hdl(struct oid_par_priv
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
*(u32 *)poid_par_priv->information_buf =
|
||||
padapter->recvpriv.rx_bytes;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->
|
||||
information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_current_tx_power_level_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_enc_key_mismatch_count_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_enc_key_match_count_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_channel_hdl(struct oid_par_priv *poid_par_priv)
|
||||
@ -322,7 +323,7 @@ uint oid_rt_get_channel_hdl(struct oid_par_priv *poid_par_priv)
|
||||
u32 channelnum;
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if ((check_fwstate(pmlmepriv, _FW_LINKED) == true) ||
|
||||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true))
|
||||
pnic_Config = &pmlmepriv->cur_network.network.Configuration;
|
||||
@ -332,22 +333,22 @@ uint oid_rt_get_channel_hdl(struct oid_par_priv *poid_par_priv)
|
||||
channelnum = pnic_Config->DSConfig;
|
||||
*(u32 *)poid_par_priv->information_buf = channelnum;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_hardware_radio_off_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_key_mismatch_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_supported_wireless_mode_hdl(struct oid_par_priv
|
||||
@ -356,7 +357,7 @@ uint oid_rt_supported_wireless_mode_hdl(struct oid_par_priv
|
||||
u32 ulInfo = 0;
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len >= sizeof(u32)) {
|
||||
ulInfo |= 0x0100; /* WIRELESS_MODE_B */
|
||||
ulInfo |= 0x0200; /* WIRELESS_MODE_G */
|
||||
@ -364,108 +365,108 @@ uint oid_rt_supported_wireless_mode_hdl(struct oid_par_priv
|
||||
*(u32 *) poid_par_priv->information_buf = ulInfo;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
} else
|
||||
return NDIS_STATUS_INVALID_LENGTH;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_INVALID_LENGTH;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_channel_list_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_scan_in_progress_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
uint oid_rt_forced_data_rate_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_wireless_mode_for_scan_list_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_get_bss_wireless_mode_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_scan_with_magic_packet_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_ap_get_associated_station_list_hdl(struct oid_par_priv
|
||||
*poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_ap_switch_into_ap_mode_hdl(struct oid_par_priv*
|
||||
poid_par_priv)
|
||||
{
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_ap_supported_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_ap_set_passphrase_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != SET_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_pro_rf_write_registry_hdl(struct oid_par_priv*
|
||||
poid_par_priv)
|
||||
{
|
||||
uint status = NDIS_STATUS_SUCCESS;
|
||||
uint status = RNDIS_STATUS_SUCCESS;
|
||||
struct _adapter *Adapter = (struct _adapter *)
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != SET_OID) /* QUERY_OID */
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len ==
|
||||
(sizeof(unsigned long) * 3)) {
|
||||
if (!r8712_setrfreg_cmd(Adapter,
|
||||
*(unsigned char *)poid_par_priv->information_buf,
|
||||
(unsigned long)(*((unsigned long *)
|
||||
poid_par_priv->information_buf + 2))))
|
||||
status = NDIS_STATUS_NOT_ACCEPTED;
|
||||
status = RNDIS_STATUS_NOT_ACCEPTED;
|
||||
} else
|
||||
status = NDIS_STATUS_INVALID_LENGTH;
|
||||
status = RNDIS_STATUS_INVALID_LENGTH;
|
||||
return status;
|
||||
}
|
||||
|
||||
uint oid_rt_pro_rf_read_registry_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
uint status = NDIS_STATUS_SUCCESS;
|
||||
uint status = RNDIS_STATUS_SUCCESS;
|
||||
struct _adapter *Adapter = (struct _adapter *)
|
||||
(poid_par_priv->adapter_context);
|
||||
|
||||
if (poid_par_priv->type_of_oid != SET_OID) /* QUERY_OID */
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
if (poid_par_priv->information_buf_len == (sizeof(unsigned long)*3)) {
|
||||
if (Adapter->mppriv.act_in_progress == true)
|
||||
status = NDIS_STATUS_NOT_ACCEPTED;
|
||||
status = RNDIS_STATUS_NOT_ACCEPTED;
|
||||
else {
|
||||
/* init workparam */
|
||||
Adapter->mppriv.act_in_progress = true;
|
||||
@ -486,10 +487,10 @@ uint oid_rt_pro_rf_read_registry_hdl(struct oid_par_priv *poid_par_priv)
|
||||
*(unsigned char *)poid_par_priv->information_buf,
|
||||
(unsigned char *)&Adapter->mppriv.workparam.
|
||||
io_value))
|
||||
status = NDIS_STATUS_NOT_ACCEPTED;
|
||||
status = RNDIS_STATUS_NOT_ACCEPTED;
|
||||
}
|
||||
} else
|
||||
status = NDIS_STATUS_INVALID_LENGTH;
|
||||
status = RNDIS_STATUS_INVALID_LENGTH;
|
||||
return status;
|
||||
}
|
||||
|
||||
@ -508,7 +509,7 @@ uint oid_rt_get_connect_state_hdl(struct oid_par_priv *poid_par_priv)
|
||||
u32 ulInfo;
|
||||
|
||||
if (poid_par_priv->type_of_oid != QUERY_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
/* nStatus==0 CheckingStatus
|
||||
* nStatus==1 Associated
|
||||
* nStatus==2 AdHocMode
|
||||
@ -524,12 +525,12 @@ uint oid_rt_get_connect_state_hdl(struct oid_par_priv *poid_par_priv)
|
||||
ulInfo = NOTASSOCIATED ;
|
||||
*(u32 *)poid_par_priv->information_buf = ulInfo;
|
||||
*poid_par_priv->bytes_rw = poid_par_priv->information_buf_len;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
uint oid_rt_set_default_key_id_hdl(struct oid_par_priv *poid_par_priv)
|
||||
{
|
||||
if (poid_par_priv->type_of_oid != SET_OID)
|
||||
return NDIS_STATUS_NOT_ACCEPTED;
|
||||
return NDIS_STATUS_SUCCESS;
|
||||
return RNDIS_STATUS_NOT_ACCEPTED;
|
||||
return RNDIS_STATUS_SUCCESS;
|
||||
}
|
||||
|
@ -26,62 +26,6 @@
|
||||
#ifndef __RTL871X_MP_H_
|
||||
#define __RTL871X_MP_H_
|
||||
|
||||
/* 00 - Success */
|
||||
/* 11 - Error */
|
||||
#define STATUS_SUCCESS (0x00000000L)
|
||||
#define STATUS_PENDING (0x00000103L)
|
||||
#define STATUS_UNSUCCESSFUL (0xC0000001L)
|
||||
#define STATUS_INSUFFICIENT_RESOURCES (0xC000009AL)
|
||||
#define STATUS_NOT_SUPPORTED (0xC00000BBL)
|
||||
#define NDIS_STATUS_SUCCESS ((uint)STATUS_SUCCESS)
|
||||
#define NDIS_STATUS_PENDING ((uint) STATUS_PENDING)
|
||||
#define NDIS_STATUS_NOT_RECOGNIZED ((uint)0x00010001L)
|
||||
#define NDIS_STATUS_NOT_COPIED ((uint)0x00010002L)
|
||||
#define NDIS_STATUS_NOT_ACCEPTED ((uint)0x00010003L)
|
||||
#define NDIS_STATUS_CALL_ACTIVE ((uint)0x00010007L)
|
||||
#define NDIS_STATUS_FAILURE ((uint) STATUS_UNSUCCESSFUL)
|
||||
#define NDIS_STATUS_RESOURCES ((uint)\
|
||||
STATUS_INSUFFICIENT_RESOURCES)
|
||||
#define NDIS_STATUS_CLOSING ((uint)0xC0010002L)
|
||||
#define NDIS_STATUS_BAD_VERSION ((uint)0xC0010004L)
|
||||
#define NDIS_STATUS_BAD_CHARACTERISTICS ((uint)0xC0010005L)
|
||||
#define NDIS_STATUS_ADAPTER_NOT_FOUND ((uint)0xC0010006L)
|
||||
#define NDIS_STATUS_OPEN_FAILED ((uint)0xC0010007L)
|
||||
#define NDIS_STATUS_DEVICE_FAILED ((uint)0xC0010008L)
|
||||
#define NDIS_STATUS_MULTICAST_FULL ((uint)0xC0010009L)
|
||||
#define NDIS_STATUS_MULTICAST_EXISTS ((uint)0xC001000AL)
|
||||
#define NDIS_STATUS_MULTICAST_NOT_FOUND ((uint)0xC001000BL)
|
||||
#define NDIS_STATUS_REQUEST_ABORTED ((uint)0xC001000CL)
|
||||
#define NDIS_STATUS_RESET_IN_PROGRESS ((uint)0xC001000DL)
|
||||
#define NDIS_STATUS_CLOSING_INDICATING ((uint)0xC001000EL)
|
||||
#define NDIS_STATUS_NOT_SUPPORTED ((uint)STATUS_NOT_SUPPORTED)
|
||||
#define NDIS_STATUS_INVALID_PACKET ((uint)0xC001000FL)
|
||||
#define NDIS_STATUS_OPEN_LIST_FULL ((uint)0xC0010010L)
|
||||
#define NDIS_STATUS_ADAPTER_NOT_READY ((uint)0xC0010011L)
|
||||
#define NDIS_STATUS_ADAPTER_NOT_OPEN ((uint)0xC0010012L)
|
||||
#define NDIS_STATUS_NOT_INDICATING ((uint)0xC0010013L)
|
||||
#define NDIS_STATUS_INVALID_LENGTH ((uint)0xC0010014L)
|
||||
#define NDIS_STATUS_INVALID_DATA ((uint)0xC0010015L)
|
||||
#define NDIS_STATUS_BUFFER_TOO_SHORT ((uint)0xC0010016L)
|
||||
#define NDIS_STATUS_INVALID_OID ((uint)0xC0010017L)
|
||||
#define NDIS_STATUS_ADAPTER_REMOVED ((uint)0xC0010018L)
|
||||
#define NDIS_STATUS_UNSUPPORTED_MEDIA ((uint)0xC0010019L)
|
||||
#define NDIS_STATUS_GROUP_ADDRESS_IN_USE ((uint)0xC001001AL)
|
||||
#define NDIS_STATUS_FILE_NOT_FOUND ((uint)0xC001001BL)
|
||||
#define NDIS_STATUS_ERROR_READING_FILE ((uint)0xC001001CL)
|
||||
#define NDIS_STATUS_ALREADY_MAPPED ((uint)0xC001001DL)
|
||||
#define NDIS_STATUS_RESOURCE_CONFLICT ((uint)0xC001001EL)
|
||||
#define NDIS_STATUS_NO_CABLE ((uint)0xC001001FL)
|
||||
#define NDIS_STATUS_INVALID_SAP ((uint)0xC0010020L)
|
||||
#define NDIS_STATUS_SAP_IN_USE ((uint)0xC0010021L)
|
||||
#define NDIS_STATUS_INVALID_ADDRESS ((uint)0xC0010022L)
|
||||
#define NDIS_STATUS_VC_NOT_ACTIVATED ((uint)0xC0010023L)
|
||||
#define NDIS_STATUS_DEST_OUT_OF_ORDER ((uint)0xC0010024L) /* cause 27*/
|
||||
#define NDIS_STATUS_VC_NOT_AVAILABLE ((uint)0xC0010025L) /* 35,45*/
|
||||
#define NDIS_STATUS_CELLRATE_NOT_AVAILABLE ((uint)0xC0010026L) /* 37*/
|
||||
#define NDIS_STATUS_INCOMPATABLE_QOS ((uint)0xC0010027L) /* 49*/
|
||||
#define NDIS_STATUS_AAL_PARAMS_UNSUPPORTED ((uint)0xC0010028L) /* 93*/
|
||||
#define NDIS_STATUS_NO_ROUTE_TO_DESTINATION ((uint)0xC0010029L) /* 3*/
|
||||
#define MPT_NOOP 0
|
||||
#define MPT_READ_MAC_1BYTE 1
|
||||
#define MPT_READ_MAC_2BYTE 2
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user