Commit 9cd613c7 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove FUNC_ADPT_{FMT,ARG}

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc24abd4
...@@ -380,11 +380,6 @@ u8 rtw_sitesurvey_cmd23a(struct rtw_adapter *padapter, ...@@ -380,11 +380,6 @@ u8 rtw_sitesurvey_cmd23a(struct rtw_adapter *padapter,
memcpy(&psurveyPara->ssid[i], &ssid[i], memcpy(&psurveyPara->ssid[i], &ssid[i],
sizeof(struct cfg80211_ssid)); sizeof(struct cfg80211_ssid));
psurveyPara->ssid_num++; psurveyPara->ssid_num++;
if (0)
DBG_8723A(FUNC_ADPT_FMT" ssid:(%s, %d)\n",
FUNC_ADPT_ARG(padapter),
psurveyPara->ssid[i].ssid,
psurveyPara->ssid[i].ssid_len);
} }
} }
} }
...@@ -398,10 +393,6 @@ u8 rtw_sitesurvey_cmd23a(struct rtw_adapter *padapter, ...@@ -398,10 +393,6 @@ u8 rtw_sitesurvey_cmd23a(struct rtw_adapter *padapter,
memcpy(&psurveyPara->ch[i], &ch[i], memcpy(&psurveyPara->ch[i], &ch[i],
sizeof(struct rtw_ieee80211_channel)); sizeof(struct rtw_ieee80211_channel));
psurveyPara->ch_num++; psurveyPara->ch_num++;
if (0)
DBG_8723A(FUNC_ADPT_FMT" ch:%u\n",
FUNC_ADPT_ARG(padapter),
psurveyPara->ch[i].hw_value);
} }
} }
} }
......
...@@ -406,8 +406,8 @@ u8 rtw_set_802_11_bssid23a_list_scan(struct rtw_adapter *padapter, ...@@ -406,8 +406,8 @@ u8 rtw_set_802_11_bssid23a_list_scan(struct rtw_adapter *padapter,
} }
} else { } else {
if (rtw_is_scan_deny(padapter)) { if (rtw_is_scan_deny(padapter)) {
DBG_8723A(FUNC_ADPT_FMT": scan deny\n", DBG_8723A("%s(%s): scan deny\n",
FUNC_ADPT_ARG(padapter)); __func__, padapter->pnetdev->name);
return _SUCCESS; return _SUCCESS;
} }
......
...@@ -1600,7 +1600,7 @@ void rtw_scan_timeout_handler23a(unsigned long data) ...@@ -1600,7 +1600,7 @@ void rtw_scan_timeout_handler23a(unsigned long data)
struct rtw_adapter *adapter = (struct rtw_adapter *)data; struct rtw_adapter *adapter = (struct rtw_adapter *)data;
struct mlme_priv *pmlmepriv = &adapter->mlmepriv; struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
DBG_8723A(FUNC_ADPT_FMT" fw_state =%x\n", FUNC_ADPT_ARG(adapter), DBG_8723A("%s(%s): fw_state =%x\n", __func__, adapter->pnetdev->name,
get_fwstate(pmlmepriv)); get_fwstate(pmlmepriv));
spin_lock_bh(&pmlmepriv->lock); spin_lock_bh(&pmlmepriv->lock);
......
...@@ -2086,17 +2086,17 @@ static s32 rtw_action_public_decache(struct recv_frame *recv_frame, s32 token) ...@@ -2086,17 +2086,17 @@ static s32 rtw_action_public_decache(struct recv_frame *recv_frame, s32 token)
if (token >= 0) { if (token >= 0) {
if ((seq_ctrl == mlmeext->action_public_rxseq) && if ((seq_ctrl == mlmeext->action_public_rxseq) &&
(token == mlmeext->action_public_dialog_token)) { (token == mlmeext->action_public_dialog_token)) {
DBG_8723A(FUNC_ADPT_FMT" seq_ctrl = 0x%x, " DBG_8723A("%s(%s): seq_ctrl = 0x%x, "
"rxseq = 0x%x, token:%d\n", "rxseq = 0x%x, token:%d\n", __func__,
FUNC_ADPT_ARG(adapter), seq_ctrl, adapter->pnetdev->name, seq_ctrl,
mlmeext->action_public_rxseq, token); mlmeext->action_public_rxseq, token);
return _FAIL; return _FAIL;
} }
} else { } else {
if (seq_ctrl == mlmeext->action_public_rxseq) { if (seq_ctrl == mlmeext->action_public_rxseq) {
DBG_8723A(FUNC_ADPT_FMT" seq_ctrl = 0x%x, " DBG_8723A("%s(%s): seq_ctrl = 0x%x, "
"rxseq = 0x%x\n", "rxseq = 0x%x\n", __func__,
FUNC_ADPT_ARG(adapter), seq_ctrl, adapter->pnetdev->name, seq_ctrl,
mlmeext->action_public_rxseq); mlmeext->action_public_rxseq);
return _FAIL; return _FAIL;
} }
...@@ -2257,15 +2257,15 @@ struct xmit_frame *alloc_mgtxmitframe23a(struct xmit_priv *pxmitpriv) ...@@ -2257,15 +2257,15 @@ struct xmit_frame *alloc_mgtxmitframe23a(struct xmit_priv *pxmitpriv)
pmgntframe = rtw_alloc_xmitframe23a_ext(pxmitpriv); pmgntframe = rtw_alloc_xmitframe23a_ext(pxmitpriv);
if (!pmgntframe) { if (!pmgntframe) {
DBG_8723A(FUNC_ADPT_FMT" alloc xmitframe fail\n", DBG_8723A("%s(%s): alloc xmitframe fail\n", __func__,
FUNC_ADPT_ARG(pxmitpriv->adapter)); pxmitpriv->adapter->pnetdev->name);
goto exit; goto exit;
} }
pxmitbuf = rtw_alloc_xmitbuf23a_ext(pxmitpriv); pxmitbuf = rtw_alloc_xmitbuf23a_ext(pxmitpriv);
if (!pxmitbuf) { if (!pxmitbuf) {
DBG_8723A(FUNC_ADPT_FMT" alloc xmitbuf fail\n", DBG_8723A("%s(%s): alloc xmitbuf fail\n", __func__,
FUNC_ADPT_ARG(pxmitpriv->adapter)); pxmitpriv->adapter->pnetdev->name);
rtw_free_xmitframe23a(pxmitpriv, pmgntframe); rtw_free_xmitframe23a(pxmitpriv, pmgntframe);
pmgntframe = NULL; pmgntframe = NULL;
goto exit; goto exit;
...@@ -2719,9 +2719,9 @@ void issue_probersp23a(struct rtw_adapter *padapter, unsigned char *da, ...@@ -2719,9 +2719,9 @@ void issue_probersp23a(struct rtw_adapter *padapter, unsigned char *da,
remainder_ie = ssid_ie + 2; remainder_ie = ssid_ie + 2;
remainder_ielen = pframe - remainder_ie; remainder_ielen = pframe - remainder_ie;
DBG_8723A_LEVEL(_drv_warning_, FUNC_ADPT_FMT DBG_8723A_LEVEL(_drv_warning_, "%s(%s): "
" remainder_ielen > MAX_IE_SZ\n", "remainder_ielen > MAX_IE_SZ\n",
FUNC_ADPT_ARG(padapter)); __func__, padapter->pnetdev->name);
if (remainder_ielen > MAX_IE_SZ) if (remainder_ielen > MAX_IE_SZ)
remainder_ielen = MAX_IE_SZ; remainder_ielen = MAX_IE_SZ;
...@@ -2947,14 +2947,15 @@ int issue_probereq23a_ex23a(struct rtw_adapter *padapter, ...@@ -2947,14 +2947,15 @@ int issue_probereq23a_ex23a(struct rtw_adapter *padapter,
if (try_cnt && wait_ms) { if (try_cnt && wait_ms) {
if (da) if (da)
DBG_8723A(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d " DBG_8723A("%s(%s): to "MAC_FMT", ch:%u%s, %d/%d "
"in %u ms\n", FUNC_ADPT_ARG(padapter), "in %u ms\n", __func__,
padapter->pnetdev->name,
MAC_ARG(da), rtw_get_oper_ch23a(padapter), MAC_ARG(da), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
else else
DBG_8723A(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n", DBG_8723A("%s(%s):, ch:%u%s, %d/%d in %u ms\n",
FUNC_ADPT_ARG(padapter), __func__, padapter->pnetdev->name,
rtw_get_oper_ch23a(padapter), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
...@@ -3646,14 +3647,15 @@ int issue_nulldata23a(struct rtw_adapter *padapter, unsigned char *da, ...@@ -3646,14 +3647,15 @@ int issue_nulldata23a(struct rtw_adapter *padapter, unsigned char *da,
if (try_cnt && wait_ms) { if (try_cnt && wait_ms) {
if (da) if (da)
DBG_8723A(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d " DBG_8723A("%s(%s): to "MAC_FMT", ch:%u%s, %d/%d "
"in %u ms\n", FUNC_ADPT_ARG(padapter), "in %u ms\n", __func__,
padapter->pnetdev->name,
MAC_ARG(da), rtw_get_oper_ch23a(padapter), MAC_ARG(da), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
else else
DBG_8723A(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n", DBG_8723A("%s(%s):, ch:%u%s, %d/%d in %u ms\n",
FUNC_ADPT_ARG(padapter), __func__, padapter->pnetdev->name,
rtw_get_oper_ch23a(padapter), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
...@@ -3775,14 +3777,15 @@ int issue_qos_nulldata23a(struct rtw_adapter *padapter, unsigned char *da, ...@@ -3775,14 +3777,15 @@ int issue_qos_nulldata23a(struct rtw_adapter *padapter, unsigned char *da,
if (try_cnt && wait_ms) { if (try_cnt && wait_ms) {
if (da) if (da)
DBG_8723A(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d " DBG_8723A("%s(%s): to "MAC_FMT", ch:%u%s, %d/%d "
"in %u ms\n", FUNC_ADPT_ARG(padapter), "in %u ms\n", __func__,
padapter->pnetdev->name,
MAC_ARG(da), rtw_get_oper_ch23a(padapter), MAC_ARG(da), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
else else
DBG_8723A(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n", DBG_8723A("%s(%s):, ch:%u%s, %d/%d in %u ms\n",
FUNC_ADPT_ARG(padapter), __func__, padapter->pnetdev->name,
rtw_get_oper_ch23a(padapter), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
...@@ -3886,14 +3889,15 @@ int issue_deauth23a_ex23a(struct rtw_adapter *padapter, u8 *da, ...@@ -3886,14 +3889,15 @@ int issue_deauth23a_ex23a(struct rtw_adapter *padapter, u8 *da,
if (try_cnt && wait_ms) { if (try_cnt && wait_ms) {
if (da) if (da)
DBG_8723A(FUNC_ADPT_FMT" to "MAC_FMT", ch:%u%s, %d/%d " DBG_8723A("%s(%s): to "MAC_FMT", ch:%u%s, %d/%d "
"in %u ms\n", FUNC_ADPT_ARG(padapter), "in %u ms\n", __func__,
padapter->pnetdev->name,
MAC_ARG(da), rtw_get_oper_ch23a(padapter), MAC_ARG(da), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
else else
DBG_8723A(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n", DBG_8723A("%s(%s):, ch:%u%s, %d/%d in %u ms\n",
FUNC_ADPT_ARG(padapter), __func__, padapter->pnetdev->name,
rtw_get_oper_ch23a(padapter), rtw_get_oper_ch23a(padapter),
ret == _SUCCESS?", acked":"", i, try_cnt, ret == _SUCCESS?", acked":"", i, try_cnt,
jiffies_to_msecs(jiffies - start)); jiffies_to_msecs(jiffies - start));
...@@ -5618,8 +5622,10 @@ void linked_status_chk23a(struct rtw_adapter *padapter) ...@@ -5618,8 +5622,10 @@ void linked_status_chk23a(struct rtw_adapter *padapter)
if (rx_chk == _FAIL) { if (rx_chk == _FAIL) {
pmlmeext->retry++; pmlmeext->retry++;
if (pmlmeext->retry > rx_chk_limit) { if (pmlmeext->retry > rx_chk_limit) {
DBG_8723A_LEVEL(_drv_always_, FUNC_ADPT_FMT" disconnect or roaming\n", DBG_8723A_LEVEL(_drv_always_,
FUNC_ADPT_ARG(padapter)); "%s(%s): disconnect or "
"roaming\n", __func__,
padapter->pnetdev->name);
receive_disconnect23a(padapter, pmlmeinfo->network.MacAddress, receive_disconnect23a(padapter, pmlmeinfo->network.MacAddress,
WLAN_REASON_EXPIRATION_CHK); WLAN_REASON_EXPIRATION_CHK);
return; return;
...@@ -6083,8 +6089,6 @@ rtw_scan_ch_decision(struct rtw_adapter *padapter, ...@@ -6083,8 +6089,6 @@ rtw_scan_ch_decision(struct rtw_adapter *padapter,
/* acquire channels from in */ /* acquire channels from in */
j = 0; j = 0;
for (i = 0;i<in_num;i++) { for (i = 0;i<in_num;i++) {
if (0)
DBG_8723A(FUNC_ADPT_FMT" "CHAN_FMT"\n", FUNC_ADPT_ARG(padapter), CHAN_ARG(&in[i]));
if (in[i].hw_value && !(in[i].flags & IEEE80211_CHAN_DISABLED) if (in[i].hw_value && !(in[i].flags & IEEE80211_CHAN_DISABLED)
&& (set_idx = rtw_ch_set_search_ch23a(pmlmeext->channel_set, in[i].hw_value)) >= 0 && (set_idx = rtw_ch_set_search_ch23a(pmlmeext->channel_set, in[i].hw_value)) >= 0
) )
......
...@@ -157,17 +157,24 @@ static void sreset_restore_network_status(struct rtw_adapter *padapter) ...@@ -157,17 +157,24 @@ static void sreset_restore_network_status(struct rtw_adapter *padapter)
struct mlme_priv *mlmepriv = &padapter->mlmepriv; struct mlme_priv *mlmepriv = &padapter->mlmepriv;
if (check_fwstate(mlmepriv, WIFI_STATION_STATE)) { if (check_fwstate(mlmepriv, WIFI_STATION_STATE)) {
DBG_8723A(FUNC_ADPT_FMT" fwstate:0x%08x - WIFI_STATION_STATE\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv)); DBG_8723A("%s(%s): fwstate:0x%08x - WIFI_STATION_STATE\n",
__func__, padapter->pnetdev->name,
get_fwstate(mlmepriv));
sreset_restore_network_station(padapter); sreset_restore_network_station(padapter);
#ifdef CONFIG_8723AU_AP_MODE #ifdef CONFIG_8723AU_AP_MODE
} else if (check_fwstate(mlmepriv, WIFI_AP_STATE)) { } else if (check_fwstate(mlmepriv, WIFI_AP_STATE)) {
DBG_8723A(FUNC_ADPT_FMT" fwstate:0x%08x - WIFI_AP_STATE\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv)); DBG_8723A("%s(%s): fwstate:0x%08x - WIFI_AP_STATE\n",
__func__, padapter->pnetdev->name,
get_fwstate(mlmepriv));
rtw_ap_restore_network(padapter); rtw_ap_restore_network(padapter);
#endif #endif
} else if (check_fwstate(mlmepriv, WIFI_ADHOC_STATE)) { } else if (check_fwstate(mlmepriv, WIFI_ADHOC_STATE)) {
DBG_8723A(FUNC_ADPT_FMT" fwstate:0x%08x - WIFI_ADHOC_STATE\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv)); DBG_8723A("%s(%s): fwstate:0x%08x - WIFI_ADHOC_STATE\n",
__func__, padapter->pnetdev->name,
get_fwstate(mlmepriv));
} else { } else {
DBG_8723A(FUNC_ADPT_FMT" fwstate:0x%08x - ???\n", FUNC_ADPT_ARG(padapter), get_fwstate(mlmepriv)); DBG_8723A("%s(%s): fwstate:0x%08x - ???\n", __func__,
padapter->pnetdev->name, get_fwstate(mlmepriv));
} }
} }
...@@ -179,7 +186,7 @@ static void sreset_stop_adapter(struct rtw_adapter *padapter) ...@@ -179,7 +186,7 @@ static void sreset_stop_adapter(struct rtw_adapter *padapter)
if (padapter == NULL) if (padapter == NULL)
return; return;
DBG_8723A(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter)); DBG_8723A("%s(%s)\n", __func__, padapter->pnetdev->name);
if (!rtw_netif_queue_stopped(padapter->pnetdev)) if (!rtw_netif_queue_stopped(padapter->pnetdev))
netif_tx_stop_all_queues(padapter->pnetdev); netif_tx_stop_all_queues(padapter->pnetdev);
...@@ -204,7 +211,7 @@ static void sreset_start_adapter(struct rtw_adapter *padapter) ...@@ -204,7 +211,7 @@ static void sreset_start_adapter(struct rtw_adapter *padapter)
if (padapter == NULL) if (padapter == NULL)
return; return;
DBG_8723A(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter)); DBG_8723A("%s(%s)\n", __func__, padapter->pnetdev->name);
if (check_fwstate(pmlmepriv, _FW_LINKED)) { if (check_fwstate(pmlmepriv, _FW_LINKED)) {
sreset_restore_network_status(padapter); sreset_restore_network_status(padapter);
......
...@@ -141,8 +141,6 @@ void _rtw_init_queue23a(struct rtw_queue *pqueue); ...@@ -141,8 +141,6 @@ void _rtw_init_queue23a(struct rtw_queue *pqueue);
#define ADPT_ARG(adapter) adapter->pnetdev->name #define ADPT_ARG(adapter) adapter->pnetdev->name
#define FUNC_NDEV_FMT "%s(%s)" #define FUNC_NDEV_FMT "%s(%s)"
#define FUNC_NDEV_ARG(ndev) __func__, ndev->name #define FUNC_NDEV_ARG(ndev) __func__, ndev->name
#define FUNC_ADPT_FMT "%s(%s)"
#define FUNC_ADPT_ARG(adapter) __func__, adapter->pnetdev->name
/* Macros for handling unaligned memory accesses */ /* Macros for handling unaligned memory accesses */
......
...@@ -646,8 +646,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, ...@@ -646,8 +646,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev,
if (!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) { /* group key */ if (!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) { /* group key */
if (param->u.crypt.set_tx == 0) { /* group key */ if (param->u.crypt.set_tx == 0) { /* group key */
if (strcmp(param->u.crypt.alg, "WEP") == 0) { if (strcmp(param->u.crypt.alg, "WEP") == 0) {
DBG_8723A("%s, set group_key, WEP\n", DBG_8723A("%s, set group_key, WEP\n", __func__);
__func__);
memcpy(psecuritypriv-> memcpy(psecuritypriv->
dot118021XGrpKey[param->u.crypt.idx]. dot118021XGrpKey[param->u.crypt.idx].
...@@ -1451,7 +1450,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, ...@@ -1451,7 +1450,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy,
struct cfg80211_ssid *ssids = request->ssids; struct cfg80211_ssid *ssids = request->ssids;
bool need_indicate_scan_done = false; bool need_indicate_scan_done = false;
DBG_8723A(FUNC_ADPT_FMT "\n", FUNC_ADPT_ARG(padapter)); DBG_8723A("%s(%s):\n", __func__, padapter->pnetdev->name);
spin_lock_bh(&pwdev_priv->scan_req_lock); spin_lock_bh(&pwdev_priv->scan_req_lock);
pwdev_priv->scan_request = request; pwdev_priv->scan_request = request;
...@@ -1480,8 +1479,8 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, ...@@ -1480,8 +1479,8 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy,
goto check_need_indicate_scan_done; goto check_need_indicate_scan_done;
} }
if (rtw_is_scan_deny(padapter)) { if (rtw_is_scan_deny(padapter)) {
DBG_8723A(FUNC_ADPT_FMT ": scan deny\n", DBG_8723A("%s(%s): scan deny\n", __func__,
FUNC_ADPT_ARG(padapter)); padapter->pnetdev->name);
need_indicate_scan_done = true; need_indicate_scan_done = true;
goto check_need_indicate_scan_done; goto check_need_indicate_scan_done;
} }
...@@ -1509,8 +1508,8 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, ...@@ -1509,8 +1508,8 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy,
if (request->n_channels == 1) { if (request->n_channels == 1) {
for (i = 0; i < request->n_channels && for (i = 0; i < request->n_channels &&
i < RTW_CHANNEL_SCAN_AMOUNT; i++) { i < RTW_CHANNEL_SCAN_AMOUNT; i++) {
DBG_8723A(FUNC_ADPT_FMT CHAN_FMT "\n", DBG_8723A("%s:(%s):" CHAN_FMT "\n",
FUNC_ADPT_ARG(padapter), __func__, padapter->pnetdev->name,
CHAN_ARG(request->channels[i])); CHAN_ARG(request->channels[i]));
ch[i].hw_value = request->channels[i]->hw_value; ch[i].hw_value = request->channels[i]->hw_value;
ch[i].flags = request->channels[i]->flags; ch[i].flags = request->channels[i]->flags;
...@@ -2551,23 +2550,23 @@ static int rtw_cfg80211_add_monitor_if(struct rtw_adapter *padapter, char *name, ...@@ -2551,23 +2550,23 @@ static int rtw_cfg80211_add_monitor_if(struct rtw_adapter *padapter, char *name,
struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev); struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
if (!name) { if (!name) {
DBG_8723A(FUNC_ADPT_FMT " without specific name\n", DBG_8723A("%s(%s): without specific name\n",
FUNC_ADPT_ARG(padapter)); __func__, padapter->pnetdev->name);
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
} }
if (pwdev_priv->pmon_ndev) { if (pwdev_priv->pmon_ndev) {
DBG_8723A(FUNC_ADPT_FMT " monitor interface exist: %s\n", DBG_8723A("%s(%s): monitor interface exist: %s\n", __func__,
FUNC_ADPT_ARG(padapter), pwdev_priv->pmon_ndev->name); padapter->pnetdev->name, pwdev_priv->pmon_ndev->name);
ret = -EBUSY; ret = -EBUSY;
goto out; goto out;
} }
mon_ndev = alloc_etherdev(sizeof(struct rtw_adapter)); mon_ndev = alloc_etherdev(sizeof(struct rtw_adapter));
if (!mon_ndev) { if (!mon_ndev) {
DBG_8723A(FUNC_ADPT_FMT " allocate ndev fail\n", DBG_8723A("%s(%s): allocate ndev fail\n", __func__,
FUNC_ADPT_ARG(padapter)); padapter->pnetdev->name);
ret = -ENOMEM; ret = -ENOMEM;
goto out; goto out;
} }
...@@ -2582,8 +2581,8 @@ static int rtw_cfg80211_add_monitor_if(struct rtw_adapter *padapter, char *name, ...@@ -2582,8 +2581,8 @@ static int rtw_cfg80211_add_monitor_if(struct rtw_adapter *padapter, char *name,
/* wdev */ /* wdev */
mon_wdev = kzalloc(sizeof(struct wireless_dev), GFP_KERNEL); mon_wdev = kzalloc(sizeof(struct wireless_dev), GFP_KERNEL);
if (!mon_wdev) { if (!mon_wdev) {
DBG_8723A(FUNC_ADPT_FMT " allocate mon_wdev fail\n", DBG_8723A("%s(%s): allocate mon_wdev fail\n", __func__,
FUNC_ADPT_ARG(padapter)); padapter->pnetdev->name);
ret = -ENOMEM; ret = -ENOMEM;
goto out; goto out;
} }
...@@ -2624,8 +2623,8 @@ cfg80211_rtw_add_virtual_intf(struct wiphy *wiphy, const char *name, ...@@ -2624,8 +2623,8 @@ cfg80211_rtw_add_virtual_intf(struct wiphy *wiphy, const char *name,
struct net_device *ndev = NULL; struct net_device *ndev = NULL;
struct rtw_adapter *padapter = wiphy_to_adapter(wiphy); struct rtw_adapter *padapter = wiphy_to_adapter(wiphy);
DBG_8723A(FUNC_ADPT_FMT " wiphy:%s, name:%s, type:%d\n", DBG_8723A("%s(%s): wiphy:%s, name:%s, type:%d\n", __func__,
FUNC_ADPT_ARG(padapter), wiphy_name(wiphy), name, type); padapter->pnetdev->name, wiphy_name(wiphy), name, type);
switch (type) { switch (type) {
case NL80211_IFTYPE_ADHOC: case NL80211_IFTYPE_ADHOC:
...@@ -2654,7 +2653,8 @@ cfg80211_rtw_add_virtual_intf(struct wiphy *wiphy, const char *name, ...@@ -2654,7 +2653,8 @@ cfg80211_rtw_add_virtual_intf(struct wiphy *wiphy, const char *name,
break; break;
} }
DBG_8723A(FUNC_ADPT_FMT " ndev:%p, ret:%d\n", FUNC_ADPT_ARG(padapter), DBG_8723A("%s(%s): ndev:%p, ret:%d\n", __func__,
padapter->pnetdev->name,
ndev, ret); ndev, ret);
return ndev ? ndev->ieee80211_ptr : ERR_PTR(ret); return ndev ? ndev->ieee80211_ptr : ERR_PTR(ret);
...@@ -2757,29 +2757,12 @@ static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev, ...@@ -2757,29 +2757,12 @@ static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev,
struct wlan_bssid_ex *pbss_network_ext = struct wlan_bssid_ex *pbss_network_ext =
&adapter->mlmeextpriv.mlmext_info.network; &adapter->mlmeextpriv.mlmext_info.network;
if (0)
DBG_8723A(FUNC_ADPT_FMT
" ssid:(%s,%d), from ie:(%s,%d)\n",
FUNC_ADPT_ARG(adapter), settings->ssid,
(int)settings->ssid_len,
pbss_network->Ssid.ssid,
pbss_network->Ssid.ssid_len);
memcpy(pbss_network->Ssid.ssid, (void *)settings->ssid, memcpy(pbss_network->Ssid.ssid, (void *)settings->ssid,
settings->ssid_len); settings->ssid_len);
pbss_network->Ssid.ssid_len = settings->ssid_len; pbss_network->Ssid.ssid_len = settings->ssid_len;
memcpy(pbss_network_ext->Ssid.ssid, (void *)settings->ssid, memcpy(pbss_network_ext->Ssid.ssid, (void *)settings->ssid,
settings->ssid_len); settings->ssid_len);
pbss_network_ext->Ssid.ssid_len = settings->ssid_len; pbss_network_ext->Ssid.ssid_len = settings->ssid_len;
if (0)
DBG_8723A(FUNC_ADPT_FMT
" after ssid:(%s,%d), (%s,%d)\n",
FUNC_ADPT_ARG(adapter),
pbss_network->Ssid.ssid,
pbss_network->Ssid.ssid_len,
pbss_network_ext->Ssid.ssid,
pbss_network_ext->Ssid.ssid_len);
} }
return ret; return ret;
...@@ -3102,16 +3085,16 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -3102,16 +3085,16 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
/* cookie generation */ /* cookie generation */
*cookie = (unsigned long)buf; *cookie = (unsigned long)buf;
DBG_8723A(FUNC_ADPT_FMT " len =%zu, ch =%d" DBG_8723A("%s(%s): len =%zu, ch =%d\n", __func__,
"\n", FUNC_ADPT_ARG(padapter), len, tx_ch); padapter->pnetdev->name, len, tx_ch);
/* indicate ack before issue frame to avoid racing with rsp frame */ /* indicate ack before issue frame to avoid racing with rsp frame */
rtw_cfg80211_mgmt_tx_status(padapter, *cookie, buf, len, ack, rtw_cfg80211_mgmt_tx_status(padapter, *cookie, buf, len, ack,
GFP_KERNEL); GFP_KERNEL);
if (rtw_action_frame_parse23a(buf, len, &category, &action) == false) { if (rtw_action_frame_parse23a(buf, len, &category, &action) == false) {
DBG_8723A(FUNC_ADPT_FMT " frame_control:0x%x\n", DBG_8723A("%s(%s): frame_control:0x%x\n", __func__,
FUNC_ADPT_ARG(padapter), padapter->pnetdev->name,
le16_to_cpu(hdr->frame_control)); le16_to_cpu(hdr->frame_control));
goto exit; goto exit;
} }
...@@ -3130,8 +3113,8 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -3130,8 +3113,8 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
} while (dump_cnt < dump_limit && tx_ret != _SUCCESS); } while (dump_cnt < dump_limit && tx_ret != _SUCCESS);
if (tx_ret != _SUCCESS || dump_cnt > 1) { if (tx_ret != _SUCCESS || dump_cnt > 1) {
DBG_8723A(FUNC_ADPT_FMT " %s (%d/%d) in %d ms\n", DBG_8723A("%s(%s): %s (%d/%d) in %d ms\n",
FUNC_ADPT_ARG(padapter), __func__, padapter->pnetdev->name,
tx_ret == _SUCCESS ? "OK" : "FAIL", dump_cnt, tx_ret == _SUCCESS ? "OK" : "FAIL", dump_cnt,
dump_limit, jiffies_to_msecs(jiffies - start)); dump_limit, jiffies_to_msecs(jiffies - start));
} }
...@@ -3143,9 +3126,9 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -3143,9 +3126,9 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
case P2P_INVIT_RESP: case P2P_INVIT_RESP:
if (pwdev_priv->invit_info.flags & BIT(0) if (pwdev_priv->invit_info.flags & BIT(0)
&& pwdev_priv->invit_info.status == 0) { && pwdev_priv->invit_info.status == 0) {
DBG_8723A(FUNC_ADPT_FMT " agree with invitation of " DBG_8723A("%s(%s): agree with invitation of "
"persistent group\n", "persistent group\n",
FUNC_ADPT_ARG(padapter)); __func__, padapter->pnetdev->name);
rtw_set_scan_deny(padapter, 5000); rtw_set_scan_deny(padapter, 5000);
rtw_pwr_wakeup_ex(padapter, 5000); rtw_pwr_wakeup_ex(padapter, 5000);
rtw_clear_scan_deny(padapter); rtw_clear_scan_deny(padapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment