staging: r8188eu: remove issue_probereq_p2p_ex()
Function issue_probereq_p2p_ex() is not used, remove it. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210922200420.9693-15-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
3d955b533a
Коммит
e71ad25ee1
|
@ -3690,43 +3690,6 @@ inline void issue_probereq_p2p(struct adapter *adapter, u8 *da)
|
||||||
_issue_probereq_p2p(adapter, da, false);
|
_issue_probereq_p2p(adapter, da, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
int issue_probereq_p2p_ex(struct adapter *adapter, u8 *da, int try_cnt, int wait_ms)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
int i = 0;
|
|
||||||
u32 start = jiffies;
|
|
||||||
|
|
||||||
do {
|
|
||||||
ret = _issue_probereq_p2p(adapter, da, wait_ms > 0);
|
|
||||||
|
|
||||||
i++;
|
|
||||||
|
|
||||||
if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (i < try_cnt && wait_ms > 0 && ret == _FAIL)
|
|
||||||
msleep(wait_ms);
|
|
||||||
} while ((i < try_cnt) && ((ret == _FAIL) || (wait_ms == 0)));
|
|
||||||
|
|
||||||
if (ret != _FAIL) {
|
|
||||||
ret = _SUCCESS;
|
|
||||||
goto exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (try_cnt && wait_ms) {
|
|
||||||
if (da)
|
|
||||||
DBG_88E(FUNC_ADPT_FMT" to %pM, ch:%u%s, %d/%d in %u ms\n",
|
|
||||||
FUNC_ADPT_ARG(adapter), da, rtw_get_oper_ch(adapter),
|
|
||||||
ret == _SUCCESS ? ", acked" : "", i, try_cnt, rtw_get_passing_time_ms(start));
|
|
||||||
else
|
|
||||||
DBG_88E(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
|
|
||||||
FUNC_ADPT_ARG(adapter), rtw_get_oper_ch(adapter),
|
|
||||||
ret == _SUCCESS ? ", acked" : "", i, try_cnt, rtw_get_passing_time_ms(start));
|
|
||||||
}
|
|
||||||
exit:
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static s32 rtw_action_public_decache(struct recv_frame *recv_frame, s32 token)
|
static s32 rtw_action_public_decache(struct recv_frame *recv_frame, s32 token)
|
||||||
{
|
{
|
||||||
struct adapter *adapter = recv_frame->adapter;
|
struct adapter *adapter = recv_frame->adapter;
|
||||||
|
|
|
@ -541,8 +541,6 @@ void issue_p2p_provision_request(struct adapter *padapter, u8 *pssid,
|
||||||
u8 ussidlen, u8 *pdev_raddr);
|
u8 ussidlen, u8 *pdev_raddr);
|
||||||
void issue_p2p_GO_request(struct adapter *padapter, u8 *raddr);
|
void issue_p2p_GO_request(struct adapter *padapter, u8 *raddr);
|
||||||
void issue_probereq_p2p(struct adapter *padapter, u8 *da);
|
void issue_probereq_p2p(struct adapter *padapter, u8 *da);
|
||||||
int issue_probereq_p2p_ex(struct adapter *adapter, u8 *da, int try_cnt,
|
|
||||||
int wait_ms);
|
|
||||||
void issue_p2p_invitation_response(struct adapter *padapter, u8 *raddr,
|
void issue_p2p_invitation_response(struct adapter *padapter, u8 *raddr,
|
||||||
u8 dialogToken, u8 success);
|
u8 dialogToken, u8 success);
|
||||||
void issue_p2p_invitation_request(struct adapter *padapter, u8* raddr);
|
void issue_p2p_invitation_request(struct adapter *padapter, u8* raddr);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче