mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 14:53:05 +00:00
rtl8188eu: Convert typedef for _adapter, etc.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
e8012b9521
commit
2bd2f4b4c8
99 changed files with 2239 additions and 2251 deletions
|
@ -203,7 +203,7 @@ Following are the initialization functions for WiFi MLME
|
|||
|
||||
*****************************************************************************/
|
||||
|
||||
int init_hw_mlme_ext(_adapter *padapter)
|
||||
int init_hw_mlme_ext(struct adapter *padapter)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
||||
|
@ -211,7 +211,7 @@ int init_hw_mlme_ext(_adapter *padapter)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
static void init_mlme_ext_priv_value(_adapter* padapter)
|
||||
static void init_mlme_ext_priv_value(struct adapter* padapter)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -290,7 +290,7 @@ static int has_channel(struct rt_channel_info *channel_set,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void init_channel_list(_adapter *padapter, struct rt_channel_info *channel_set,
|
||||
static void init_channel_list(struct adapter *padapter, struct rt_channel_info *channel_set,
|
||||
u8 chanset_size,
|
||||
struct p2p_channels *channel_list) {
|
||||
|
||||
|
@ -342,7 +342,7 @@ static void init_channel_list(_adapter *padapter, struct rt_channel_info *channe
|
|||
|
||||
}
|
||||
|
||||
static u8 init_channel_set(_adapter* padapter, u8 ChannelPlan, struct rt_channel_info *channel_set)
|
||||
static u8 init_channel_set(struct adapter* padapter, u8 ChannelPlan, struct rt_channel_info *channel_set)
|
||||
{
|
||||
u8 index,chanset_size = 0;
|
||||
u8 b5GBand = false, b2_4GBand = false;
|
||||
|
@ -397,7 +397,7 @@ static u8 init_channel_set(_adapter* padapter, u8 ChannelPlan, struct rt_channel
|
|||
return chanset_size;
|
||||
}
|
||||
|
||||
int init_mlme_ext_priv(_adapter* padapter)
|
||||
int init_mlme_ext_priv(struct adapter* padapter)
|
||||
{
|
||||
int res = _SUCCESS;
|
||||
struct registry_priv* pregistrypriv = &padapter->registrypriv;
|
||||
|
@ -435,7 +435,7 @@ int init_mlme_ext_priv(_adapter* padapter)
|
|||
|
||||
void free_mlme_ext_priv (struct mlme_ext_priv *pmlmeext)
|
||||
{
|
||||
_adapter *padapter = pmlmeext->padapter;
|
||||
struct adapter *padapter = pmlmeext->padapter;
|
||||
|
||||
if (!padapter)
|
||||
return;
|
||||
|
@ -448,7 +448,7 @@ void free_mlme_ext_priv (struct mlme_ext_priv *pmlmeext)
|
|||
}
|
||||
}
|
||||
|
||||
static u8 cmp_pkt_chnl_diff(_adapter *padapter,u8* pframe,uint packet_len)
|
||||
static u8 cmp_pkt_chnl_diff(struct adapter *padapter,u8* pframe,uint packet_len)
|
||||
{ /* if the channel is same, return 0. else return channel differential */
|
||||
uint len;
|
||||
u8 channel;
|
||||
|
@ -472,7 +472,7 @@ static u8 cmp_pkt_chnl_diff(_adapter *padapter,u8* pframe,uint packet_len)
|
|||
}
|
||||
}
|
||||
|
||||
static void _mgt_dispatcher(_adapter *padapter, struct mlme_handler *ptable, union recv_frame *precv_frame)
|
||||
static void _mgt_dispatcher(struct adapter *padapter, struct mlme_handler *ptable, union recv_frame *precv_frame)
|
||||
{
|
||||
u8 bc_addr[ETH_ALEN] = {0xff,0xff,0xff,0xff,0xff,0xff};
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
|
@ -491,7 +491,7 @@ static void _mgt_dispatcher(_adapter *padapter, struct mlme_handler *ptable, uni
|
|||
|
||||
}
|
||||
|
||||
void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
|
||||
void mgt_dispatcher(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
int index;
|
||||
struct mlme_handler *ptable;
|
||||
|
@ -582,7 +582,7 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
static u32 p2p_listen_state_process(_adapter *padapter, unsigned char *da)
|
||||
static u32 p2p_listen_state_process(struct adapter *padapter, unsigned char *da)
|
||||
{
|
||||
bool response = true;
|
||||
|
||||
|
@ -606,7 +606,7 @@ Following are the callback functions for each subtype of the management frames
|
|||
|
||||
*****************************************************************************/
|
||||
|
||||
unsigned int OnProbeReq(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnProbeReq(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int ielen;
|
||||
unsigned char *p;
|
||||
|
@ -695,7 +695,7 @@ _issue_probersp:
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnProbeRsp(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnProbeRsp(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
struct sta_info *psta;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -769,7 +769,7 @@ unsigned int OnProbeRsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnBeacon(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnBeacon(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
int cam_idx;
|
||||
struct sta_info *psta;
|
||||
|
@ -861,7 +861,7 @@ _END_ONBEACON_:
|
|||
|
||||
}
|
||||
|
||||
unsigned int OnAuth(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAuth(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
#ifdef CONFIG_AP_MODE
|
||||
unsigned long irqL;
|
||||
|
@ -1046,7 +1046,7 @@ auth_fail:
|
|||
|
||||
}
|
||||
|
||||
unsigned int OnAuthClient(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAuthClient(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int seq, len, status, offset;
|
||||
unsigned char *p;
|
||||
|
@ -1145,7 +1145,7 @@ authclnt_fail:
|
|||
|
||||
}
|
||||
|
||||
unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
#ifdef CONFIG_AP_MODE
|
||||
unsigned long irqL;
|
||||
|
@ -1685,7 +1685,7 @@ OnAssocReqFail:
|
|||
|
||||
}
|
||||
|
||||
unsigned int OnAssocRsp(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAssocRsp(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
uint i;
|
||||
int res;
|
||||
|
@ -1775,7 +1775,7 @@ report_assoc_result:
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnDeAuth(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnDeAuth(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
unsigned short reason;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
@ -1850,7 +1850,7 @@ unsigned int OnDeAuth(_adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
}
|
||||
|
||||
unsigned int OnDisassoc(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnDisassoc(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
u16 reason;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
@ -1924,13 +1924,13 @@ unsigned int OnDisassoc(_adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
}
|
||||
|
||||
unsigned int OnAtim(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAtim(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
DBG_88E("%s\n", __func__);
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
static unsigned int on_action_spct_ch_switch (_adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
|
||||
static unsigned int on_action_spct_ch_switch (struct adapter *padapter, struct sta_info *psta, u8 *ies, uint ies_len)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
struct mlme_ext_priv *mlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -1988,7 +1988,7 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned int on_action_spct(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int on_action_spct(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
struct sta_info *psta = NULL;
|
||||
|
@ -2027,17 +2027,17 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned int OnAction_qos(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_qos(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_dls(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_dls(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
u8 *addr;
|
||||
struct sta_info *psta=NULL;
|
||||
|
@ -2184,7 +2184,7 @@ static void get_channel_cnt_24g_5gl_5gh( struct mlme_ext_priv *pmlmeext, u8* p2
|
|||
}
|
||||
}
|
||||
|
||||
void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
|
||||
void issue_p2p_GO_request(struct adapter *padapter, u8* raddr)
|
||||
{
|
||||
|
||||
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
|
@ -2556,7 +2556,7 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
|
|||
return;
|
||||
}
|
||||
|
||||
static void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint len, u8 result)
|
||||
static void issue_p2p_GO_response(struct adapter *padapter, u8* raddr, u8* frame_body,uint len, u8 result)
|
||||
{
|
||||
|
||||
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
|
@ -2965,7 +2965,7 @@ static void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,
|
|||
return;
|
||||
}
|
||||
|
||||
static void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
|
||||
static void issue_p2p_GO_confirm(struct adapter *padapter, u8* raddr, u8 result)
|
||||
{
|
||||
|
||||
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
|
@ -3176,7 +3176,7 @@ static void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
|
|||
|
||||
}
|
||||
|
||||
void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
|
||||
void issue_p2p_invitation_request(struct adapter *padapter, u8* raddr )
|
||||
{
|
||||
|
||||
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
|
@ -3441,7 +3441,7 @@ void issue_p2p_invitation_request(_adapter *padapter, u8* raddr )
|
|||
|
||||
}
|
||||
|
||||
void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken, u8 status_code)
|
||||
void issue_p2p_invitation_response(struct adapter *padapter, u8* raddr, u8 dialogToken, u8 status_code)
|
||||
{
|
||||
|
||||
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
|
@ -3642,7 +3642,7 @@ void issue_p2p_invitation_response(_adapter *padapter, u8* raddr, u8 dialogToken
|
|||
return;
|
||||
}
|
||||
|
||||
void issue_p2p_provision_request(_adapter *padapter, u8* pssid, u8 ussidlen, u8* pdev_raddr )
|
||||
void issue_p2p_provision_request(struct adapter *padapter, u8* pssid, u8 ussidlen, u8* pdev_raddr )
|
||||
{
|
||||
unsigned char category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
u8 action = P2P_PUB_ACTION_ACTION;
|
||||
|
@ -3764,7 +3764,7 @@ static u8 is_matched_in_profilelist( u8* peermacaddr, struct profile_info* profi
|
|||
return (match_result );
|
||||
}
|
||||
|
||||
void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
|
||||
void issue_probersp_p2p(struct adapter *padapter, unsigned char *da)
|
||||
{
|
||||
struct xmit_frame *pmgntframe;
|
||||
struct pkt_attrib *pattrib;
|
||||
|
@ -4019,7 +4019,7 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
|
|||
return;
|
||||
}
|
||||
|
||||
static int _issue_probereq_p2p(_adapter *padapter, u8 *da, int wait_ack)
|
||||
static int _issue_probereq_p2p(struct adapter *padapter, u8 *da, int wait_ack)
|
||||
{
|
||||
int ret = _FAIL;
|
||||
struct xmit_frame *pmgntframe;
|
||||
|
@ -4323,12 +4323,12 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
inline void issue_probereq_p2p(_adapter *adapter, u8 *da)
|
||||
inline void issue_probereq_p2p(struct adapter *adapter, u8 *da)
|
||||
{
|
||||
_issue_probereq_p2p(adapter, da, false);
|
||||
}
|
||||
|
||||
int issue_probereq_p2p_ex(_adapter *adapter, u8 *da, int try_cnt, int wait_ms)
|
||||
int issue_probereq_p2p_ex(struct adapter *adapter, u8 *da, int try_cnt, int wait_ms)
|
||||
{
|
||||
int ret;
|
||||
int i = 0;
|
||||
|
@ -4373,7 +4373,7 @@ exit:
|
|||
|
||||
static s32 rtw_action_public_decache(union recv_frame *recv_frame, s32 token)
|
||||
{
|
||||
_adapter *adapter = recv_frame->u.hdr.adapter;
|
||||
struct adapter *adapter = recv_frame->u.hdr.adapter;
|
||||
struct mlme_ext_priv *mlmeext = &(adapter->mlmeextpriv);
|
||||
u8 *frame = recv_frame->u.hdr.rx_data;
|
||||
u16 seq_ctrl = ( (recv_frame->u.hdr.attrib.seq_num&0xffff) << 4) |
|
||||
|
@ -4407,7 +4407,7 @@ static s32 rtw_action_public_decache(union recv_frame *recv_frame, s32 token)
|
|||
|
||||
static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
||||
{
|
||||
_adapter *padapter = precv_frame->u.hdr.adapter;
|
||||
struct adapter *padapter = precv_frame->u.hdr.adapter;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint len = precv_frame->u.hdr.len;
|
||||
u8 *frame_body;
|
||||
|
@ -4791,7 +4791,7 @@ static unsigned int on_action_public_default(union recv_frame *precv_frame, u8 a
|
|||
uint frame_len = precv_frame->u.hdr.len;
|
||||
u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
u8 token;
|
||||
_adapter *adapter = precv_frame->u.hdr.adapter;
|
||||
struct adapter *adapter = precv_frame->u.hdr.adapter;
|
||||
int cnt = 0;
|
||||
char msg[64];
|
||||
|
||||
|
@ -4806,7 +4806,7 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned int on_action_public(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int on_action_public(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
unsigned int ret = _FAIL;
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
|
@ -4836,17 +4836,17 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
unsigned int OnAction_ht(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_ht(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_wmm(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_wmm(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction_p2p(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction_p2p(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
#ifdef CONFIG_P2P
|
||||
u8 *frame_body;
|
||||
|
@ -4891,7 +4891,7 @@ unsigned int OnAction_p2p(_adapter *padapter, union recv_frame *precv_frame)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
unsigned int OnAction(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int OnAction(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
int i;
|
||||
unsigned char category;
|
||||
|
@ -4916,7 +4916,7 @@ unsigned int OnAction(_adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
}
|
||||
|
||||
unsigned int DoReserved(_adapter *padapter, union recv_frame *precv_frame)
|
||||
unsigned int DoReserved(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
|
||||
/* DBG_88E("rcvd mgt frame(%x, %x)\n", (GetFrameSubType(pframe) >> 4), *(unsigned int *)GetAddr1Ptr(pframe)); */
|
||||
|
@ -4960,7 +4960,7 @@ Following are some TX fuctions for WiFi MLME
|
|||
|
||||
*****************************************************************************/
|
||||
|
||||
void update_mgnt_tx_rate(_adapter *padapter, u8 rate)
|
||||
void update_mgnt_tx_rate(struct adapter *padapter, u8 rate)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
|
||||
|
@ -4968,7 +4968,7 @@ void update_mgnt_tx_rate(_adapter *padapter, u8 rate)
|
|||
DBG_88E("%s(): rate = %x\n",__func__, rate);
|
||||
}
|
||||
|
||||
void update_mgntframe_attrib(_adapter *padapter, struct pkt_attrib *pattrib)
|
||||
void update_mgntframe_attrib(struct adapter *padapter, struct pkt_attrib *pattrib)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
|
||||
|
@ -5002,7 +5002,7 @@ void update_mgntframe_attrib(_adapter *padapter, struct pkt_attrib *pattrib)
|
|||
|
||||
}
|
||||
|
||||
void dump_mgntframe(_adapter *padapter, struct xmit_frame *pmgntframe)
|
||||
void dump_mgntframe(struct adapter *padapter, struct xmit_frame *pmgntframe)
|
||||
{
|
||||
if (padapter->bSurpriseRemoved == true ||
|
||||
padapter->bDriverStopped == true)
|
||||
|
@ -5011,7 +5011,7 @@ void dump_mgntframe(_adapter *padapter, struct xmit_frame *pmgntframe)
|
|||
rtw_hal_mgnt_xmit(padapter, pmgntframe);
|
||||
}
|
||||
|
||||
s32 dump_mgntframe_and_wait(_adapter *padapter, struct xmit_frame *pmgntframe, int timeout_ms)
|
||||
s32 dump_mgntframe_and_wait(struct adapter *padapter, struct xmit_frame *pmgntframe, int timeout_ms)
|
||||
{
|
||||
s32 ret = _FAIL;
|
||||
struct xmit_buf *pxmitbuf = pmgntframe->pxmitbuf;
|
||||
|
@ -5032,7 +5032,7 @@ s32 dump_mgntframe_and_wait(_adapter *padapter, struct xmit_frame *pmgntframe, i
|
|||
return ret;
|
||||
}
|
||||
|
||||
s32 dump_mgntframe_and_wait_ack(_adapter *padapter, struct xmit_frame *pmgntframe)
|
||||
s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, struct xmit_frame *pmgntframe)
|
||||
{
|
||||
s32 ret = _FAIL;
|
||||
u32 timeout_ms = 500;/* 500ms */
|
||||
|
@ -5094,7 +5094,7 @@ static int update_hidden_ssid(u8 *ies, u32 ies_len, u8 hidden_ssid_mode)
|
|||
return len_diff;
|
||||
}
|
||||
|
||||
void issue_beacon(_adapter *padapter, int timeout_ms)
|
||||
void issue_beacon(struct adapter *padapter, int timeout_ms)
|
||||
{
|
||||
struct xmit_frame *pmgntframe;
|
||||
struct pkt_attrib *pattrib;
|
||||
|
@ -5348,7 +5348,7 @@ _issue_bcn:
|
|||
|
||||
}
|
||||
|
||||
void issue_probersp(_adapter *padapter, unsigned char *da, u8 is_valid_p2p_probereq)
|
||||
void issue_probersp(struct adapter *padapter, unsigned char *da, u8 is_valid_p2p_probereq)
|
||||
{
|
||||
struct xmit_frame *pmgntframe;
|
||||
struct pkt_attrib *pattrib;
|
||||
|
@ -5531,7 +5531,7 @@ void issue_probersp(_adapter *padapter, unsigned char *da, u8 is_valid_p2p_probe
|
|||
return;
|
||||
}
|
||||
|
||||
static int _issue_probereq(_adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da, int wait_ack)
|
||||
static int _issue_probereq(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da, int wait_ack)
|
||||
{
|
||||
int ret = _FAIL;
|
||||
struct xmit_frame *pmgntframe;
|
||||
|
@ -5632,12 +5632,12 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
inline void issue_probereq(_adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da)
|
||||
inline void issue_probereq(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da)
|
||||
{
|
||||
_issue_probereq(padapter, pssid, da, false);
|
||||
}
|
||||
|
||||
int issue_probereq_ex(_adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da,
|
||||
int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da,
|
||||
int try_cnt, int wait_ms)
|
||||
{
|
||||
int ret;
|
||||
|
@ -5680,7 +5680,7 @@ exit:
|
|||
}
|
||||
|
||||
/* if psta == NULL, indiate we are station(client) now... */
|
||||
void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status)
|
||||
void issue_auth(struct adapter *padapter, struct sta_info *psta, unsigned short status)
|
||||
{
|
||||
struct xmit_frame *pmgntframe;
|
||||
struct pkt_attrib *pattrib;
|
||||
|
@ -5822,7 +5822,7 @@ void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status
|
|||
}
|
||||
|
||||
|
||||
void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *pstat, int pkt_type)
|
||||
void issue_asocrsp(struct adapter *padapter, unsigned short status, struct sta_info *pstat, int pkt_type)
|
||||
{
|
||||
#ifdef CONFIG_AP_MODE
|
||||
struct xmit_frame *pmgntframe;
|
||||
|
@ -5965,7 +5965,7 @@ void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *p
|
|||
#endif
|
||||
}
|
||||
|
||||
void issue_assocreq(_adapter *padapter)
|
||||
void issue_assocreq(struct adapter *padapter)
|
||||
{
|
||||
int ret = _FAIL;
|
||||
struct xmit_frame *pmgntframe;
|
||||
|
@ -6325,7 +6325,7 @@ exit:
|
|||
}
|
||||
|
||||
/* when wait_ack is ture, this function shoule be called at process context */
|
||||
static int _issue_nulldata(_adapter *padapter, unsigned char *da, unsigned int power_mode, int wait_ack)
|
||||
static int _issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int power_mode, int wait_ack)
|
||||
{
|
||||
int ret = _FAIL;
|
||||
struct xmit_frame *pmgntframe;
|
||||
|
@ -6408,7 +6408,7 @@ exit:
|
|||
|
||||
/* when wait_ms >0 , this function shoule be called at process context */
|
||||
/* da == NULL for station mode */
|
||||
int issue_nulldata(_adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms)
|
||||
int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms)
|
||||
{
|
||||
int ret;
|
||||
int i = 0;
|
||||
|
@ -6456,7 +6456,7 @@ exit:
|
|||
}
|
||||
|
||||
/* when wait_ack is ture, this function shoule be called at process context */
|
||||
static int _issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid, int wait_ack)
|
||||
static int _issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int wait_ack)
|
||||
{
|
||||
int ret = _FAIL;
|
||||
struct xmit_frame *pmgntframe;
|
||||
|
@ -6542,7 +6542,7 @@ exit:
|
|||
|
||||
/* when wait_ms >0 , this function shoule be called at process context */
|
||||
/* da == NULL for station mode */
|
||||
int issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms)
|
||||
int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms)
|
||||
{
|
||||
int ret;
|
||||
int i = 0;
|
||||
|
@ -6589,7 +6589,7 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int _issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason, u8 wait_ack)
|
||||
static int _issue_deauth(struct adapter *padapter, unsigned char *da, unsigned short reason, u8 wait_ack)
|
||||
{
|
||||
struct xmit_frame *pmgntframe;
|
||||
struct pkt_attrib *pattrib;
|
||||
|
@ -6657,13 +6657,13 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
int issue_deauth(_adapter *padapter, unsigned char *da, unsigned short reason)
|
||||
int issue_deauth(struct adapter *padapter, unsigned char *da, unsigned short reason)
|
||||
{
|
||||
DBG_88E("%s to %pM\n", __func__, da);
|
||||
return _issue_deauth(padapter, da, reason, false);
|
||||
}
|
||||
|
||||
int issue_deauth_ex(_adapter *padapter, u8 *da, unsigned short reason, int try_cnt,
|
||||
int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int try_cnt,
|
||||
int wait_ms)
|
||||
{
|
||||
int ret;
|
||||
|
@ -6705,7 +6705,7 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
void issue_action_spct_ch_switch (_adapter *padapter, u8 *ra, u8 new_ch, u8 ch_offset)
|
||||
void issue_action_spct_ch_switch (struct adapter *padapter, u8 *ra, u8 new_ch, u8 ch_offset)
|
||||
{
|
||||
unsigned long irqL;
|
||||
struct list_head *plist, *phead;
|
||||
|
@ -6769,7 +6769,7 @@ void issue_action_spct_ch_switch (_adapter *padapter, u8 *ra, u8 new_ch, u8 ch_o
|
|||
|
||||
}
|
||||
|
||||
void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short status)
|
||||
void issue_action_BA(struct adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short status)
|
||||
{
|
||||
u8 category = RTW_WLAN_CATEGORY_BACK;
|
||||
u16 start_seq;
|
||||
|
@ -6929,7 +6929,7 @@ void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char act
|
|||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
static void issue_action_BSSCoexistPacket(_adapter *padapter)
|
||||
static void issue_action_BSSCoexistPacket(struct adapter *padapter)
|
||||
{
|
||||
unsigned long irqL;
|
||||
struct list_head *plist, *phead;
|
||||
|
@ -7087,7 +7087,7 @@ static void issue_action_BSSCoexistPacket(_adapter *padapter)
|
|||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
|
||||
unsigned int send_delba(struct adapter *padapter, u8 initiator, u8 *addr)
|
||||
{
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
struct sta_info *psta = NULL;
|
||||
|
@ -7141,7 +7141,7 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
|
|||
|
||||
}
|
||||
|
||||
unsigned int send_beacon(_adapter *padapter)
|
||||
unsigned int send_beacon(struct adapter *padapter)
|
||||
{
|
||||
u8 bxmitok = false;
|
||||
int issue=0;
|
||||
|
@ -7181,7 +7181,7 @@ Following are some utitity fuctions for WiFi MLME
|
|||
|
||||
*****************************************************************************/
|
||||
|
||||
bool IsLegal5GChannel(PADAPTER Adapter, u8 channel)
|
||||
bool IsLegal5GChannel(struct adapter * Adapter, u8 channel)
|
||||
{
|
||||
int i=0;
|
||||
u8 Channel_5G[45] = {36,38,40,42,44,46,48,50,52,54,56,58,
|
||||
|
@ -7194,7 +7194,7 @@ bool IsLegal5GChannel(PADAPTER Adapter, u8 channel)
|
|||
return false;
|
||||
}
|
||||
|
||||
void site_survey(_adapter *padapter)
|
||||
void site_survey(struct adapter *padapter)
|
||||
{
|
||||
unsigned char survey_channel = 0, val8;
|
||||
enum rt_scan_type ScanType = SCAN_PASSIVE;
|
||||
|
@ -7397,7 +7397,7 @@ void site_survey(_adapter *padapter)
|
|||
}
|
||||
|
||||
/* collect bss info from Beacon and Probe request/response frames. */
|
||||
u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, struct wlan_bssid_ex *bssid)
|
||||
u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, struct wlan_bssid_ex *bssid)
|
||||
{
|
||||
int i;
|
||||
u32 len;
|
||||
|
@ -7591,7 +7591,7 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, struct wl
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
void start_create_ibss(_adapter* padapter)
|
||||
void start_create_ibss(struct adapter* padapter)
|
||||
{
|
||||
unsigned short caps;
|
||||
u8 val8;
|
||||
|
@ -7649,7 +7649,7 @@ void start_create_ibss(_adapter* padapter)
|
|||
|
||||
}
|
||||
|
||||
void start_clnt_join(_adapter* padapter)
|
||||
void start_clnt_join(struct adapter* padapter)
|
||||
{
|
||||
unsigned short caps;
|
||||
u8 val8;
|
||||
|
@ -7711,7 +7711,7 @@ void start_clnt_join(_adapter* padapter)
|
|||
|
||||
}
|
||||
|
||||
void start_clnt_auth(_adapter* padapter)
|
||||
void start_clnt_auth(struct adapter* padapter)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -7743,7 +7743,7 @@ void start_clnt_auth(_adapter* padapter)
|
|||
}
|
||||
|
||||
|
||||
void start_clnt_assoc(_adapter* padapter)
|
||||
void start_clnt_assoc(struct adapter* padapter)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -7758,7 +7758,7 @@ void start_clnt_assoc(_adapter* padapter)
|
|||
set_link_timer(pmlmeext, REASSOC_TO);
|
||||
}
|
||||
|
||||
unsigned int receive_disconnect(_adapter *padapter, unsigned char *MacAddr, unsigned short reason)
|
||||
unsigned int receive_disconnect(struct adapter *padapter, unsigned char *MacAddr, unsigned short reason)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -7786,7 +7786,7 @@ unsigned int receive_disconnect(_adapter *padapter, unsigned char *MacAddr, unsi
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
static void process_80211d(PADAPTER padapter, struct wlan_bssid_ex *bssid)
|
||||
static void process_80211d(struct adapter * padapter, struct wlan_bssid_ex *bssid)
|
||||
{
|
||||
struct registry_priv *pregistrypriv;
|
||||
struct mlme_ext_priv *pmlmeext;
|
||||
|
@ -8025,7 +8025,7 @@ Following are the functions to report events
|
|||
|
||||
*****************************************************************************/
|
||||
|
||||
void report_survey_event(_adapter *padapter, union recv_frame *precv_frame)
|
||||
void report_survey_event(struct adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
struct cmd_obj *pcmd_obj;
|
||||
u8 *pevtcmd;
|
||||
|
@ -8088,7 +8088,7 @@ void report_survey_event(_adapter *padapter, union recv_frame *precv_frame)
|
|||
return;
|
||||
}
|
||||
|
||||
void report_surveydone_event(_adapter *padapter)
|
||||
void report_surveydone_event(struct adapter *padapter)
|
||||
{
|
||||
struct cmd_obj *pcmd_obj;
|
||||
u8 *pevtcmd;
|
||||
|
@ -8132,7 +8132,7 @@ void report_surveydone_event(_adapter *padapter)
|
|||
|
||||
}
|
||||
|
||||
void report_join_res(_adapter *padapter, int res)
|
||||
void report_join_res(struct adapter *padapter, int res)
|
||||
{
|
||||
struct cmd_obj *pcmd_obj;
|
||||
u8 *pevtcmd;
|
||||
|
@ -8185,7 +8185,7 @@ void report_join_res(_adapter *padapter, int res)
|
|||
|
||||
}
|
||||
|
||||
void report_del_sta_event(_adapter *padapter, unsigned char* MacAddr, unsigned short reason)
|
||||
void report_del_sta_event(struct adapter *padapter, unsigned char* MacAddr, unsigned short reason)
|
||||
{
|
||||
struct cmd_obj *pcmd_obj;
|
||||
u8 *pevtcmd;
|
||||
|
@ -8243,7 +8243,7 @@ void report_del_sta_event(_adapter *padapter, unsigned char* MacAddr, unsigned s
|
|||
return;
|
||||
}
|
||||
|
||||
void report_add_sta_event(_adapter *padapter, unsigned char* MacAddr, int cam_idx)
|
||||
void report_add_sta_event(struct adapter *padapter, unsigned char* MacAddr, int cam_idx)
|
||||
{
|
||||
struct cmd_obj *pcmd_obj;
|
||||
u8 *pevtcmd;
|
||||
|
@ -8298,7 +8298,7 @@ Following are the event callback functions
|
|||
*****************************************************************************/
|
||||
|
||||
/* for sta/adhoc mode */
|
||||
void update_sta_info(_adapter *padapter, struct sta_info *psta)
|
||||
void update_sta_info(struct adapter *padapter, struct sta_info *psta)
|
||||
{
|
||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -8351,7 +8351,7 @@ void update_sta_info(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
}
|
||||
|
||||
void mlmeext_joinbss_event_callback(_adapter *padapter, int join_res)
|
||||
void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res)
|
||||
{
|
||||
struct sta_info *psta, *psta_bmc;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -8443,7 +8443,7 @@ exit_mlmeext_joinbss_event_callback:
|
|||
|
||||
}
|
||||
|
||||
void mlmeext_sta_add_event_callback(_adapter *padapter, struct sta_info *psta)
|
||||
void mlmeext_sta_add_event_callback(struct adapter *padapter, struct sta_info *psta)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -8493,7 +8493,7 @@ void mlmeext_sta_add_event_callback(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
}
|
||||
|
||||
void mlmeext_sta_del_event_callback(_adapter *padapter)
|
||||
void mlmeext_sta_del_event_callback(struct adapter *padapter)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -8534,8 +8534,8 @@ void mlmeext_sta_del_event_callback(_adapter *padapter)
|
|||
Following are the functions for the timer handlers
|
||||
|
||||
*****************************************************************************/
|
||||
void _linked_rx_signal_strehgth_display(_adapter *padapter);
|
||||
void _linked_rx_signal_strehgth_display(_adapter *padapter)
|
||||
void _linked_rx_signal_strehgth_display(struct adapter *padapter);
|
||||
void _linked_rx_signal_strehgth_display(struct adapter *padapter)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -8557,7 +8557,7 @@ void _linked_rx_signal_strehgth_display(_adapter *padapter)
|
|||
|
||||
}
|
||||
|
||||
static u8 chk_ap_is_alive(_adapter *padapter, struct sta_info *psta)
|
||||
static u8 chk_ap_is_alive(struct adapter *padapter, struct sta_info *psta)
|
||||
{
|
||||
u8 ret = false;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -8576,7 +8576,7 @@ static u8 chk_ap_is_alive(_adapter *padapter, struct sta_info *psta)
|
|||
return ret;
|
||||
}
|
||||
|
||||
void linked_status_chk(_adapter *padapter)
|
||||
void linked_status_chk(struct adapter *padapter)
|
||||
{
|
||||
u32 i;
|
||||
struct sta_info *psta;
|
||||
|
@ -8710,7 +8710,7 @@ void linked_status_chk(_adapter *padapter)
|
|||
|
||||
}
|
||||
|
||||
void survey_timer_hdl(_adapter *padapter)
|
||||
void survey_timer_hdl(struct adapter *padapter)
|
||||
{
|
||||
struct cmd_obj *ph2c;
|
||||
struct sitesurvey_parm *psurveyPara;
|
||||
|
@ -8770,7 +8770,7 @@ exit_survey_timer_hdl:
|
|||
return;
|
||||
}
|
||||
|
||||
void link_timer_hdl(_adapter *padapter)
|
||||
void link_timer_hdl(struct adapter *padapter)
|
||||
{
|
||||
/* static unsigned int rx_pkt = 0; */
|
||||
/* static u64 tx_cnt = 0; */
|
||||
|
@ -8844,12 +8844,12 @@ void addba_timer_hdl(struct sta_info *psta)
|
|||
#endif /* CONFIG_80211N_HT */
|
||||
}
|
||||
|
||||
u8 NULL_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 NULL_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 setopmode_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 setopmode_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
u8 type;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -8883,7 +8883,7 @@ u8 setopmode_hdl(_adapter *padapter, u8 *pbuf)
|
|||
|
||||
}
|
||||
|
||||
u8 createbss_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 createbss_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
@ -8949,7 +8949,7 @@ u8 createbss_hdl(_adapter *padapter, u8 *pbuf)
|
|||
|
||||
}
|
||||
|
||||
u8 join_cmd_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 join_cmd_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
u8 join_type;
|
||||
struct ndis_802_11_var_ie * pIE;
|
||||
|
@ -9079,7 +9079,7 @@ u8 join_cmd_hdl(_adapter *padapter, u8 *pbuf)
|
|||
|
||||
}
|
||||
|
||||
u8 disconnect_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 disconnect_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
struct disconnect_parm *param = (struct disconnect_parm *)pbuf;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -9126,7 +9126,7 @@ u8 disconnect_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
static int rtw_scan_ch_decision(_adapter *padapter, struct rtw_ieee80211_channel *out,
|
||||
static int rtw_scan_ch_decision(struct adapter *padapter, struct rtw_ieee80211_channel *out,
|
||||
u32 out_num, struct rtw_ieee80211_channel *in, u32 in_num)
|
||||
{
|
||||
int i, j;
|
||||
|
@ -9171,7 +9171,7 @@ static int rtw_scan_ch_decision(_adapter *padapter, struct rtw_ieee80211_channel
|
|||
return j;
|
||||
}
|
||||
|
||||
u8 sitesurvey_cmd_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct sitesurvey_parm *pparm = (struct sitesurvey_parm *)pbuf;
|
||||
|
@ -9259,7 +9259,7 @@ u8 sitesurvey_cmd_hdl(_adapter *padapter, u8 *pbuf)
|
|||
|
||||
}
|
||||
|
||||
u8 setauth_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 setauth_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
struct setauth_parm *pparm = (struct setauth_parm *)pbuf;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -9273,7 +9273,7 @@ u8 setauth_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 setkey_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 setkey_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
unsigned short ctrl;
|
||||
struct setkey_parm *pparm = (struct setkey_parm *)pbuf;
|
||||
|
@ -9295,7 +9295,7 @@ u8 setkey_hdl(_adapter *padapter, u8 *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 set_stakey_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 set_stakey_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
u16 ctrl=0;
|
||||
u8 cam_id;/* cam_entry */
|
||||
|
@ -9381,7 +9381,7 @@ u8 set_stakey_hdl(_adapter *padapter, u8 *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 add_ba_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 add_ba_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
struct addBaReq_parm *pparm = (struct addBaReq_parm *)pbuf;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
|
@ -9409,7 +9409,7 @@ u8 add_ba_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 set_tx_beacon_cmd(_adapter* padapter)
|
||||
u8 set_tx_beacon_cmd(struct adapter* padapter)
|
||||
{
|
||||
struct cmd_obj *ph2c;
|
||||
struct Tx_Beacon_param *ptxBeacon_parm;
|
||||
|
@ -9455,12 +9455,12 @@ _func_exit_;
|
|||
return res;
|
||||
}
|
||||
|
||||
u8 mlme_evt_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
u8 evt_code;
|
||||
u16 evt_sz;
|
||||
uint *peventbuf;
|
||||
void (*event_callback)(_adapter *dev, u8 *pbuf);
|
||||
void (*event_callback)(struct adapter *dev, u8 *pbuf);
|
||||
struct evt_priv *pevt_priv = &(padapter->evtpriv);
|
||||
|
||||
peventbuf = (uint*)pbuf;
|
||||
|
@ -9505,7 +9505,7 @@ _abort_event_:
|
|||
|
||||
}
|
||||
|
||||
u8 h2c_msg_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 h2c_msg_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
if (!pbuf)
|
||||
return H2C_PARAMETERS_ERROR;
|
||||
|
@ -9513,7 +9513,7 @@ u8 h2c_msg_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 tx_beacon_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
if (send_beacon(padapter)==_FAIL)
|
||||
{
|
||||
|
@ -9577,7 +9577,7 @@ u8 tx_beacon_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 set_ch_hdl(_adapter *padapter, u8 *pbuf)
|
||||
u8 set_ch_hdl(struct adapter *padapter, u8 *pbuf)
|
||||
{
|
||||
struct set_ch_parm *set_ch_parm;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
@ -9601,7 +9601,7 @@ u8 set_ch_hdl(_adapter *padapter, u8 *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 set_chplan_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 set_chplan_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
struct SetChannelPlan_param *setChannelPlan_param;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
@ -9618,14 +9618,14 @@ u8 set_chplan_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 led_blink_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 led_blink_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
if (!pbuf)
|
||||
return H2C_PARAMETERS_ERROR;
|
||||
return H2C_SUCCESS;
|
||||
}
|
||||
|
||||
u8 set_csa_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 set_csa_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
return H2C_REJECTED;
|
||||
|
||||
|
@ -9644,7 +9644,7 @@ u8 set_csa_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
/* TDLS_CKALV_PH1 : check alive timer phase1 */
|
||||
/* TDLS_CKALV_PH2 : check alive timer phase2 */
|
||||
/* TDLS_FREE_STA : free tdls sta */
|
||||
u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
|
||||
u8 tdls_hdl(struct adapter *padapter, unsigned char *pbuf)
|
||||
{
|
||||
return H2C_REJECTED;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue