rtl8192eu: Replace typedefs for struct adapter

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-12-17 17:13:53 -06:00
parent a8b7b4d54c
commit 202d20077c
140 changed files with 3132 additions and 7948 deletions

View file

@ -38,7 +38,7 @@
#include <gspi_osintf.h>
#endif
extern void indicate_wx_scan_complete_event(_adapter *padapter);
extern void indicate_wx_scan_complete_event(struct adapter *padapter);
#define IS_MAC_ADDRESS_BROADCAST(addr) \
( \
@ -93,8 +93,8 @@ _func_exit_;
return ret;
}
u8 rtw_do_join(_adapter * padapter);
u8 rtw_do_join(_adapter * padapter)
u8 rtw_do_join(struct adapter * padapter);
u8 rtw_do_join(struct adapter * padapter)
{
_irqL irqL;
_list *plist, *phead;
@ -237,7 +237,7 @@ _func_exit_;
return ret;
}
u8 rtw_set_802_11_bssid(_adapter* padapter, u8 *bssid)
u8 rtw_set_802_11_bssid(struct adapter* padapter, u8 *bssid)
{
_irqL irqL;
u8 status=_SUCCESS;
@ -321,7 +321,7 @@ _func_exit_;
return status;
}
u8 rtw_set_802_11_ssid(_adapter* padapter, NDIS_802_11_SSID *ssid)
u8 rtw_set_802_11_ssid(struct adapter* padapter, NDIS_802_11_SSID *ssid)
{
_irqL irqL;
u8 status = _SUCCESS;
@ -445,7 +445,7 @@ _func_exit_;
}
u8 rtw_set_802_11_connect(_adapter* padapter, u8 *bssid, NDIS_802_11_SSID *ssid)
u8 rtw_set_802_11_connect(struct adapter* padapter, u8 *bssid, NDIS_802_11_SSID *ssid)
{
_irqL irqL;
u8 status = _SUCCESS;
@ -518,7 +518,7 @@ _func_exit_;
return status;
}
u8 rtw_set_802_11_infrastructure_mode(_adapter* padapter,
u8 rtw_set_802_11_infrastructure_mode(struct adapter* padapter,
NDIS_802_11_NETWORK_INFRASTRUCTURE networktype)
{
_irqL irqL;
@ -606,7 +606,7 @@ _func_exit_;
}
u8 rtw_set_802_11_disassociate(_adapter *padapter)
u8 rtw_set_802_11_disassociate(struct adapter *padapter)
{
_irqL irqL;
struct mlme_priv * pmlmepriv = &padapter->mlmepriv;
@ -633,7 +633,7 @@ _func_exit_;
return _TRUE;
}
u8 rtw_set_802_11_bssid_list_scan(_adapter* padapter, NDIS_802_11_SSID *pssid, int ssid_max_num)
u8 rtw_set_802_11_bssid_list_scan(struct adapter* padapter, NDIS_802_11_SSID *pssid, int ssid_max_num)
{
_irqL irqL;
struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
@ -685,7 +685,7 @@ _func_exit_;
return res;
}
u8 rtw_set_802_11_authentication_mode(_adapter* padapter, NDIS_802_11_AUTHENTICATION_MODE authmode)
u8 rtw_set_802_11_authentication_mode(struct adapter* padapter, NDIS_802_11_AUTHENTICATION_MODE authmode)
{
struct security_priv *psecuritypriv = &padapter->securitypriv;
int res;
@ -719,7 +719,7 @@ _func_exit_;
return ret;
}
u8 rtw_set_802_11_add_wep(_adapter* padapter, NDIS_802_11_WEP *wep){
u8 rtw_set_802_11_add_wep(struct adapter* padapter, NDIS_802_11_WEP *wep){
u8 bdefaultkey;
u8 btransmitkey;
@ -783,7 +783,7 @@ _func_exit_;
}
u8 rtw_set_802_11_remove_wep(_adapter* padapter, u32 keyindex){
u8 rtw_set_802_11_remove_wep(struct adapter* padapter, u32 keyindex){
u8 ret=_SUCCESS;
@ -826,7 +826,7 @@ _func_exit_;
}
u8 rtw_set_802_11_add_key(_adapter* padapter, NDIS_802_11_KEY *key){
u8 rtw_set_802_11_add_key(struct adapter* padapter, NDIS_802_11_KEY *key){
uint encryptionalgo;
u8 * pbssid;
@ -1191,7 +1191,7 @@ _func_exit_;
return ret;
}
u8 rtw_set_802_11_remove_key(_adapter* padapter, NDIS_802_11_REMOVE_KEY *key){
u8 rtw_set_802_11_remove_key(struct adapter* padapter, NDIS_802_11_REMOVE_KEY *key){
uint encryptionalgo;
u8 * pbssid;
@ -1246,11 +1246,11 @@ _func_exit_;
/*
* rtw_get_cur_max_rate -
* @adapter: pointer to _adapter structure
* @adapter: pointer to struct adapter structure
*
* Return 0 or 100Kbps
*/
u16 rtw_get_cur_max_rate(_adapter *adapter)
u16 rtw_get_cur_max_rate(struct adapter *adapter)
{
int i = 0;
u8 *p;
@ -1318,12 +1318,12 @@ u16 rtw_get_cur_max_rate(_adapter *adapter)
/*
* rtw_set_scan_mode -
* @adapter: pointer to _adapter structure
* @adapter: pointer to struct adapter structure
* @scan_mode:
*
* Return _SUCCESS or _FAIL
*/
int rtw_set_scan_mode(_adapter *adapter, RT_SCAN_TYPE scan_mode)
int rtw_set_scan_mode(struct adapter *adapter, RT_SCAN_TYPE scan_mode)
{
if(scan_mode != SCAN_ACTIVE && scan_mode != SCAN_PASSIVE)
return _FAIL;
@ -1335,12 +1335,12 @@ int rtw_set_scan_mode(_adapter *adapter, RT_SCAN_TYPE scan_mode)
/*
* rtw_set_channel_plan -
* @adapter: pointer to _adapter structure
* @adapter: pointer to struct adapter structure
* @channel_plan:
*
* Return _SUCCESS or _FAIL
*/
int rtw_set_channel_plan(_adapter *adapter, u8 channel_plan)
int rtw_set_channel_plan(struct adapter *adapter, u8 channel_plan)
{
struct registry_priv *pregistrypriv = &adapter->registrypriv;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
@ -1351,12 +1351,12 @@ int rtw_set_channel_plan(_adapter *adapter, u8 channel_plan)
/*
* rtw_set_country -
* @adapter: pointer to _adapter structure
* @adapter: pointer to struct adapter structure
* @country_code: string of country code
*
* Return _SUCCESS or _FAIL
*/
int rtw_set_country(_adapter *adapter, const char *country_code)
int rtw_set_country(struct adapter *adapter, const char *country_code)
{
int channel_plan = RT_CHANNEL_DOMAIN_WORLD_WIDE_5G;