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

staging: rtl8723au: Get rid of FUNC_NDEV_{FMT,ARG}

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9cd613c7
...@@ -1778,8 +1778,8 @@ int rtw_ap_inform_ch_switch23a (struct rtw_adapter *padapter, u8 new_ch, u8 ch_o ...@@ -1778,8 +1778,8 @@ int rtw_ap_inform_ch_switch23a (struct rtw_adapter *padapter, u8 new_ch, u8 ch_o
if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE) if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
return ret; return ret;
DBG_8723A(FUNC_NDEV_FMT" with ch:%u, offset:%u\n", DBG_8723A("%s(%s): with ch:%u, offset:%u\n", __func__,
FUNC_NDEV_ARG(padapter->pnetdev), new_ch, ch_offset); padapter->pnetdev->name, new_ch, ch_offset);
spin_lock_bh(&pstapriv->asoc_list_lock); spin_lock_bh(&pstapriv->asoc_list_lock);
phead = &pstapriv->asoc_list; phead = &pstapriv->asoc_list;
...@@ -1810,7 +1810,7 @@ int rtw_sta_flush23a(struct rtw_adapter *padapter) ...@@ -1810,7 +1810,7 @@ int rtw_sta_flush23a(struct rtw_adapter *padapter)
struct sta_info *chk_alive_list[NUM_STA]; struct sta_info *chk_alive_list[NUM_STA];
int i; int i;
DBG_8723A(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev)); DBG_8723A("%s(%s)\n", __func__, padapter->pnetdev->name);
if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE) if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
return ret; return ret;
......
...@@ -893,8 +893,8 @@ u8 rtw_set_ch_cmd23a(struct rtw_adapter*padapter, u8 ch, u8 bw, u8 ch_offset, ...@@ -893,8 +893,8 @@ u8 rtw_set_ch_cmd23a(struct rtw_adapter*padapter, u8 ch, u8 bw, u8 ch_offset,
u8 res = _SUCCESS; u8 res = _SUCCESS;
DBG_8723A(FUNC_NDEV_FMT" ch:%u, bw:%u, ch_offset:%u\n", DBG_8723A("%s(%s): ch:%u, bw:%u, ch_offset:%u\n", __func__,
FUNC_NDEV_ARG(padapter->pnetdev), ch, bw, ch_offset); padapter->pnetdev->name, ch, bw, ch_offset);
/* check input parameter */ /* check input parameter */
...@@ -932,8 +932,7 @@ u8 rtw_set_ch_cmd23a(struct rtw_adapter*padapter, u8 ch, u8 bw, u8 ch_offset, ...@@ -932,8 +932,7 @@ u8 rtw_set_ch_cmd23a(struct rtw_adapter*padapter, u8 ch, u8 bw, u8 ch_offset,
/* do something based on res... */ /* do something based on res... */
exit: exit:
DBG_8723A(FUNC_NDEV_FMT" res:%u\n", FUNC_NDEV_ARG(padapter->pnetdev), DBG_8723A("%s(%s): res:%u\n", __func__, padapter->pnetdev->name, res);
res);
return res; return res;
} }
......
...@@ -987,15 +987,15 @@ void rtw_scan_abort23a(struct rtw_adapter *adapter) ...@@ -987,15 +987,15 @@ void rtw_scan_abort23a(struct rtw_adapter *adapter)
if (adapter->bDriverStopped || adapter->bSurpriseRemoved) if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
break; break;
DBG_8723A(FUNC_NDEV_FMT "fw_state = _FW_UNDER_SURVEY!\n", DBG_8723A("%s(%s): fw_state = _FW_UNDER_SURVEY!\n",
FUNC_NDEV_ARG(adapter->pnetdev)); __func__, adapter->pnetdev->name);
msleep(20); msleep(20);
} }
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) { if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) {
if (!adapter->bDriverStopped && !adapter->bSurpriseRemoved) if (!adapter->bDriverStopped && !adapter->bSurpriseRemoved)
DBG_8723A(FUNC_NDEV_FMT "waiting for scan_abort time " DBG_8723A("%s(%s): waiting for scan_abort time out!\n",
"out!\n", FUNC_NDEV_ARG(adapter->pnetdev)); __func__, adapter->pnetdev->name);
rtw_cfg80211_indicate_scan_done(wdev_to_priv(adapter->rtw_wdev), rtw_cfg80211_indicate_scan_done(wdev_to_priv(adapter->rtw_wdev),
true); true);
} }
......
...@@ -3918,9 +3918,8 @@ void issue_action_spct_ch_switch23a(struct rtw_adapter *padapter, ...@@ -3918,9 +3918,8 @@ void issue_action_spct_ch_switch23a(struct rtw_adapter *padapter,
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
u8 category, action; u8 category, action;
DBG_8723A(FUNC_NDEV_FMT" ra ="MAC_FMT", ch:%u, offset:%u\n", DBG_8723A("%s(%s): ra ="MAC_FMT", ch:%u, offset:%u\n", __func__,
FUNC_NDEV_ARG(padapter->pnetdev), MAC_ARG(ra), padapter->pnetdev->name, MAC_ARG(ra), new_ch, ch_offset);
new_ch, ch_offset);
if ((pmgntframe = alloc_mgtxmitframe23a(pxmitpriv)) == NULL) if ((pmgntframe = alloc_mgtxmitframe23a(pxmitpriv)) == NULL)
return; return;
...@@ -6527,9 +6526,9 @@ u8 set_ch_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf) ...@@ -6527,9 +6526,9 @@ u8 set_ch_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
set_ch_parm = (struct set_ch_parm *)pbuf; set_ch_parm = (struct set_ch_parm *)pbuf;
DBG_8723A(FUNC_NDEV_FMT" ch:%u, bw:%u, ch_offset:%u\n", DBG_8723A("%s(%s): ch:%u, bw:%u, ch_offset:%u\n", __func__,
FUNC_NDEV_ARG(padapter->pnetdev), padapter->pnetdev->name, set_ch_parm->ch,
set_ch_parm->ch, set_ch_parm->bw, set_ch_parm->ch_offset); set_ch_parm->bw, set_ch_parm->ch_offset);
pmlmeext->cur_channel = set_ch_parm->ch; pmlmeext->cur_channel = set_ch_parm->ch;
pmlmeext->cur_ch_offset = set_ch_parm->ch_offset; pmlmeext->cur_ch_offset = set_ch_parm->ch_offset;
......
...@@ -139,8 +139,6 @@ void _rtw_init_queue23a(struct rtw_queue *pqueue); ...@@ -139,8 +139,6 @@ void _rtw_init_queue23a(struct rtw_queue *pqueue);
#define ADPT_FMT "%s" #define ADPT_FMT "%s"
#define ADPT_ARG(adapter) adapter->pnetdev->name #define ADPT_ARG(adapter) adapter->pnetdev->name
#define FUNC_NDEV_FMT "%s(%s)"
#define FUNC_NDEV_ARG(ndev) __func__, ndev->name
/* Macros for handling unaligned memory accesses */ /* Macros for handling unaligned memory accesses */
......
...@@ -1080,7 +1080,7 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev, ...@@ -1080,7 +1080,7 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
struct rtw_adapter *padapter = wiphy_to_adapter(wiphy); struct rtw_adapter *padapter = wiphy_to_adapter(wiphy);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
DBG_8723A(FUNC_NDEV_FMT " adding key for %pM\n", FUNC_NDEV_ARG(ndev), DBG_8723A("%s(%s): adding key for %pM\n", __func__, ndev->name,
mac_addr); mac_addr);
DBG_8723A("cipher = 0x%x\n", params->cipher); DBG_8723A("cipher = 0x%x\n", params->cipher);
DBG_8723A("key_len = 0x%x\n", params->key_len); DBG_8723A("key_len = 0x%x\n", params->key_len);
...@@ -1165,7 +1165,7 @@ cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev, ...@@ -1165,7 +1165,7 @@ cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev,
void *cookie, void *cookie,
void (*callback) (void *cookie, struct key_params *)) void (*callback) (void *cookie, struct key_params *))
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
return 0; return 0;
} }
...@@ -1176,8 +1176,7 @@ static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev, ...@@ -1176,8 +1176,7 @@ static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
struct rtw_adapter *padapter = netdev_priv(ndev); struct rtw_adapter *padapter = netdev_priv(ndev);
struct security_priv *psecuritypriv = &padapter->securitypriv; struct security_priv *psecuritypriv = &padapter->securitypriv;
DBG_8723A(FUNC_NDEV_FMT " key_index =%d\n", FUNC_NDEV_ARG(ndev), DBG_8723A("%s(%s): key_index =%d\n", __func__, ndev->name, key_index);
key_index);
if (key_index == psecuritypriv->dot11PrivacyKeyIndex) { if (key_index == psecuritypriv->dot11PrivacyKeyIndex) {
/* clear the flag of wep default key set. */ /* clear the flag of wep default key set. */
...@@ -1194,9 +1193,8 @@ static int cfg80211_rtw_set_default_key(struct wiphy *wiphy, ...@@ -1194,9 +1193,8 @@ static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
struct rtw_adapter *padapter = netdev_priv(ndev); struct rtw_adapter *padapter = netdev_priv(ndev);
struct security_priv *psecuritypriv = &padapter->securitypriv; struct security_priv *psecuritypriv = &padapter->securitypriv;
DBG_8723A(FUNC_NDEV_FMT " key_index =%d" DBG_8723A("%s(%s): key_index =%d, unicast =%d, multicast =%d.\n",
", unicast =%d, multicast =%d.\n", FUNC_NDEV_ARG(ndev), __func__, ndev->name, key_index, unicast, multicast);
key_index, unicast, multicast);
if ((key_index < WEP_KEYS) && if ((key_index < WEP_KEYS) &&
((psecuritypriv->dot11PrivacyAlgrthm == _WEP40_) || ((psecuritypriv->dot11PrivacyAlgrthm == _WEP40_) ||
...@@ -1234,7 +1232,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy, ...@@ -1234,7 +1232,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy,
sinfo->filled = 0; sinfo->filled = 0;
if (!mac) { if (!mac) {
DBG_8723A(FUNC_NDEV_FMT " mac ==%p\n", FUNC_NDEV_ARG(ndev), mac); DBG_8723A("%s(%s): mac ==%p\n", __func__, ndev->name, mac);
ret = -ENOENT; ret = -ENOENT;
goto exit; goto exit;
} }
...@@ -1245,7 +1243,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy, ...@@ -1245,7 +1243,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy,
ret = -ENOENT; ret = -ENOENT;
goto exit; goto exit;
} }
DBG_8723A(FUNC_NDEV_FMT " mac =" MAC_FMT "\n", FUNC_NDEV_ARG(ndev), DBG_8723A("%s(%s): mac =" MAC_FMT "\n", __func__, ndev->name,
MAC_ARG(mac)); MAC_ARG(mac));
/* for infra./P2PClient mode */ /* for infra./P2PClient mode */
...@@ -1300,7 +1298,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, ...@@ -1300,7 +1298,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
int ret = 0; int ret = 0;
u8 change = false; u8 change = false;
DBG_8723A(FUNC_NDEV_FMT " call netdev_open23a\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s): call netdev_open23a\n", __func__, ndev->name);
if (netdev_open23a(ndev) != 0) { if (netdev_open23a(ndev) != 0) {
ret = -EPERM; ret = -EPERM;
goto exit; goto exit;
...@@ -1312,8 +1310,8 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, ...@@ -1312,8 +1310,8 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
} }
old_type = rtw_wdev->iftype; old_type = rtw_wdev->iftype;
DBG_8723A(FUNC_NDEV_FMT " old_iftype =%d, new_iftype =%d\n", DBG_8723A("%s(%s): old_iftype =%d, new_iftype =%d\n",
FUNC_NDEV_ARG(ndev), old_type, type); __func__, ndev->name, old_type, type);
if (old_type != type) { if (old_type != type) {
change = true; change = true;
...@@ -1450,7 +1448,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, ...@@ -1450,7 +1448,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("%s(%s):\n", __func__, padapter->pnetdev->name); 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;
...@@ -1546,13 +1544,13 @@ static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed) ...@@ -1546,13 +1544,13 @@ static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *ndev, static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *ndev,
struct cfg80211_ibss_params *params) struct cfg80211_ibss_params *params)
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
return 0; return 0;
} }
static int cfg80211_rtw_leave_ibss(struct wiphy *wiphy, struct net_device *ndev) static int cfg80211_rtw_leave_ibss(struct wiphy *wiphy, struct net_device *ndev)
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
return 0; return 0;
} }
...@@ -1868,7 +1866,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev, ...@@ -1868,7 +1866,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
struct security_priv *psecuritypriv = &padapter->securitypriv; struct security_priv *psecuritypriv = &padapter->securitypriv;
struct rtw_queue *queue = &pmlmepriv->scanned_queue; struct rtw_queue *queue = &pmlmepriv->scanned_queue;
DBG_8723A("=>" FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("=>" "%s(%s)\n", __func__, ndev->name);
DBG_8723A("privacy =%d, key =%p, key_len =%d, key_idx =%d\n", DBG_8723A("privacy =%d, key =%p, key_len =%d, key_idx =%d\n",
sme->privacy, sme->key, sme->key_len, sme->key_idx); sme->privacy, sme->key, sme->key_len, sme->key_idx);
...@@ -2115,7 +2113,7 @@ static int cfg80211_rtw_disconnect(struct wiphy *wiphy, struct net_device *ndev, ...@@ -2115,7 +2113,7 @@ static int cfg80211_rtw_disconnect(struct wiphy *wiphy, struct net_device *ndev,
{ {
struct rtw_adapter *padapter = wiphy_to_adapter(wiphy); struct rtw_adapter *padapter = wiphy_to_adapter(wiphy);
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
rtw_set_roaming(padapter, 0); rtw_set_roaming(padapter, 0);
...@@ -2165,8 +2163,8 @@ static int cfg80211_rtw_set_power_mgmt(struct wiphy *wiphy, ...@@ -2165,8 +2163,8 @@ static int cfg80211_rtw_set_power_mgmt(struct wiphy *wiphy,
struct rtw_adapter *padapter = wiphy_to_adapter(wiphy); struct rtw_adapter *padapter = wiphy_to_adapter(wiphy);
struct rtw_wdev_priv *rtw_wdev_priv = wdev_to_priv(padapter->rtw_wdev); struct rtw_wdev_priv *rtw_wdev_priv = wdev_to_priv(padapter->rtw_wdev);
DBG_8723A(FUNC_NDEV_FMT " enabled:%u, timeout:%d\n", DBG_8723A("%s(%s): enabled:%u, timeout:%d\n",
FUNC_NDEV_ARG(ndev), enabled, timeout); __func__, ndev->name, enabled, timeout);
rtw_wdev_priv->power_mgmt = enabled; rtw_wdev_priv->power_mgmt = enabled;
...@@ -2185,7 +2183,7 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy, ...@@ -2185,7 +2183,7 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy,
struct security_priv *psecuritypriv = &padapter->securitypriv; struct security_priv *psecuritypriv = &padapter->securitypriv;
u8 strZeroMacAddress[ETH_ALEN] = { 0x00 }; u8 strZeroMacAddress[ETH_ALEN] = { 0x00 };
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(netdev)); DBG_8723A("%s(%s)\n", __func__, netdev->name);
if (!memcmp(pmksa->bssid, strZeroMacAddress, ETH_ALEN)) { if (!memcmp(pmksa->bssid, strZeroMacAddress, ETH_ALEN)) {
return -EINVAL; return -EINVAL;
...@@ -2199,9 +2197,8 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy, ...@@ -2199,9 +2197,8 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy,
pmksa->bssid, ETH_ALEN)) { pmksa->bssid, ETH_ALEN)) {
/* BSSID is matched, the same AP => rewrite with /* BSSID is matched, the same AP => rewrite with
new PMKID. */ new PMKID. */
DBG_8723A(FUNC_NDEV_FMT DBG_8723A("%s(%s): BSSID exists in the PMKList.\n",
" BSSID exists in the PMKList.\n", __func__, netdev->name);
FUNC_NDEV_ARG(netdev));
memcpy(psecuritypriv->PMKIDList[index].PMKID, memcpy(psecuritypriv->PMKIDList[index].PMKID,
pmksa->pmkid, WLAN_PMKID_LEN); pmksa->pmkid, WLAN_PMKID_LEN);
...@@ -2214,9 +2211,8 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy, ...@@ -2214,9 +2211,8 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy,
if (!blInserted) { if (!blInserted) {
/* Find a new entry */ /* Find a new entry */
DBG_8723A(FUNC_NDEV_FMT DBG_8723A("%s(%s): Use new entry index = %d for this PMKID\n",
" Use the new entry index = %d for this PMKID.\n", __func__, netdev->name, psecuritypriv->PMKIDIndex);
FUNC_NDEV_ARG(netdev), psecuritypriv->PMKIDIndex);
memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex]. memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].
Bssid, pmksa->bssid, ETH_ALEN); Bssid, pmksa->bssid, ETH_ALEN);
...@@ -2242,7 +2238,7 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy, ...@@ -2242,7 +2238,7 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy,
struct rtw_adapter *padapter = wiphy_to_adapter(wiphy); struct rtw_adapter *padapter = wiphy_to_adapter(wiphy);
struct security_priv *psecuritypriv = &padapter->securitypriv; struct security_priv *psecuritypriv = &padapter->securitypriv;
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(netdev)); DBG_8723A("%s(%s)\n", __func__, netdev->name);
for (index = 0; index < NUM_PMKID_CACHE; index++) { for (index = 0; index < NUM_PMKID_CACHE; index++) {
if (!memcmp(psecuritypriv->PMKIDList[index].Bssid, if (!memcmp(psecuritypriv->PMKIDList[index].Bssid,
...@@ -2258,8 +2254,8 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy, ...@@ -2258,8 +2254,8 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy,
} }
if (false == bMatched) { if (false == bMatched) {
DBG_8723A(FUNC_NDEV_FMT " do not have matched BSSID\n", DBG_8723A("%s(%s): do not have matched BSSID\n", __func__,
FUNC_NDEV_ARG(netdev)); netdev->name);
return -EINVAL; return -EINVAL;
} }
...@@ -2272,7 +2268,7 @@ static int cfg80211_rtw_flush_pmksa(struct wiphy *wiphy, ...@@ -2272,7 +2268,7 @@ static int cfg80211_rtw_flush_pmksa(struct wiphy *wiphy,
struct rtw_adapter *padapter = wiphy_to_adapter(wiphy); struct rtw_adapter *padapter = wiphy_to_adapter(wiphy);
struct security_priv *psecuritypriv = &padapter->securitypriv; struct security_priv *psecuritypriv = &padapter->securitypriv;
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(netdev)); DBG_8723A("%s(%s)\n", __func__, netdev->name);
memset(&psecuritypriv->PMKIDList[0], 0x00, memset(&psecuritypriv->PMKIDList[0], 0x00,
sizeof(struct rt_pmkid_list) * NUM_PMKID_CACHE); sizeof(struct rt_pmkid_list) * NUM_PMKID_CACHE);
...@@ -2410,7 +2406,7 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, ...@@ -2410,7 +2406,7 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb,
struct ieee80211_radiotap_header *rtap_hdr; struct ieee80211_radiotap_header *rtap_hdr;
struct rtw_adapter *padapter = netdev_priv(ndev); struct rtw_adapter *padapter = netdev_priv(ndev);
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
if (unlikely(skb->len < sizeof(struct ieee80211_radiotap_header))) if (unlikely(skb->len < sizeof(struct ieee80211_radiotap_header)))
goto fail; goto fail;
...@@ -2476,14 +2472,14 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, ...@@ -2476,14 +2472,14 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb,
if (rtw_action_frame_parse23a(skb->data, len, &category, if (rtw_action_frame_parse23a(skb->data, len, &category,
&action) == false) { &action) == false) {
DBG_8723A(FUNC_NDEV_FMT " frame_control:0x%x\n", DBG_8723A("%s(%s): frame_control:0x%x\n",
FUNC_NDEV_ARG(ndev), __func__, ndev->name,
le16_to_cpu(dot11_hdr->frame_control)); le16_to_cpu(dot11_hdr->frame_control));
goto fail; goto fail;
} }
DBG_8723A("RTW_Tx:da =" MAC_FMT " via " FUNC_NDEV_FMT "\n", DBG_8723A("RTW_Tx:da =" MAC_FMT " via %s(%s)\n",
MAC_ARG(dot11_hdr->addr1), FUNC_NDEV_ARG(ndev)); MAC_ARG(dot11_hdr->addr1), __func__, ndev->name);
if (category == WLAN_CATEGORY_PUBLIC) if (category == WLAN_CATEGORY_PUBLIC)
DBG_8723A("RTW_Tx:%s\n", action_public_str23a(action)); DBG_8723A("RTW_Tx:%s\n", action_public_str23a(action));
else else
...@@ -2676,8 +2672,8 @@ static int cfg80211_rtw_del_virtual_intf(struct wiphy *wiphy, ...@@ -2676,8 +2672,8 @@ static int cfg80211_rtw_del_virtual_intf(struct wiphy *wiphy,
if (ndev == pwdev_priv->pmon_ndev) { if (ndev == pwdev_priv->pmon_ndev) {
pwdev_priv->pmon_ndev = NULL; pwdev_priv->pmon_ndev = NULL;
pwdev_priv->ifname_mon[0] = '\0'; pwdev_priv->ifname_mon[0] = '\0';
DBG_8723A(FUNC_NDEV_FMT " remove monitor interface\n", DBG_8723A("%s(%s): remove monitor interface\n",
FUNC_NDEV_ARG(ndev)); __func__, ndev->name);
} }
exit: exit:
...@@ -2740,8 +2736,8 @@ static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev, ...@@ -2740,8 +2736,8 @@ static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev,
int ret = 0; int ret = 0;
struct rtw_adapter *adapter = wiphy_to_adapter(wiphy); struct rtw_adapter *adapter = wiphy_to_adapter(wiphy);
DBG_8723A(FUNC_NDEV_FMT " hidden_ssid:%d, auth_type:%d\n", DBG_8723A("%s(%s): hidden_ssid:%d, auth_type:%d\n",
FUNC_NDEV_ARG(ndev), settings->hidden_ssid, __func__, ndev->name, settings->hidden_ssid,
settings->auth_type); settings->auth_type);
ret = rtw_add_beacon(adapter, settings->beacon.head, ret = rtw_add_beacon(adapter, settings->beacon.head,
...@@ -2775,7 +2771,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, ...@@ -2775,7 +2771,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy,
int ret = 0; int ret = 0;
struct rtw_adapter *adapter = wiphy_to_adapter(wiphy); struct rtw_adapter *adapter = wiphy_to_adapter(wiphy);
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail,
info->tail_len); info->tail_len);
...@@ -2785,7 +2781,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, ...@@ -2785,7 +2781,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy,
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev) static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
return 0; return 0;
} }
...@@ -2793,7 +2789,7 @@ static int cfg80211_rtw_add_station(struct wiphy *wiphy, ...@@ -2793,7 +2789,7 @@ static int cfg80211_rtw_add_station(struct wiphy *wiphy,
struct net_device *ndev, u8 *mac, struct net_device *ndev, u8 *mac,
struct station_parameters *params) struct station_parameters *params)
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
return 0; return 0;
} }
...@@ -2809,7 +2805,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, ...@@ -2809,7 +2805,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy,
struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct sta_priv *pstapriv = &padapter->stapriv; struct sta_priv *pstapriv = &padapter->stapriv;
DBG_8723A("+" FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("+%s(%s)\n", __func__, ndev->name);
if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE)) != true) { if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE)) != true) {
DBG_8723A("%s, fw_state != FW_LINKED|WIFI_AP_STATE\n", DBG_8723A("%s, fw_state != FW_LINKED|WIFI_AP_STATE\n",
...@@ -2869,7 +2865,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, ...@@ -2869,7 +2865,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy,
associated_clients_update23a(padapter, updated); associated_clients_update23a(padapter, updated);
DBG_8723A("-" FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("-%s(%s)\n", __func__, ndev->name);
return ret; return ret;
} }
...@@ -2878,7 +2874,7 @@ static int cfg80211_rtw_change_station(struct wiphy *wiphy, ...@@ -2878,7 +2874,7 @@ static int cfg80211_rtw_change_station(struct wiphy *wiphy,
struct net_device *ndev, u8 *mac, struct net_device *ndev, u8 *mac,
struct station_parameters *params) struct station_parameters *params)
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
return 0; return 0;
} }
...@@ -2886,7 +2882,7 @@ static int cfg80211_rtw_dump_station(struct wiphy *wiphy, ...@@ -2886,7 +2882,7 @@ static int cfg80211_rtw_dump_station(struct wiphy *wiphy,
struct net_device *ndev, int idx, u8 *mac, struct net_device *ndev, int idx, u8 *mac,
struct station_info *sinfo) struct station_info *sinfo)
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
/* TODO: dump scanned queue */ /* TODO: dump scanned queue */
...@@ -2896,7 +2892,7 @@ static int cfg80211_rtw_dump_station(struct wiphy *wiphy, ...@@ -2896,7 +2892,7 @@ static int cfg80211_rtw_dump_station(struct wiphy *wiphy,
static int cfg80211_rtw_change_bss(struct wiphy *wiphy, struct net_device *ndev, static int cfg80211_rtw_change_bss(struct wiphy *wiphy, struct net_device *ndev,
struct bss_parameters *params) struct bss_parameters *params)
{ {
DBG_8723A(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
return 0; return 0;
} }
#endif /* CONFIG_8723AU_AP_MODE */ #endif /* CONFIG_8723AU_AP_MODE */
...@@ -3163,7 +3159,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf, ...@@ -3163,7 +3159,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf,
struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
DBG_8723A(FUNC_NDEV_FMT " ielen =%d\n", FUNC_NDEV_ARG(ndev), len); DBG_8723A("%s(%s): ielen =%d\n", __func__, ndev->name, len);
if (len > 0) { if (len > 0) {
wps_ie = rtw_get_wps_ie23a(buf, len, NULL, &wps_ielen); wps_ie = rtw_get_wps_ie23a(buf, len, NULL, &wps_ielen);
......
...@@ -605,7 +605,7 @@ static int _rtw_drv_register_netdev(struct rtw_adapter *padapter, char *name) ...@@ -605,7 +605,7 @@ static int _rtw_drv_register_netdev(struct rtw_adapter *padapter, char *name)
/* Tell the network stack we exist */ /* Tell the network stack we exist */
if (register_netdev(pnetdev)) { if (register_netdev(pnetdev)) {
DBG_8723A(FUNC_NDEV_FMT "Failed!\n", FUNC_NDEV_ARG(pnetdev)); DBG_8723A("%s(%s): Failed!\n", __func__, pnetdev->name);
ret = _FAIL; ret = _FAIL;
goto error_register_netdev; goto error_register_netdev;
} }
...@@ -876,7 +876,7 @@ static int netdev_close(struct net_device *pnetdev) ...@@ -876,7 +876,7 @@ static int netdev_close(struct net_device *pnetdev)
void rtw_ndev_destructor(struct net_device *ndev) void rtw_ndev_destructor(struct net_device *ndev)
{ {
DBG_8723A(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); DBG_8723A("%s(%s)\n", __func__, ndev->name);
kfree(ndev->ieee80211_ptr); kfree(ndev->ieee80211_ptr);
free_netdev(ndev); free_netdev(ndev);
} }
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