mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Replace all instances if __FUNCTION__ with __func__
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
2b8372b0af
commit
22421e29fb
69 changed files with 1290 additions and 1852 deletions
|
@ -28,10 +28,8 @@
|
|||
|
||||
#if !(defined ANDROID_2X)
|
||||
|
||||
#ifdef CONFIG_RTL8188E
|
||||
#include <mach/regulator.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
#endif /* CONFIG_RTL8188E */
|
||||
|
||||
#ifndef GPIO_WIFI_POWER
|
||||
#define GPIO_WIFI_POWER -1
|
||||
|
@ -70,15 +68,6 @@ int rtw_wifi_gpio_init(void)
|
|||
if (GPIO_WIFI_POWER > 0)
|
||||
gpio_request(GPIO_WIFI_POWER, "wifi_power");
|
||||
|
||||
#ifdef CONFIG_SDIO_HCI
|
||||
#if (defined(CONFIG_RTL8723B)) && (MP_DRIVER == 1)
|
||||
if (rtw_mp_mode == 1) {
|
||||
RTW_INFO("%s GPIO_BT_RESET pin special for mp_test\n", __func__);
|
||||
if (GPIO_BT_RESET > 0)
|
||||
gpio_request(GPIO_BT_RESET , "bt_rst");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -93,15 +82,6 @@ int rtw_wifi_gpio_deinit(void)
|
|||
if (GPIO_WIFI_POWER > 0)
|
||||
gpio_free(GPIO_WIFI_POWER);
|
||||
|
||||
#ifdef CONFIG_SDIO_HCI
|
||||
#if (defined(CONFIG_RTL8723B)) && (MP_DRIVER == 1)
|
||||
if (rtw_mp_mode == 1) {
|
||||
RTW_INFO("%s GPIO_BT_RESET pin special for mp_test\n", __func__);
|
||||
if (GPIO_BT_RESET > 0)
|
||||
gpio_free(GPIO_BT_RESET);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -111,7 +91,7 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
switch (onoff) {
|
||||
case WLAN_PWDN_OFF:
|
||||
RTW_INFO("%s: call customer specific GPIO(%d) to set wifi power down pin to 0\n",
|
||||
__FUNCTION__, GPIO_WIFI_RESET);
|
||||
__func__, GPIO_WIFI_RESET);
|
||||
|
||||
#ifndef CONFIG_DONT_BUS_SCAN
|
||||
if (GPIO_WIFI_RESET > 0)
|
||||
|
@ -121,7 +101,7 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
|
||||
case WLAN_PWDN_ON:
|
||||
RTW_INFO("%s: callc customer specific GPIO(%d) to set wifi power down pin to 1\n",
|
||||
__FUNCTION__, GPIO_WIFI_RESET);
|
||||
__func__, GPIO_WIFI_RESET);
|
||||
|
||||
if (GPIO_WIFI_RESET > 0)
|
||||
gpio_direction_output(GPIO_WIFI_RESET , 1);
|
||||
|
@ -132,28 +112,6 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
|
||||
case WLAN_POWER_ON:
|
||||
break;
|
||||
#ifdef CONFIG_SDIO_HCI
|
||||
#if (defined(CONFIG_RTL8723B)) && (MP_DRIVER == 1)
|
||||
case WLAN_BT_PWDN_OFF:
|
||||
if (rtw_mp_mode == 1) {
|
||||
RTW_INFO("%s: call customer specific GPIO to set wifi power down pin to 0\n",
|
||||
__FUNCTION__);
|
||||
if (GPIO_BT_RESET > 0)
|
||||
gpio_direction_output(GPIO_BT_RESET , 0);
|
||||
}
|
||||
break;
|
||||
|
||||
case WLAN_BT_PWDN_ON:
|
||||
if (rtw_mp_mode == 1) {
|
||||
RTW_INFO("%s: callc customer specific GPIO to set wifi power down pin to 1 %x\n",
|
||||
__FUNCTION__, GPIO_BT_RESET);
|
||||
|
||||
if (GPIO_BT_RESET > 0)
|
||||
gpio_direction_output(GPIO_BT_RESET , 1);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -161,21 +119,11 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
|
||||
#include <mach/ldo.h>
|
||||
|
||||
#ifdef CONFIG_RTL8188E
|
||||
extern int sprd_3rdparty_gpio_wifi_power;
|
||||
#endif
|
||||
extern int sprd_3rdparty_gpio_wifi_pwd;
|
||||
#if defined(CONFIG_RTL8723B)
|
||||
extern int sprd_3rdparty_gpio_bt_reset;
|
||||
#endif
|
||||
|
||||
int rtw_wifi_gpio_init(void)
|
||||
{
|
||||
#if defined(CONFIG_RTL8723B)
|
||||
if (sprd_3rdparty_gpio_bt_reset > 0)
|
||||
gpio_direction_output(sprd_3rdparty_gpio_bt_reset, 1);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -190,7 +138,7 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
switch (onoff) {
|
||||
case WLAN_PWDN_OFF:
|
||||
RTW_INFO("%s: call customer specific GPIO to set wifi power down pin to 0\n",
|
||||
__FUNCTION__);
|
||||
__func__);
|
||||
if (sprd_3rdparty_gpio_wifi_pwd > 0)
|
||||
gpio_set_value(sprd_3rdparty_gpio_wifi_pwd, 0);
|
||||
|
||||
|
@ -202,7 +150,7 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
|
||||
case WLAN_PWDN_ON:
|
||||
RTW_INFO("%s: callc customer specific GPIO to set wifi power down pin to 1\n",
|
||||
__FUNCTION__);
|
||||
__func__);
|
||||
if (sprd_3rdparty_gpio_wifi_pwd == 60) {
|
||||
RTW_INFO("%s: turn on VSIM2 2.8V\n", __func__);
|
||||
LDO_SetVoltLevel(LDO_LDO_SIM2, LDO_VOLT_LEVEL0);
|
||||
|
@ -213,30 +161,27 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
break;
|
||||
|
||||
case WLAN_POWER_OFF:
|
||||
#ifdef CONFIG_RTL8188E
|
||||
#ifdef CONFIG_WIF1_LDO
|
||||
RTW_INFO("%s: turn off VDD-WIFI0 1.2V\n", __FUNCTION__);
|
||||
RTW_INFO("%s: turn off VDD-WIFI0 1.2V\n", __func__);
|
||||
LDO_TurnOffLDO(LDO_LDO_WIF1);
|
||||
#endif /* CONFIG_WIF1_LDO */
|
||||
|
||||
RTW_INFO("%s: turn off VDD-WIFI0 3.3V\n", __FUNCTION__);
|
||||
RTW_INFO("%s: turn off VDD-WIFI0 3.3V\n", __func__);
|
||||
LDO_TurnOffLDO(LDO_LDO_WIF0);
|
||||
|
||||
RTW_INFO("%s: call customer specific GPIO(%d) to turn off wifi power\n",
|
||||
__FUNCTION__, sprd_3rdparty_gpio_wifi_power);
|
||||
__func__, sprd_3rdparty_gpio_wifi_power);
|
||||
if (sprd_3rdparty_gpio_wifi_power != 65535)
|
||||
gpio_set_value(sprd_3rdparty_gpio_wifi_power, 0);
|
||||
#endif
|
||||
break;
|
||||
|
||||
case WLAN_POWER_ON:
|
||||
#ifdef CONFIG_RTL8188E
|
||||
RTW_INFO("%s: call customer specific GPIO(%d) to turn on wifi power\n",
|
||||
__FUNCTION__, sprd_3rdparty_gpio_wifi_power);
|
||||
__func__, sprd_3rdparty_gpio_wifi_power);
|
||||
if (sprd_3rdparty_gpio_wifi_power != 65535)
|
||||
gpio_set_value(sprd_3rdparty_gpio_wifi_power, 1);
|
||||
|
||||
RTW_INFO("%s: turn on VDD-WIFI0 3.3V\n", __FUNCTION__);
|
||||
RTW_INFO("%s: turn on VDD-WIFI0 3.3V\n", __func__);
|
||||
LDO_TurnOnLDO(LDO_LDO_WIF0);
|
||||
LDO_SetVoltLevel(LDO_LDO_WIF0, LDO_VOLT_LEVEL1);
|
||||
|
||||
|
@ -245,25 +190,15 @@ void rtw_wifi_gpio_wlan_ctrl(int onoff)
|
|||
LDO_TurnOnLDO(LDO_LDO_WIF1);
|
||||
LDO_SetVoltLevel(LDO_LDO_WIF1, LDO_VOLT_LEVEL3);
|
||||
#endif /* CONFIG_WIF1_LDO */
|
||||
#endif
|
||||
break;
|
||||
|
||||
case WLAN_BT_PWDN_OFF:
|
||||
RTW_INFO("%s: call customer specific GPIO to set bt power down pin to 0\n",
|
||||
__FUNCTION__);
|
||||
#if defined(CONFIG_RTL8723B)
|
||||
if (sprd_3rdparty_gpio_bt_reset > 0)
|
||||
gpio_set_value(sprd_3rdparty_gpio_bt_reset, 0);
|
||||
#endif
|
||||
__func__);
|
||||
break;
|
||||
|
||||
case WLAN_BT_PWDN_ON:
|
||||
RTW_INFO("%s: callc customer specific GPIO to set bt power down pin to 1\n",
|
||||
__FUNCTION__);
|
||||
#if defined(CONFIG_RTL8723B)
|
||||
if (sprd_3rdparty_gpio_bt_reset > 0)
|
||||
gpio_set_value(sprd_3rdparty_gpio_bt_reset, 1);
|
||||
#endif
|
||||
__func__);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -423,7 +423,7 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_net
|
|||
|
||||
pbuf = rtw_zmalloc(buf_size);
|
||||
if (pbuf == NULL) {
|
||||
RTW_INFO("%s pbuf allocate failed !!\n", __FUNCTION__);
|
||||
RTW_INFO("%s pbuf allocate failed !!\n", __func__);
|
||||
return bss;
|
||||
}
|
||||
|
||||
|
@ -431,7 +431,7 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_net
|
|||
|
||||
bssinf_len = pnetwork->network.IELength + sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
if (bssinf_len > buf_size) {
|
||||
RTW_INFO("%s IE Length too long > %zu byte\n", __FUNCTION__, buf_size);
|
||||
RTW_INFO("%s IE Length too long > %zu byte\n", __func__, buf_size);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@ -441,7 +441,7 @@ struct cfg80211_bss *rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_net
|
|||
|
||||
if (rtw_get_wapi_ie(pnetwork->network.IEs, pnetwork->network.IELength, NULL, &wapi_len) > 0) {
|
||||
if (wapi_len > 0) {
|
||||
RTW_INFO("%s, no support wapi!\n", __FUNCTION__);
|
||||
RTW_INFO("%s, no support wapi!\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
@ -878,7 +878,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
struct security_priv *psecuritypriv = &(padapter->securitypriv);
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
||||
RTW_INFO("%s\n", __FUNCTION__);
|
||||
RTW_INFO("%s\n", __func__);
|
||||
|
||||
param->u.crypt.err = 0;
|
||||
param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0';
|
||||
|
@ -965,7 +965,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
if (!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) { /* group key */
|
||||
if (param->u.crypt.set_tx == 0) { /* group key */
|
||||
if (strcmp(param->u.crypt.alg, "WEP") == 0) {
|
||||
RTW_INFO("%s, set group_key, WEP\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set group_key, WEP\n", __func__);
|
||||
|
||||
_rtw_memcpy(psecuritypriv->dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len));
|
||||
|
||||
|
@ -974,7 +974,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
psecuritypriv->dot118021XGrpPrivacy = _WEP104_;
|
||||
|
||||
} else if (strcmp(param->u.crypt.alg, "TKIP") == 0) {
|
||||
RTW_INFO("%s, set group_key, TKIP\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set group_key, TKIP\n", __func__);
|
||||
|
||||
psecuritypriv->dot118021XGrpPrivacy = _TKIP_;
|
||||
|
||||
|
@ -988,7 +988,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
psecuritypriv->busetkipkey = _TRUE;
|
||||
|
||||
} else if (strcmp(param->u.crypt.alg, "CCMP") == 0) {
|
||||
RTW_INFO("%s, set group_key, CCMP\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set group_key, CCMP\n", __func__);
|
||||
|
||||
psecuritypriv->dot118021XGrpPrivacy = _AES_;
|
||||
|
||||
|
@ -1012,7 +1012,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
}
|
||||
#endif /* CONFIG_IEEE80211W */
|
||||
else {
|
||||
RTW_INFO("%s, set group_key, none\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set group_key, none\n", __func__);
|
||||
|
||||
psecuritypriv->dot118021XGrpPrivacy = _NO_PRIVACY_;
|
||||
}
|
||||
|
@ -1043,13 +1043,13 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
_rtw_memcpy(psta->dot118021x_UncstKey.skey, param->u.crypt.key, (param->u.crypt.key_len > 16 ? 16 : param->u.crypt.key_len));
|
||||
|
||||
if (strcmp(param->u.crypt.alg, "WEP") == 0) {
|
||||
RTW_INFO("%s, set pairwise key, WEP\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set pairwise key, WEP\n", __func__);
|
||||
|
||||
psta->dot118021XPrivacy = _WEP40_;
|
||||
if (param->u.crypt.key_len == 13)
|
||||
psta->dot118021XPrivacy = _WEP104_;
|
||||
} else if (strcmp(param->u.crypt.alg, "TKIP") == 0) {
|
||||
RTW_INFO("%s, set pairwise key, TKIP\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set pairwise key, TKIP\n", __func__);
|
||||
|
||||
psta->dot118021XPrivacy = _TKIP_;
|
||||
|
||||
|
@ -1062,11 +1062,11 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
|
||||
} else if (strcmp(param->u.crypt.alg, "CCMP") == 0) {
|
||||
|
||||
RTW_INFO("%s, set pairwise key, CCMP\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set pairwise key, CCMP\n", __func__);
|
||||
|
||||
psta->dot118021XPrivacy = _AES_;
|
||||
} else {
|
||||
RTW_INFO("%s, set pairwise key, none\n", __FUNCTION__);
|
||||
RTW_INFO("%s, set pairwise key, none\n", __func__);
|
||||
|
||||
psta->dot118021XPrivacy = _NO_PRIVACY_;
|
||||
}
|
||||
|
@ -1911,7 +1911,7 @@ void rtw_cfg80211_indicate_scan_done(_adapter *adapter, bool aborted)
|
|||
_enter_critical_bh(&pwdev_priv->scan_req_lock, &irqL);
|
||||
if (pwdev_priv->scan_request != NULL) {
|
||||
#ifdef CONFIG_DEBUG_CFG80211
|
||||
RTW_INFO("%s with scan req\n", __FUNCTION__);
|
||||
RTW_INFO("%s with scan req\n", __func__);
|
||||
#endif
|
||||
|
||||
/* avoid WARN_ON(request != wiphy_to_dev(request->wiphy)->scan_req); */
|
||||
|
@ -1927,7 +1927,7 @@ void rtw_cfg80211_indicate_scan_done(_adapter *adapter, bool aborted)
|
|||
pwdev_priv->scan_request = NULL;
|
||||
} else {
|
||||
#ifdef CONFIG_DEBUG_CFG80211
|
||||
RTW_INFO("%s without scan req\n", __FUNCTION__);
|
||||
RTW_INFO("%s without scan req\n", __func__);
|
||||
#endif
|
||||
}
|
||||
_exit_critical_bh(&pwdev_priv->scan_req_lock, &irqL);
|
||||
|
@ -2114,7 +2114,7 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(_adapter *padapter, char *buf, in
|
|||
|
||||
pmlmepriv->wps_probe_req_ie = rtw_malloc(wps_ielen);
|
||||
if (pmlmepriv->wps_probe_req_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
@ -2145,7 +2145,7 @@ static int rtw_cfg80211_set_probe_req_wpsp2pie(_adapter *padapter, char *buf, in
|
|||
|
||||
pmlmepriv->p2p_probe_req_ie = rtw_malloc(p2p_ielen);
|
||||
if (pmlmepriv->p2p_probe_req_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
@ -2868,7 +2868,7 @@ static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, u8 *pie, size_t ielen)
|
|||
p2p_ie = rtw_get_p2p_ie(buf, ielen, NULL, &p2p_ielen);
|
||||
if (p2p_ie) {
|
||||
#ifdef CONFIG_DEBUG_CFG80211
|
||||
RTW_INFO("%s p2p_assoc_req_ielen=%d\n", __FUNCTION__, p2p_ielen);
|
||||
RTW_INFO("%s p2p_assoc_req_ielen=%d\n", __func__, p2p_ielen);
|
||||
#endif
|
||||
|
||||
if (pmlmepriv->p2p_assoc_req_ie) {
|
||||
|
@ -2880,7 +2880,7 @@ static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, u8 *pie, size_t ielen)
|
|||
|
||||
pmlmepriv->p2p_assoc_req_ie = rtw_malloc(p2p_ielen);
|
||||
if (pmlmepriv->p2p_assoc_req_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
goto exit;
|
||||
}
|
||||
_rtw_memcpy(pmlmepriv->p2p_assoc_req_ie, p2p_ie, p2p_ielen);
|
||||
|
@ -2898,7 +2898,7 @@ static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, u8 *pie, size_t ielen)
|
|||
wfd_ie = rtw_get_wfd_ie(buf, ielen, NULL, &wfd_ielen);
|
||||
if (wfd_ie) {
|
||||
#ifdef CONFIG_DEBUG_CFG80211
|
||||
RTW_INFO("%s wfd_assoc_req_ielen=%d\n", __FUNCTION__, wfd_ielen);
|
||||
RTW_INFO("%s wfd_assoc_req_ielen=%d\n", __func__, wfd_ielen);
|
||||
#endif
|
||||
|
||||
if (rtw_mlme_update_wfd_ie_data(pmlmepriv, MLME_ASSOC_REQ_IE, wfd_ie, wfd_ielen) != _SUCCESS)
|
||||
|
@ -2971,7 +2971,7 @@ static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (rtw_mi_buddy_check_fwstate(padapter, _FW_UNDER_LINKING)) {
|
||||
RTW_INFO("%s, but buddy_intf is under linking\n", __FUNCTION__);
|
||||
RTW_INFO("%s, but buddy_intf is under linking\n", __func__);
|
||||
ret = -EINVAL;
|
||||
goto cancel_ps_deny;
|
||||
}
|
||||
|
@ -3077,7 +3077,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
if (adapter_wdev_data(padapter)->block == _TRUE) {
|
||||
ret = -EBUSY;
|
||||
RTW_INFO("%s wdev_priv.block is set\n", __FUNCTION__);
|
||||
RTW_INFO("%s wdev_priv.block is set\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@ -3192,7 +3192,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
if (sme->key_len > 0 && sme->key) {
|
||||
u32 wep_key_idx, wep_key_len, wep_total_len;
|
||||
NDIS_802_11_WEP *pwep = NULL;
|
||||
RTW_INFO("%s(): Shared/Auto WEP\n", __FUNCTION__);
|
||||
RTW_INFO("%s(): Shared/Auto WEP\n", __func__);
|
||||
|
||||
wep_key_idx = sme->key_idx;
|
||||
wep_key_len = sme->key_len;
|
||||
|
@ -3281,7 +3281,7 @@ cancel_ps_deny:
|
|||
rtw_ps_deny_cancel(padapter, PS_DENY_JOIN);
|
||||
|
||||
exit:
|
||||
RTW_INFO("<=%s, ret %d\n", __FUNCTION__, ret);
|
||||
RTW_INFO("<=%s, ret %d\n", __func__, ret);
|
||||
|
||||
#ifdef SUPPLICANT_RTK_VERSION_LOWER_THAN_JB42
|
||||
padapter->mlmepriv.not_indic_disco = _FALSE;
|
||||
|
@ -4049,7 +4049,7 @@ static int rtw_add_beacon(_adapter *adapter, const u8 *head, size_t head_len, co
|
|||
/* struct sta_priv *pstapriv = &padapter->stapriv; */
|
||||
|
||||
|
||||
RTW_INFO("%s beacon_head_len=%zu, beacon_tail_len=%zu\n", __FUNCTION__, head_len, tail_len);
|
||||
RTW_INFO("%s beacon_head_len=%zu, beacon_tail_len=%zu\n", __func__, head_len, tail_len);
|
||||
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
|
||||
|
@ -4284,7 +4284,7 @@ static int cfg80211_rtw_add_station(struct wiphy *wiphy, struct net_device *ndev
|
|||
if (psta == NULL) {
|
||||
psta = rtw_alloc_stainfo(pstapriv, (u8 *)mac);
|
||||
if (psta == NULL) {
|
||||
RTW_INFO("[%s] Alloc station for "MAC_FMT" fail\n", __FUNCTION__, MAC_ARG(mac));
|
||||
RTW_INFO("[%s] Alloc station for "MAC_FMT" fail\n", __func__, MAC_ARG(mac));
|
||||
ret = -EOPNOTSUPP;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -4826,7 +4826,7 @@ void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf,
|
|||
size_t frame_body_len = len - sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
__be16 be_tmp;
|
||||
|
||||
RTW_INFO("[%s] In\n", __FUNCTION__);
|
||||
RTW_INFO("[%s] In\n", __func__);
|
||||
|
||||
/* prepare for building provision_request frame */
|
||||
_rtw_memcpy(pwdinfo->tx_prov_disc_info.peerIFAddr, GetAddr1Ptr(buf), ETH_ALEN);
|
||||
|
@ -6001,7 +6001,7 @@ static int cfg80211_rtw_tdls_mgmt(struct wiphy *wiphy,
|
|||
|
||||
/* Debug purpose */
|
||||
#if 1
|
||||
RTW_INFO("%s %d\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s %d\n", __func__, __LINE__);
|
||||
RTW_INFO("peer:"MAC_FMT", action code:%d, dialog:%d, status code:%d\n",
|
||||
MAC_ARG(txmgmt.peer), txmgmt.action_code,
|
||||
txmgmt.dialog_token, txmgmt.status_code);
|
||||
|
@ -6087,7 +6087,7 @@ static int cfg80211_rtw_tdls_oper(struct wiphy *wiphy,
|
|||
if (padapter->wdinfo.wfd_tdls_weaksec == _TRUE)
|
||||
issue_tdls_setup_req(padapter, &txmgmt, _TRUE);
|
||||
else
|
||||
RTW_INFO("[%s] Current link is not AES, SKIP sending the tdls setup request!!\n", __FUNCTION__);
|
||||
RTW_INFO("[%s] Current link is not AES, SKIP sending the tdls setup request!!\n", __func__);
|
||||
} else
|
||||
#endif /* CONFIG_WFD */
|
||||
{
|
||||
|
@ -6206,7 +6206,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf,
|
|||
|
||||
pmlmepriv->wps_beacon_ie = rtw_malloc(wps_ielen);
|
||||
if (pmlmepriv->wps_beacon_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
@ -6237,7 +6237,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf,
|
|||
|
||||
pmlmepriv->p2p_beacon_ie = rtw_malloc(p2p_ielen);
|
||||
if (pmlmepriv->p2p_beacon_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
@ -6316,7 +6316,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
|
||||
pmlmepriv->wps_probe_resp_ie = rtw_malloc(wps_ielen);
|
||||
if (pmlmepriv->wps_probe_resp_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
@ -6364,7 +6364,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
/* Check P2P Capability ATTR */
|
||||
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CAPABILITY, (u8 *)&le_tmp, (uint *)&attr_contentlen)) {
|
||||
u8 grp_cap = 0;
|
||||
/* RTW_INFO( "[%s] Got P2P Capability Attr!!\n", __FUNCTION__ ); */
|
||||
/* RTW_INFO( "[%s] Got P2P Capability Attr!!\n", __func__ ); */
|
||||
cap_attr = le16_to_cpu(le_tmp);
|
||||
grp_cap = (u8)((cap_attr >> 8) & 0xff);
|
||||
|
||||
|
@ -6385,7 +6385,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
|
||||
pmlmepriv->p2p_probe_resp_ie = rtw_malloc(p2p_ielen);
|
||||
if (pmlmepriv->p2p_probe_resp_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
@ -6401,7 +6401,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
|
||||
pmlmepriv->p2p_go_probe_resp_ie = rtw_malloc(p2p_ielen);
|
||||
if (pmlmepriv->p2p_go_probe_resp_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
@ -6456,7 +6456,7 @@ static int rtw_cfg80211_set_assoc_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
|
||||
pmlmepriv->wps_assoc_resp_ie = rtw_malloc(ie_len);
|
||||
if (pmlmepriv->wps_assoc_resp_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
}
|
||||
_rtw_memcpy(pmlmepriv->wps_assoc_resp_ie, ie, ie_len);
|
||||
|
@ -6475,7 +6475,7 @@ static int rtw_cfg80211_set_assoc_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
|
||||
pmlmepriv->p2p_assoc_resp_ie = rtw_malloc(ie_len);
|
||||
if (pmlmepriv->p2p_assoc_resp_ie == NULL) {
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s()-%d: rtw_malloc() ERROR!\n", __func__, __LINE__);
|
||||
return -EINVAL;
|
||||
}
|
||||
_rtw_memcpy(pmlmepriv->p2p_assoc_resp_ie, ie, ie_len);
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -24,11 +24,6 @@
|
|||
#include <rtw_mp_ioctl.h>
|
||||
#include "../../hal/phydm/phydm_precomp.h"
|
||||
|
||||
|
||||
#if defined(CONFIG_RTL8723B)
|
||||
#include <rtw_bt_mp.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Input Format: %s,%d,%d
|
||||
* %s is width, could be
|
||||
|
@ -1099,34 +1094,7 @@ int rtw_mp_thermal(struct net_device *dev,
|
|||
{
|
||||
u8 val;
|
||||
int bwrite = 1;
|
||||
|
||||
#ifdef CONFIG_RTL8188E
|
||||
u16 addr = EEPROM_THERMAL_METER_88E;
|
||||
#endif
|
||||
#if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) || defined(CONFIG_RTL8814A)
|
||||
u16 addr = EEPROM_THERMAL_METER_8812;
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8192E
|
||||
u16 addr = EEPROM_THERMAL_METER_8192E;
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8723B
|
||||
u16 addr = EEPROM_THERMAL_METER_8723B;
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8703B
|
||||
u16 addr = EEPROM_THERMAL_METER_8703B;
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8723D
|
||||
u16 addr = EEPROM_THERMAL_METER_8723D;
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8188F
|
||||
u16 addr = EEPROM_THERMAL_METER_8188F;
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8822B
|
||||
u16 addr = EEPROM_THERMAL_METER_8822B;
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8821C
|
||||
u16 addr = EEPROM_THERMAL_METER_8821C;
|
||||
#endif
|
||||
u16 cnt = 1;
|
||||
u16 max_available_size = 0;
|
||||
PADAPTER padapter = rtw_netdev_priv(dev);
|
||||
|
@ -1501,20 +1469,9 @@ int rtw_mp_pretx_proc(PADAPTER padapter, u8 bStartTest, char *extra)
|
|||
} else
|
||||
pmp_priv->mode = MP_ON;
|
||||
|
||||
#if defined(CONFIG_RTL8812A)
|
||||
if (IS_HARDWARE_TYPE_8812AU(padapter)) {
|
||||
/* <20130425, Kordan> Turn off OFDM Rx to prevent from CCA causing Tx hang.*/
|
||||
if (pmp_priv->mode == MP_PACKET_TX)
|
||||
phy_set_bb_reg(padapter, rCCAonSec_Jaguar, BIT3, 1);
|
||||
else
|
||||
phy_set_bb_reg(padapter, rCCAonSec_Jaguar, BIT3, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int rtw_mp_tx(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
|
@ -1963,24 +1920,7 @@ int rtw_mp_hwtx(struct net_device *dev,
|
|||
struct mp_priv *pmp_priv = &padapter->mppriv;
|
||||
PMPT_CONTEXT pMptCtx = &(padapter->mppriv.mpt_ctx);
|
||||
|
||||
#if defined(CONFIG_RTL8814A) || defined(CONFIG_RTL8821B) || defined(CONFIG_RTL8822B) || defined(CONFIG_RTL8821C)
|
||||
u8 input[128];
|
||||
|
||||
if (wrqu->data.length > 128)
|
||||
return -EFAULT;
|
||||
if (copy_from_user(input, wrqu->data.pointer, wrqu->data.length))
|
||||
return -EFAULT;
|
||||
|
||||
_rtw_memset(&pMptCtx->PMacTxInfo, 0, sizeof(RT_PMAC_TX_INFO));
|
||||
_rtw_memcpy((void *)&pMptCtx->PMacTxInfo, (void *)input, sizeof(RT_PMAC_TX_INFO));
|
||||
|
||||
mpt_ProSetPMacTx(padapter);
|
||||
sprintf(extra, "Set PMac Tx Mode start\n");
|
||||
|
||||
wrqu->data.length = strlen(extra);
|
||||
#endif
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
int rtw_efuse_mask_file(struct net_device *dev,
|
||||
|
@ -2103,346 +2043,4 @@ int rtw_efuse_file_map(struct net_device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_RTL8723B)
|
||||
int rtw_mp_SetBT(struct net_device *dev,
|
||||
struct iw_request_info *info,
|
||||
union iwreq_data *wrqu, char *extra)
|
||||
{
|
||||
PADAPTER padapter = rtw_netdev_priv(dev);
|
||||
struct hal_ops *pHalFunc = &padapter->hal_func;
|
||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||
|
||||
BT_REQ_CMD BtReq;
|
||||
PMPT_CONTEXT pMptCtx = &(padapter->mppriv.mpt_ctx);
|
||||
PBT_RSP_CMD pBtRsp = (PBT_RSP_CMD)&pMptCtx->mptOutBuf[0];
|
||||
char input[128];
|
||||
char *pch, *ptmp, *token, *tmp[2] = {0x00, 0x00};
|
||||
u8 setdata[100];
|
||||
u8 resetbt = 0x00;
|
||||
u8 tempval, BTStatus;
|
||||
u8 H2cSetbtmac[6];
|
||||
u8 u1H2CBtMpOperParm[4] = {0x01};
|
||||
int testmode = 1, ready = 1, trxparam = 1, setgen = 1, getgen = 1, testctrl = 1, testbt = 1, readtherm = 1, setbtmac = 1;
|
||||
u32 i = 0, ii = 0, jj = 0, kk = 0, cnts = 0, status = 0;
|
||||
PRT_MP_FIRMWARE pBTFirmware = NULL;
|
||||
|
||||
if (wrqu->data.length > 128)
|
||||
return -EFAULT;
|
||||
if (copy_from_user(extra, wrqu->data.pointer, wrqu->data.length))
|
||||
return -EFAULT;
|
||||
if (strlen(extra) < 1)
|
||||
return -EFAULT;
|
||||
|
||||
RTW_INFO("%s:iwpriv in=%s\n", __func__, extra);
|
||||
ready = strncmp(extra, "ready", 5);
|
||||
testmode = strncmp(extra, "testmode", 8); /* strncmp TRUE is 0*/
|
||||
trxparam = strncmp(extra, "trxparam", 8);
|
||||
setgen = strncmp(extra, "setgen", 6);
|
||||
getgen = strncmp(extra, "getgen", 6);
|
||||
testctrl = strncmp(extra, "testctrl", 8);
|
||||
testbt = strncmp(extra, "testbt", 6);
|
||||
readtherm = strncmp(extra, "readtherm", 9);
|
||||
setbtmac = strncmp(extra, "setbtmac", 8);
|
||||
|
||||
if (strncmp(extra, "dlbt", 4) == 0) {
|
||||
pHalData->LastHMEBoxNum = 0;
|
||||
padapter->bBTFWReady = _FALSE;
|
||||
rtw_write8(padapter, 0xa3, 0x05);
|
||||
BTStatus = rtw_read8(padapter, 0xa0);
|
||||
RTW_INFO("%s: btwmap before read 0xa0 BT Status =0x%x\n", __func__, BTStatus);
|
||||
if (BTStatus != 0x04) {
|
||||
sprintf(extra, "BT Status not Active DLFW FAIL\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
tempval = rtw_read8(padapter, 0x6B);
|
||||
tempval |= BIT7;
|
||||
rtw_write8(padapter, 0x6B, tempval);
|
||||
|
||||
/* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay*/
|
||||
/* So don't write 0x6A[14]=1 and 0x6A[15]=0 together!*/
|
||||
rtw_usleep_os(100);
|
||||
/* disable BT power cut*/
|
||||
/* 0x6A[14] = 0*/
|
||||
tempval = rtw_read8(padapter, 0x6B);
|
||||
tempval &= ~BIT6;
|
||||
rtw_write8(padapter, 0x6B, tempval);
|
||||
rtw_usleep_os(100);
|
||||
MPT_PwrCtlDM(padapter, 0);
|
||||
rtw_write32(padapter, 0xcc, (rtw_read32(padapter, 0xcc) | 0x00000004));
|
||||
rtw_write32(padapter, 0x6b, (rtw_read32(padapter, 0x6b) & 0xFFFFFFEF));
|
||||
rtw_msleep_os(600);
|
||||
rtw_write32(padapter, 0x6b, (rtw_read32(padapter, 0x6b) | 0x00000010));
|
||||
rtw_write32(padapter, 0xcc, (rtw_read32(padapter, 0xcc) & 0xFFFFFFFB));
|
||||
rtw_msleep_os(1200);
|
||||
pBTFirmware = (PRT_MP_FIRMWARE)rtw_zmalloc(sizeof(RT_MP_FIRMWARE));
|
||||
if (pBTFirmware == NULL)
|
||||
goto exit;
|
||||
padapter->bBTFWReady = _FALSE;
|
||||
FirmwareDownloadBT(padapter, pBTFirmware);
|
||||
if (pBTFirmware)
|
||||
rtw_mfree((u8 *)pBTFirmware, sizeof(RT_MP_FIRMWARE));
|
||||
|
||||
RTW_INFO("Wait for FirmwareDownloadBT fw boot!\n");
|
||||
rtw_msleep_os(2000);
|
||||
_rtw_memset(extra, '\0', wrqu->data.length);
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 0;
|
||||
BtReq.paraLength = 0;
|
||||
mptbt_BtControlProcess(padapter, &BtReq);
|
||||
rtw_msleep_os(100);
|
||||
|
||||
RTW_INFO("FirmwareDownloadBT ready = 0x%x 0x%x", pMptCtx->mptOutBuf[4], pMptCtx->mptOutBuf[5]);
|
||||
if ((pMptCtx->mptOutBuf[4] == 0x00) && (pMptCtx->mptOutBuf[5] == 0x00)) {
|
||||
|
||||
if (padapter->mppriv.bTxBufCkFail == _TRUE)
|
||||
sprintf(extra, "check TxBuf Fail.\n");
|
||||
else
|
||||
sprintf(extra, "download FW Fail.\n");
|
||||
} else {
|
||||
sprintf(extra, "download FW OK.\n");
|
||||
goto exit;
|
||||
}
|
||||
goto exit;
|
||||
}
|
||||
if (strncmp(extra, "dlfw", 4) == 0) {
|
||||
pHalData->LastHMEBoxNum = 0;
|
||||
padapter->bBTFWReady = _FALSE;
|
||||
rtw_write8(padapter, 0xa3, 0x05);
|
||||
BTStatus = rtw_read8(padapter, 0xa0);
|
||||
RTW_INFO("%s: btwmap before read 0xa0 BT Status =0x%x\n", __func__, BTStatus);
|
||||
if (BTStatus != 0x04) {
|
||||
sprintf(extra, "BT Status not Active DLFW FAIL\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
tempval = rtw_read8(padapter, 0x6B);
|
||||
tempval |= BIT7;
|
||||
rtw_write8(padapter, 0x6B, tempval);
|
||||
|
||||
/* Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay*/
|
||||
/* So don't write 0x6A[14]=1 and 0x6A[15]=0 together!*/
|
||||
rtw_usleep_os(100);
|
||||
/* disable BT power cut*/
|
||||
/* 0x6A[14] = 0*/
|
||||
tempval = rtw_read8(padapter, 0x6B);
|
||||
tempval &= ~BIT6;
|
||||
rtw_write8(padapter, 0x6B, tempval);
|
||||
rtw_usleep_os(100);
|
||||
|
||||
MPT_PwrCtlDM(padapter, 0);
|
||||
rtw_write32(padapter, 0xcc, (rtw_read32(padapter, 0xcc) | 0x00000004));
|
||||
rtw_write32(padapter, 0x6b, (rtw_read32(padapter, 0x6b) & 0xFFFFFFEF));
|
||||
rtw_msleep_os(600);
|
||||
rtw_write32(padapter, 0x6b, (rtw_read32(padapter, 0x6b) | 0x00000010));
|
||||
rtw_write32(padapter, 0xcc, (rtw_read32(padapter, 0xcc) & 0xFFFFFFFB));
|
||||
rtw_msleep_os(1200);
|
||||
|
||||
#if defined(CONFIG_PLATFORM_SPRD) && (MP_DRIVER == 1)
|
||||
/* Pull up BT reset pin.*/
|
||||
RTW_INFO("%s: pull up BT reset pin when bt start mp test\n", __func__);
|
||||
rtw_wifi_gpio_wlan_ctrl(WLAN_BT_PWDN_ON);
|
||||
#endif
|
||||
RTW_INFO(" FirmwareDownload!\n");
|
||||
|
||||
#if defined(CONFIG_RTL8723B)
|
||||
status = rtl8723b_FirmwareDownload(padapter, _FALSE);
|
||||
#endif
|
||||
RTW_INFO("Wait for FirmwareDownloadBT fw boot!\n");
|
||||
rtw_msleep_os(1000);
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
rtw_btcoex_HaltNotify(padapter);
|
||||
RTW_INFO("SetBT btcoex HaltNotify !\n");
|
||||
/*hal_btcoex1ant_SetAntPath(padapter);*/
|
||||
rtw_btcoex_SetManualControl(padapter, _TRUE);
|
||||
#endif
|
||||
_rtw_memset(extra, '\0', wrqu->data.length);
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 0;
|
||||
BtReq.paraLength = 0;
|
||||
mptbt_BtControlProcess(padapter, &BtReq);
|
||||
rtw_msleep_os(200);
|
||||
|
||||
RTW_INFO("FirmwareDownloadBT ready = 0x%x 0x%x", pMptCtx->mptOutBuf[4], pMptCtx->mptOutBuf[5]);
|
||||
if ((pMptCtx->mptOutBuf[4] == 0x00) && (pMptCtx->mptOutBuf[5] == 0x00)) {
|
||||
if (padapter->mppriv.bTxBufCkFail == _TRUE)
|
||||
sprintf(extra, "check TxBuf Fail.\n");
|
||||
else
|
||||
sprintf(extra, "download FW Fail.\n");
|
||||
} else {
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
rtw_btcoex_SwitchBtTRxMask(padapter);
|
||||
#endif
|
||||
rtw_msleep_os(200);
|
||||
sprintf(extra, "download FW OK.\n");
|
||||
goto exit;
|
||||
}
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (strncmp(extra, "down", 4) == 0) {
|
||||
RTW_INFO("SetBT down for to hal_init !\n");
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
rtw_btcoex_SetManualControl(padapter, _FALSE);
|
||||
rtw_btcoex_Initialize(padapter);
|
||||
#endif
|
||||
pHalFunc->read_adapter_info(padapter);
|
||||
pHalFunc->hal_deinit(padapter);
|
||||
pHalFunc->hal_init(padapter);
|
||||
rtw_pm_set_ips(padapter, IPS_NONE);
|
||||
LeaveAllPowerSaveMode(padapter);
|
||||
MPT_PwrCtlDM(padapter, 0);
|
||||
rtw_write32(padapter, 0xcc, (rtw_read32(padapter, 0xcc) | 0x00000004));
|
||||
rtw_write32(padapter, 0x6b, (rtw_read32(padapter, 0x6b) & 0xFFFFFFEF));
|
||||
rtw_msleep_os(600);
|
||||
/*rtw_write32(padapter, 0x6a, (rtw_read32(padapter, 0x6a)& 0xFFFFFFFE));*/
|
||||
rtw_write32(padapter, 0x6b, (rtw_read32(padapter, 0x6b) | 0x00000010));
|
||||
rtw_write32(padapter, 0xcc, (rtw_read32(padapter, 0xcc) & 0xFFFFFFFB));
|
||||
rtw_msleep_os(1200);
|
||||
goto exit;
|
||||
}
|
||||
if (strncmp(extra, "disable", 7) == 0) {
|
||||
RTW_INFO("SetBT disable !\n");
|
||||
rtw_write32(padapter, 0x6a, (rtw_read32(padapter, 0x6a) & 0xFFFFFFFB));
|
||||
rtw_msleep_os(500);
|
||||
goto exit;
|
||||
}
|
||||
if (strncmp(extra, "enable", 6) == 0) {
|
||||
RTW_INFO("SetBT enable !\n");
|
||||
rtw_write32(padapter, 0x6a, (rtw_read32(padapter, 0x6a) | 0x00000004));
|
||||
rtw_msleep_os(500);
|
||||
goto exit;
|
||||
}
|
||||
if (strncmp(extra, "h2c", 3) == 0) {
|
||||
RTW_INFO("SetBT h2c !\n");
|
||||
padapter->bBTFWReady = _TRUE;
|
||||
rtw_hal_fill_h2c_cmd(padapter, 0x63, 1, u1H2CBtMpOperParm);
|
||||
goto exit;
|
||||
}
|
||||
if (strncmp(extra, "2ant", 4) == 0) {
|
||||
RTW_INFO("Set BT 2ant use!\n");
|
||||
phy_set_mac_reg(padapter, 0x67, BIT5, 0x1);
|
||||
rtw_write32(padapter, 0x948, 0000);
|
||||
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (ready != 0 && testmode != 0 && trxparam != 0 && setgen != 0 && getgen != 0 && testctrl != 0 && testbt != 0 && readtherm != 0 && setbtmac != 0)
|
||||
return -EFAULT;
|
||||
|
||||
if (testbt == 0) {
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 6;
|
||||
BtReq.paraLength = cnts / 2;
|
||||
goto todo;
|
||||
}
|
||||
if (ready == 0) {
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 0;
|
||||
BtReq.paraLength = 0;
|
||||
goto todo;
|
||||
}
|
||||
|
||||
pch = extra;
|
||||
i = 0;
|
||||
while ((token = strsep(&pch, ",")) != NULL) {
|
||||
if (i > 1)
|
||||
break;
|
||||
tmp[i] = token;
|
||||
i++;
|
||||
}
|
||||
|
||||
if ((tmp[0] != NULL) && (tmp[1] != NULL)) {
|
||||
cnts = strlen(tmp[1]);
|
||||
if (cnts < 1)
|
||||
return -EFAULT;
|
||||
|
||||
RTW_INFO("%s: cnts=%d\n", __func__, cnts);
|
||||
RTW_INFO("%s: data=%s\n", __func__, tmp[1]);
|
||||
|
||||
for (jj = 0, kk = 0; jj < cnts; jj++, kk += 2) {
|
||||
BtReq.pParamStart[jj] = key_2char2num(tmp[1][kk], tmp[1][kk + 1]);
|
||||
/* RTW_INFO("BtReq.pParamStart[%d]=0x%02x\n", jj, BtReq.pParamStart[jj]);*/
|
||||
}
|
||||
} else
|
||||
return -EFAULT;
|
||||
|
||||
if (testmode == 0) {
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 1;
|
||||
BtReq.paraLength = 1;
|
||||
}
|
||||
if (trxparam == 0) {
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 2;
|
||||
BtReq.paraLength = cnts / 2;
|
||||
}
|
||||
if (setgen == 0) {
|
||||
RTW_INFO("%s: BT_SET_GENERAL\n", __func__);
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 3;/*BT_SET_GENERAL 3*/
|
||||
BtReq.paraLength = cnts / 2;
|
||||
}
|
||||
if (getgen == 0) {
|
||||
RTW_INFO("%s: BT_GET_GENERAL\n", __func__);
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 4;/*BT_GET_GENERAL 4*/
|
||||
BtReq.paraLength = cnts / 2;
|
||||
}
|
||||
if (readtherm == 0) {
|
||||
RTW_INFO("%s: BT_GET_GENERAL\n", __func__);
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 4;/*BT_GET_GENERAL 4*/
|
||||
BtReq.paraLength = cnts / 2;
|
||||
}
|
||||
|
||||
if (testctrl == 0) {
|
||||
RTW_INFO("%s: BT_TEST_CTRL\n", __func__);
|
||||
BtReq.opCodeVer = 1;
|
||||
BtReq.OpCode = 5;/*BT_TEST_CTRL 5*/
|
||||
BtReq.paraLength = cnts / 2;
|
||||
}
|
||||
|
||||
RTW_INFO("%s: Req opCodeVer=%d OpCode=%d paraLength=%d\n",
|
||||
__func__, BtReq.opCodeVer, BtReq.OpCode, BtReq.paraLength);
|
||||
|
||||
if (BtReq.paraLength < 1)
|
||||
goto todo;
|
||||
for (i = 0; i < BtReq.paraLength; i++) {
|
||||
RTW_INFO("%s: BtReq.pParamStart[%d] = 0x%02x\n",
|
||||
__func__, i, BtReq.pParamStart[i]);
|
||||
}
|
||||
|
||||
todo:
|
||||
_rtw_memset(extra, '\0', wrqu->data.length);
|
||||
|
||||
if (padapter->bBTFWReady == _FALSE) {
|
||||
sprintf(extra, "BTFWReady = FALSE.\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
mptbt_BtControlProcess(padapter, &BtReq);
|
||||
|
||||
if (readtherm == 0) {
|
||||
sprintf(extra, "BT thermal=");
|
||||
for (i = 4; i < pMptCtx->mptOutLen; i++) {
|
||||
if ((pMptCtx->mptOutBuf[i] == 0x00) && (pMptCtx->mptOutBuf[i + 1] == 0x00))
|
||||
goto exit;
|
||||
|
||||
sprintf(extra, "%s %d ", extra, (pMptCtx->mptOutBuf[i] & 0x1f));
|
||||
}
|
||||
} else {
|
||||
for (i = 4; i < pMptCtx->mptOutLen; i++)
|
||||
sprintf(extra, "%s 0x%x ", extra, pMptCtx->mptOutBuf[i]);
|
||||
}
|
||||
|
||||
exit:
|
||||
wrqu->data.length = strlen(extra) + 1;
|
||||
RTW_INFO("-%s: output len=%d data=%s\n", __func__, wrqu->data.length, extra);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
#endif /*#ifdef CONFIG_RTL8723B*/
|
||||
|
||||
#endif
|
||||
|
|
|
@ -595,7 +595,7 @@ static int mgnt_xmit_entry(struct sk_buff *skb, struct net_device *pnetdev)
|
|||
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
|
||||
_adapter *padapter = (_adapter *)phostapdpriv->padapter;
|
||||
|
||||
/* RTW_INFO("%s\n", __FUNCTION__); */
|
||||
/* RTW_INFO("%s\n", __func__); */
|
||||
|
||||
return rtw_hal_hostap_mgnt_xmit_entry(padapter, skb);
|
||||
}
|
||||
|
@ -621,7 +621,7 @@ static int mgnt_netdev_close(struct net_device *pnetdev)
|
|||
{
|
||||
struct hostapd_priv *phostapdpriv = rtw_netdev_priv(pnetdev);
|
||||
|
||||
RTW_INFO("%s\n", __FUNCTION__);
|
||||
RTW_INFO("%s\n", __func__);
|
||||
|
||||
usb_kill_anchored_urbs(&phostapdpriv->anchored);
|
||||
|
||||
|
|
|
@ -2737,7 +2737,7 @@ void netdev_br_init(struct net_device *netdev)
|
|||
memcpy(adapter->br_mac, br_netdev->dev_addr, ETH_ALEN);
|
||||
dev_put(br_netdev);
|
||||
} else
|
||||
printk("%s()-%d: dev_get_by_name(%s) failed!", __FUNCTION__, __LINE__, CONFIG_BR_EXT_BRNAME);
|
||||
printk("%s()-%d: dev_get_by_name(%s) failed!", __func__, __LINE__, CONFIG_BR_EXT_BRNAME);
|
||||
}
|
||||
|
||||
adapter->ethBrExtInfo.addPPPoETag = 1;
|
||||
|
@ -2928,7 +2928,7 @@ static int ips_netdrv_open(_adapter *padapter)
|
|||
|
||||
padapter->net_closed = _FALSE;
|
||||
|
||||
RTW_INFO("===> %s.........\n", __FUNCTION__);
|
||||
RTW_INFO("===> %s.........\n", __func__);
|
||||
|
||||
|
||||
rtw_clr_drv_stopped(padapter);
|
||||
|
@ -3003,7 +3003,7 @@ void rtw_ips_dev_unload(_adapter *padapter)
|
|||
#ifdef DBG_CONFIG_ERROR_DETECT
|
||||
struct sreset_priv *psrtpriv = &pHalData->srestpriv;
|
||||
#endif/* #ifdef DBG_CONFIG_ERROR_DETECT */
|
||||
RTW_INFO("====> %s...\n", __FUNCTION__);
|
||||
RTW_INFO("====> %s...\n", __func__);
|
||||
|
||||
|
||||
#if defined(CONFIG_SWLPS_IN_IPS) || defined(CONFIG_FWLPS_IN_IPS)
|
||||
|
@ -3445,8 +3445,8 @@ int rtw_gw_addr_query(_adapter *padapter)
|
|||
pmlmepriv->gw_ip[2] = (gw_addr & 0xff0000) >> 16;
|
||||
pmlmepriv->gw_ip[3] = (gw_addr & 0xff000000) >> 24;
|
||||
_rtw_memcpy(pmlmepriv->gw_mac_addr, gw_mac, 6);
|
||||
RTW_INFO("%s Gateway Mac:\t" MAC_FMT "\n", __FUNCTION__, MAC_ARG(pmlmepriv->gw_mac_addr));
|
||||
RTW_INFO("%s Gateway IP:\t" IP_FMT "\n", __FUNCTION__, IP_ARG(pmlmepriv->gw_ip));
|
||||
RTW_INFO("%s Gateway Mac:\t" MAC_FMT "\n", __func__, MAC_ARG(pmlmepriv->gw_mac_addr));
|
||||
RTW_INFO("%s Gateway IP:\t" IP_FMT "\n", __func__, IP_ARG(pmlmepriv->gw_ip));
|
||||
} else
|
||||
RTW_INFO("Get Gateway IP/MAC fail!\n");
|
||||
|
||||
|
@ -3505,7 +3505,7 @@ void rtw_dev_unload(_adapter *padapter)
|
|||
#ifdef CONFIG_WOWLAN
|
||||
if (pwrctl->bSupportRemoteWakeup == _TRUE &&
|
||||
pwrctl->wowlan_mode == _TRUE)
|
||||
RTW_INFO("%s bSupportRemoteWakeup==_TRUE do not run rtw_hal_deinit()\n", __FUNCTION__);
|
||||
RTW_INFO("%s bSupportRemoteWakeup==_TRUE do not run rtw_hal_deinit()\n", __func__);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
@ -3519,7 +3519,7 @@ void rtw_dev_unload(_adapter *padapter)
|
|||
|
||||
RTW_INFO("<== "FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter));
|
||||
} else {
|
||||
RTW_INFO("%s: bup==_FALSE\n", __FUNCTION__);
|
||||
RTW_INFO("%s: bup==_FALSE\n", __func__);
|
||||
}
|
||||
rtw_cancel_all_timer(padapter);
|
||||
}
|
||||
|
@ -3545,7 +3545,7 @@ int rtw_suspend_free_assoc_resource(_adapter *padapter)
|
|||
)
|
||||
#endif /* CONFIG_P2P */
|
||||
) {
|
||||
RTW_INFO("%s %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n", __FUNCTION__,
|
||||
RTW_INFO("%s %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n", __func__,
|
||||
pmlmepriv->cur_network.network.Ssid.Ssid,
|
||||
MAC_ARG(pmlmepriv->cur_network.network.MacAddress),
|
||||
pmlmepriv->cur_network.network.Ssid.SsidLength,
|
||||
|
@ -3580,7 +3580,7 @@ int rtw_suspend_free_assoc_resource(_adapter *padapter)
|
|||
}
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == _TRUE) {
|
||||
RTW_INFO("%s: fw_under_linking\n", __FUNCTION__);
|
||||
RTW_INFO("%s: fw_under_linking\n", __func__);
|
||||
rtw_indicate_disconnect(padapter, 0, _FALSE);
|
||||
}
|
||||
|
||||
|
@ -3664,7 +3664,7 @@ int rtw_suspend_wow(_adapter *padapter)
|
|||
if (rtw_chk_roam_flags(padapter, RTW_ROAM_ON_RESUME)) {
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)
|
||||
&& check_fwstate(pmlmepriv, _FW_LINKED)) {
|
||||
RTW_INFO("%s %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n", __FUNCTION__,
|
||||
RTW_INFO("%s %s(" MAC_FMT "), length:%d assoc_ssid.length:%d\n", __func__,
|
||||
pmlmepriv->cur_network.network.Ssid.Ssid,
|
||||
MAC_ARG(pmlmepriv->cur_network.network.MacAddress),
|
||||
pmlmepriv->cur_network.network.Ssid.SsidLength,
|
||||
|
@ -3717,7 +3717,7 @@ int rtw_suspend_wow(_adapter *padapter)
|
|||
#endif /* #ifdef CONFIG_LPS */
|
||||
|
||||
} else
|
||||
RTW_INFO("%s: ### ERROR ### wowlan_mode=%d\n", __FUNCTION__, pwrpriv->wowlan_mode);
|
||||
RTW_INFO("%s: ### ERROR ### wowlan_mode=%d\n", __func__, pwrpriv->wowlan_mode);
|
||||
RTW_INFO("<== "FUNC_ADPT_FMT" exit....\n", FUNC_ADPT_ARG(padapter));
|
||||
return ret;
|
||||
}
|
||||
|
@ -3846,7 +3846,7 @@ static int rtw_suspend_normal(_adapter *padapter)
|
|||
|
||||
if ((rtw_hal_check_ips_status(padapter) == _TRUE)
|
||||
|| (adapter_to_pwrctl(padapter)->rf_pwrstate == rf_off))
|
||||
RTW_INFO("%s: ### ERROR #### driver in IPS ####ERROR###!!!\n", __FUNCTION__);
|
||||
RTW_INFO("%s: ### ERROR #### driver in IPS ####ERROR###!!!\n", __func__);
|
||||
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
|
@ -3878,7 +3878,7 @@ int rtw_suspend_common(_adapter *padapter)
|
|||
u32 start_time = rtw_get_current_time();
|
||||
|
||||
RTW_INFO(" suspend start\n");
|
||||
RTW_INFO("==> %s (%s:%d)\n", __FUNCTION__, current->comm, current->pid);
|
||||
RTW_INFO("==> %s (%s:%d)\n", __func__, current->comm, current->pid);
|
||||
|
||||
pdbgpriv->dbg_suspend_cnt++;
|
||||
|
||||
|
@ -3944,7 +3944,7 @@ int rtw_suspend_common(_adapter *padapter)
|
|||
rtw_get_passing_time_ms(start_time));
|
||||
|
||||
exit:
|
||||
RTW_INFO("<=== %s return %d.............. in %dms\n", __FUNCTION__
|
||||
RTW_INFO("<=== %s return %d.............. in %dms\n", __func__
|
||||
, ret, rtw_get_passing_time_ms(start_time));
|
||||
|
||||
return ret;
|
||||
|
@ -4040,7 +4040,7 @@ int rtw_resume_process_wow(_adapter *padapter)
|
|||
rtw_netif_wake_queue(pnetdev);
|
||||
} else
|
||||
|
||||
RTW_INFO("%s: ### ERROR ### wowlan_mode=%d\n", __FUNCTION__, pwrpriv->wowlan_mode);
|
||||
RTW_INFO("%s: ### ERROR ### wowlan_mode=%d\n", __func__, pwrpriv->wowlan_mode);
|
||||
|
||||
if (padapter->pid[1] != 0) {
|
||||
RTW_INFO("pid[1]:%d\n", padapter->pid[1]);
|
||||
|
@ -4345,7 +4345,7 @@ int rtw_resume_common(_adapter *padapter)
|
|||
return 0;
|
||||
|
||||
RTW_INFO("resume start\n");
|
||||
RTW_INFO("==> %s (%s:%d)\n", __FUNCTION__, current->comm, current->pid);
|
||||
RTW_INFO("==> %s (%s:%d)\n", __func__, current->comm, current->pid);
|
||||
|
||||
if (rtw_mi_check_status(padapter, WIFI_AP_STATE) == _FALSE) {
|
||||
#ifdef CONFIG_WOWLAN
|
||||
|
@ -4369,7 +4369,7 @@ int rtw_resume_common(_adapter *padapter)
|
|||
pwrpriv->wowlan_in_resume = _FALSE;
|
||||
#endif
|
||||
}
|
||||
RTW_INFO("%s:%d in %d ms\n", __FUNCTION__ , ret,
|
||||
RTW_INFO("%s:%d in %d ms\n", __func__ , ret,
|
||||
rtw_get_passing_time_ms(start_time));
|
||||
|
||||
|
||||
|
|
|
@ -392,7 +392,7 @@ inline u8 *dbg_rtw_vmalloc(u32 sz, const enum mstat_f flags, const char *func, c
|
|||
u8 *p;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, sz))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p = _rtw_vmalloc((sz));
|
||||
|
||||
|
@ -410,7 +410,7 @@ inline u8 *dbg_rtw_zvmalloc(u32 sz, const enum mstat_f flags, const char *func,
|
|||
u8 *p;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, sz))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p = _rtw_zvmalloc((sz));
|
||||
|
||||
|
@ -427,7 +427,7 @@ inline void dbg_rtw_vmfree(u8 *pbuf, u32 sz, const enum mstat_f flags, const cha
|
|||
{
|
||||
|
||||
if (match_mstat_sniff_rules(flags, sz))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
_rtw_vmfree((pbuf), (sz));
|
||||
|
||||
|
@ -443,7 +443,7 @@ inline u8 *dbg_rtw_malloc(u32 sz, const enum mstat_f flags, const char *func, co
|
|||
u8 *p;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, sz))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p = _rtw_malloc((sz));
|
||||
|
||||
|
@ -461,7 +461,7 @@ inline u8 *dbg_rtw_zmalloc(u32 sz, const enum mstat_f flags, const char *func, c
|
|||
u8 *p;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, sz))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
p = _rtw_zmalloc((sz));
|
||||
|
||||
|
@ -477,7 +477,7 @@ inline u8 *dbg_rtw_zmalloc(u32 sz, const enum mstat_f flags, const char *func, c
|
|||
inline void dbg_rtw_mfree(u8 *pbuf, u32 sz, const enum mstat_f flags, const char *func, const int line)
|
||||
{
|
||||
if (match_mstat_sniff_rules(flags, sz))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz));
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __func__, (sz));
|
||||
|
||||
_rtw_mfree((pbuf), (sz));
|
||||
|
||||
|
@ -499,7 +499,7 @@ inline struct sk_buff *dbg_rtw_skb_alloc(unsigned int size, const enum mstat_f f
|
|||
truesize = skb->truesize;
|
||||
|
||||
if (!skb || truesize < size || match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d), skb:%p, truesize=%u\n", func, line, __FUNCTION__, size, skb, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d), skb:%p, truesize=%u\n", func, line, __func__, size, skb, truesize);
|
||||
|
||||
rtw_mstat_update(
|
||||
flags
|
||||
|
@ -515,7 +515,7 @@ inline void dbg_rtw_skb_free(struct sk_buff *skb, const enum mstat_f flags, cons
|
|||
unsigned int truesize = skb->truesize;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __func__, truesize);
|
||||
|
||||
_rtw_skb_free(skb);
|
||||
|
||||
|
@ -537,7 +537,7 @@ inline struct sk_buff *dbg_rtw_skb_copy(const struct sk_buff *skb, const enum ms
|
|||
cp_truesize = skb_cp->truesize;
|
||||
|
||||
if (!skb_cp || cp_truesize < truesize || match_mstat_sniff_rules(flags, cp_truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%u), skb_cp:%p, cp_truesize=%u\n", func, line, __FUNCTION__, truesize, skb_cp, cp_truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%u), skb_cp:%p, cp_truesize=%u\n", func, line, __func__, truesize, skb_cp, cp_truesize);
|
||||
|
||||
rtw_mstat_update(
|
||||
flags
|
||||
|
@ -559,7 +559,7 @@ inline struct sk_buff *dbg_rtw_skb_clone(struct sk_buff *skb, const enum mstat_f
|
|||
cl_truesize = skb_cl->truesize;
|
||||
|
||||
if (!skb_cl || cl_truesize < truesize || match_mstat_sniff_rules(flags, cl_truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%u), skb_cl:%p, cl_truesize=%u\n", func, line, __FUNCTION__, truesize, skb_cl, cl_truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%u), skb_cl:%p, cl_truesize=%u\n", func, line, __func__, truesize, skb_cl, cl_truesize);
|
||||
|
||||
rtw_mstat_update(
|
||||
flags
|
||||
|
@ -576,7 +576,7 @@ inline int dbg_rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb, const enum mstat
|
|||
unsigned int truesize = skb->truesize;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __func__, truesize);
|
||||
|
||||
ret = _rtw_netif_rx(ndev, skb);
|
||||
|
||||
|
@ -596,7 +596,7 @@ inline int dbg_rtw_netif_receive_skb(_nic_hdl ndev, struct sk_buff *skb, const e
|
|||
unsigned int truesize = skb->truesize;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __func__, truesize);
|
||||
|
||||
ret = _rtw_netif_receive_skb(ndev, skb);
|
||||
|
||||
|
@ -616,7 +616,7 @@ inline gro_result_t dbg_rtw_napi_gro_receive(struct napi_struct *napi, struct sk
|
|||
unsigned int truesize = skb->truesize;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __func__, truesize);
|
||||
|
||||
ret = _rtw_napi_gro_receive(napi, skb);
|
||||
|
||||
|
@ -645,7 +645,7 @@ inline void *dbg_rtw_usb_buffer_alloc(struct usb_device *dev, size_t size, dma_a
|
|||
void *p;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, size))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%zu)\n", func, line, __FUNCTION__, size);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%zu)\n", func, line, __func__, size);
|
||||
|
||||
p = _rtw_usb_buffer_alloc(dev, size, dma);
|
||||
|
||||
|
@ -662,7 +662,7 @@ inline void dbg_rtw_usb_buffer_free(struct usb_device *dev, size_t size, void *a
|
|||
{
|
||||
|
||||
if (match_mstat_sniff_rules(flags, size))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%zu)\n", func, line, __FUNCTION__, size);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%zu)\n", func, line, __func__, size);
|
||||
|
||||
_rtw_usb_buffer_free(dev, size, addr, dma);
|
||||
|
||||
|
@ -682,7 +682,7 @@ void *rtw_malloc2d(int h, int w, size_t size)
|
|||
|
||||
void **a = (void **) rtw_zmalloc(h * sizeof(void *) + h * w * size);
|
||||
if (a == NULL) {
|
||||
RTW_INFO("%s: alloc memory fail!\n", __FUNCTION__);
|
||||
RTW_INFO("%s: alloc memory fail!\n", __func__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -907,13 +907,13 @@ void rtw_usleep_os(int us)
|
|||
#ifdef DBG_DELAY_OS
|
||||
void _rtw_mdelay_os(int ms, const char *func, const int line)
|
||||
{
|
||||
RTW_INFO("%s:%d %s(%d)\n", func, line, __FUNCTION__, ms);
|
||||
RTW_INFO("%s:%d %s(%d)\n", func, line, __func__, ms);
|
||||
mdelay((unsigned long)ms);
|
||||
}
|
||||
|
||||
void _rtw_udelay_os(int us, const char *func, const int line)
|
||||
{
|
||||
RTW_INFO("%s:%d %s(%d)\n", func, line, __FUNCTION__, us);
|
||||
RTW_INFO("%s:%d %s(%d)\n", func, line, __func__, us);
|
||||
|
||||
udelay((unsigned long)us);
|
||||
}
|
||||
|
@ -1015,7 +1015,7 @@ inline void rtw_lock_suspend(void)
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __FUNCTION__, rtw_suspend_lock.stat.count); */
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count); */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1028,7 +1028,7 @@ inline void rtw_unlock_suspend(void)
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __FUNCTION__, rtw_suspend_lock.stat.count); */
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count); */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1041,7 +1041,7 @@ inline void rtw_resume_lock_suspend(void)
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __FUNCTION__, rtw_suspend_lock.stat.count); */
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count); */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1054,7 +1054,7 @@ inline void rtw_resume_unlock_suspend(void)
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __FUNCTION__, rtw_suspend_lock.stat.count); */
|
||||
/* RTW_INFO("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count); */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1297,7 +1297,7 @@ static int retriveFromFile(const char *path, u8 *buf, u32 sz)
|
|||
if (path && buf) {
|
||||
ret = openFile(&fp, path, O_RDONLY, 0);
|
||||
if (0 == ret) {
|
||||
RTW_INFO("%s openFile path:%s fp=%p\n", __FUNCTION__, path , fp);
|
||||
RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp);
|
||||
|
||||
oldfs = get_fs();
|
||||
set_fs(get_ds());
|
||||
|
@ -1305,12 +1305,12 @@ static int retriveFromFile(const char *path, u8 *buf, u32 sz)
|
|||
set_fs(oldfs);
|
||||
closeFile(fp);
|
||||
|
||||
RTW_INFO("%s readFile, ret:%d\n", __FUNCTION__, ret);
|
||||
RTW_INFO("%s readFile, ret:%d\n", __func__, ret);
|
||||
|
||||
} else
|
||||
RTW_INFO("%s openFile path:%s Fail, ret:%d\n", __FUNCTION__, path, ret);
|
||||
RTW_INFO("%s openFile path:%s Fail, ret:%d\n", __func__, path, ret);
|
||||
} else {
|
||||
RTW_INFO("%s NULL pointer\n", __FUNCTION__);
|
||||
RTW_INFO("%s NULL pointer\n", __func__);
|
||||
ret = -EINVAL;
|
||||
}
|
||||
return ret;
|
||||
|
@ -1332,7 +1332,7 @@ static int storeToFile(const char *path, u8 *buf, u32 sz)
|
|||
if (path && buf) {
|
||||
ret = openFile(&fp, path, O_CREAT | O_WRONLY, 0666);
|
||||
if (0 == ret) {
|
||||
RTW_INFO("%s openFile path:%s fp=%p\n", __FUNCTION__, path , fp);
|
||||
RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp);
|
||||
|
||||
oldfs = get_fs();
|
||||
set_fs(get_ds());
|
||||
|
@ -1340,12 +1340,12 @@ static int storeToFile(const char *path, u8 *buf, u32 sz)
|
|||
set_fs(oldfs);
|
||||
closeFile(fp);
|
||||
|
||||
RTW_INFO("%s writeFile, ret:%d\n", __FUNCTION__, ret);
|
||||
RTW_INFO("%s writeFile, ret:%d\n", __func__, ret);
|
||||
|
||||
} else
|
||||
RTW_INFO("%s openFile path:%s Fail, ret:%d\n", __FUNCTION__, path, ret);
|
||||
RTW_INFO("%s openFile path:%s Fail, ret:%d\n", __func__, path, ret);
|
||||
} else {
|
||||
RTW_INFO("%s NULL pointer\n", __FUNCTION__);
|
||||
RTW_INFO("%s NULL pointer\n", __func__);
|
||||
ret = -EINVAL;
|
||||
}
|
||||
return ret;
|
||||
|
|
|
@ -117,7 +117,7 @@ int rtw_os_alloc_recvframe(_adapter *padapter, union recv_frame *precvframe, u8
|
|||
res = _FAIL;
|
||||
#else
|
||||
if ((pattrib->mfrag == 1) && (pattrib->frag_num == 0)) {
|
||||
RTW_INFO("%s: alloc_skb fail , drop frag frame\n", __FUNCTION__);
|
||||
RTW_INFO("%s: alloc_skb fail , drop frag frame\n", __func__);
|
||||
/* rtw_free_recvframe(precvframe, pfree_recv_queue); */
|
||||
res = _FAIL;
|
||||
goto exit_rtw_os_recv_resource_alloc;
|
||||
|
@ -134,7 +134,7 @@ int rtw_os_alloc_recvframe(_adapter *padapter, union recv_frame *precvframe, u8
|
|||
precvframe->u.hdr.rx_head = precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pdata;
|
||||
precvframe->u.hdr.rx_end = pdata + alloc_sz;
|
||||
} else {
|
||||
RTW_INFO("%s: rtw_skb_clone fail\n", __FUNCTION__);
|
||||
RTW_INFO("%s: rtw_skb_clone fail\n", __func__);
|
||||
/* rtw_free_recvframe(precvframe, pfree_recv_queue); */
|
||||
/*exit_rtw_os_recv_resource_alloc;*/
|
||||
res = _FAIL;
|
||||
|
@ -299,7 +299,7 @@ _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8
|
|||
sub_skb->len = nSubframe_Length;
|
||||
skb_set_tail_pointer(sub_skb, nSubframe_Length);
|
||||
} else {
|
||||
RTW_INFO("%s(): rtw_skb_clone() Fail!!!\n", __FUNCTION__);
|
||||
RTW_INFO("%s(): rtw_skb_clone() Fail!!!\n", __func__);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -715,7 +715,7 @@ int rtw_recv_indicatepkt(_adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
if (rtw_wapi_check_for_drop(padapter, precv_frame)) {
|
||||
WAPI_TRACE(WAPI_ERR, "%s(): Rx Reorder Drop case!!\n", __FUNCTION__);
|
||||
WAPI_TRACE(WAPI_ERR, "%s(): Rx Reorder Drop case!!\n", __func__);
|
||||
goto _recv_indicatepkt_drop;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -248,7 +248,7 @@ static int rtw_android_pno_setup(struct net_device *net, char *command, int tota
|
|||
}
|
||||
str_ptr++;
|
||||
pno_repeat = simple_strtoul(str_ptr, &str_ptr, 16);
|
||||
RTW_INFO("%s :got pno_repeat=%d\n", __FUNCTION__, pno_repeat);
|
||||
RTW_INFO("%s :got pno_repeat=%d\n", __func__, pno_repeat);
|
||||
if (str_ptr[0] != PNO_TLV_FREQ_EXPO_MAX) {
|
||||
RTW_INFO("%s FREQ_EXPO_MAX corrupted field size\n",
|
||||
__func__);
|
||||
|
@ -261,7 +261,7 @@ static int rtw_android_pno_setup(struct net_device *net, char *command, int tota
|
|||
}
|
||||
}
|
||||
} else {
|
||||
RTW_INFO("%s get wrong TLV command\n", __FUNCTION__);
|
||||
RTW_INFO("%s get wrong TLV command\n", __func__);
|
||||
goto exit_proc;
|
||||
}
|
||||
|
||||
|
@ -621,13 +621,13 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
/*RTW_INFO("%s priv_cmd.buf=%p priv_cmd.total_len=%d priv_cmd.used_len=%d\n",__func__,priv_cmd.buf,priv_cmd.total_len,priv_cmd.used_len);*/
|
||||
command = rtw_zmalloc(priv_cmd.total_len);
|
||||
if (!command) {
|
||||
RTW_INFO("%s: failed to allocate memory\n", __FUNCTION__);
|
||||
RTW_INFO("%s: failed to allocate memory\n", __func__);
|
||||
ret = -ENOMEM;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
|
||||
RTW_INFO("%s: failed to access memory\n", __FUNCTION__);
|
||||
RTW_INFO("%s: failed to access memory\n", __func__);
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -637,7 +637,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
}
|
||||
|
||||
RTW_INFO("%s: Android private cmd \"%s\" on %s\n"
|
||||
, __FUNCTION__, command, ifr->ifr_name);
|
||||
, __func__, command, ifr->ifr_name);
|
||||
|
||||
cmd_num = rtw_android_cmdstr_to_num(command);
|
||||
|
||||
|
@ -651,7 +651,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
|
||||
if (!g_wifi_on) {
|
||||
RTW_INFO("%s: Ignore private cmd \"%s\" - iface %s is down\n"
|
||||
, __FUNCTION__, command, ifr->ifr_name);
|
||||
, __func__, command, ifr->ifr_name);
|
||||
ret = 0;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -905,13 +905,13 @@ response:
|
|||
if ((bytes_written == 0) && (priv_cmd.total_len > 0))
|
||||
command[0] = '\0';
|
||||
if (bytes_written >= priv_cmd.total_len) {
|
||||
RTW_INFO("%s: bytes_written = %d\n", __FUNCTION__, bytes_written);
|
||||
RTW_INFO("%s: bytes_written = %d\n", __func__, bytes_written);
|
||||
bytes_written = priv_cmd.total_len;
|
||||
} else
|
||||
bytes_written++;
|
||||
priv_cmd.used_len = bytes_written;
|
||||
if (copy_to_user((void __user *)priv_cmd.buf, command, bytes_written)) {
|
||||
RTW_INFO("%s: failed to copy data to user buffer\n", __FUNCTION__);
|
||||
RTW_INFO("%s: failed to copy data to user buffer\n", __func__);
|
||||
ret = -EFAULT;
|
||||
}
|
||||
} else
|
||||
|
@ -946,7 +946,7 @@ int rtw_android_wifictrl_func_add(void)
|
|||
|
||||
ret = wifi_add_dev();
|
||||
if (ret) {
|
||||
RTW_INFO("%s: platform_driver_register failed\n", __FUNCTION__);
|
||||
RTW_INFO("%s: platform_driver_register failed\n", __func__);
|
||||
return ret;
|
||||
}
|
||||
g_wifidev_registered = 1;
|
||||
|
@ -954,7 +954,7 @@ int rtw_android_wifictrl_func_add(void)
|
|||
/* Waiting callback after platform_driver_register is done or exit with error */
|
||||
if (down_timeout(&wifi_control_sem, msecs_to_jiffies(1000)) != 0) {
|
||||
ret = -EINVAL;
|
||||
RTW_INFO("%s: platform_driver_register timeout\n", __FUNCTION__);
|
||||
RTW_INFO("%s: platform_driver_register timeout\n", __func__);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -1000,7 +1000,7 @@ int wifi_get_irq_number(unsigned long *irq_flags_ptr)
|
|||
|
||||
int wifi_set_power(int on, unsigned long msec)
|
||||
{
|
||||
RTW_INFO("%s = %d\n", __FUNCTION__, on);
|
||||
RTW_INFO("%s = %d\n", __func__, on);
|
||||
if (wifi_control_data && wifi_control_data->set_power)
|
||||
wifi_control_data->set_power(on);
|
||||
if (msec)
|
||||
|
@ -1011,7 +1011,7 @@ int wifi_set_power(int on, unsigned long msec)
|
|||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
|
||||
int wifi_get_mac_addr(unsigned char *buf)
|
||||
{
|
||||
RTW_INFO("%s\n", __FUNCTION__);
|
||||
RTW_INFO("%s\n", __func__);
|
||||
if (!buf)
|
||||
return -EINVAL;
|
||||
if (wifi_control_data && wifi_control_data->get_mac_addr)
|
||||
|
@ -1023,7 +1023,7 @@ int wifi_get_mac_addr(unsigned char *buf)
|
|||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39)) || defined(COMPAT_KERNEL_RELEASE)
|
||||
void *wifi_get_country_code(char *ccode)
|
||||
{
|
||||
RTW_INFO("%s\n", __FUNCTION__);
|
||||
RTW_INFO("%s\n", __func__);
|
||||
if (!ccode)
|
||||
return NULL;
|
||||
if (wifi_control_data && wifi_control_data->get_country_code)
|
||||
|
@ -1034,7 +1034,7 @@ void *wifi_get_country_code(char *ccode)
|
|||
|
||||
static int wifi_set_carddetect(int on)
|
||||
{
|
||||
RTW_INFO("%s = %d\n", __FUNCTION__, on);
|
||||
RTW_INFO("%s = %d\n", __func__, on);
|
||||
if (wifi_control_data && wifi_control_data->set_carddetect)
|
||||
wifi_control_data->set_carddetect(on);
|
||||
return 0;
|
||||
|
@ -1046,7 +1046,7 @@ static int wifi_probe(struct platform_device *pdev)
|
|||
(struct wifi_platform_data *)(pdev->dev.platform_data);
|
||||
int wifi_wake_gpio = 0;
|
||||
|
||||
RTW_INFO("## %s\n", __FUNCTION__);
|
||||
RTW_INFO("## %s\n", __func__);
|
||||
wifi_irqres = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "bcmdhd_wlan_irq");
|
||||
|
||||
if (wifi_irqres == NULL)
|
||||
|
@ -1091,7 +1091,7 @@ static void shutdown_card(void)
|
|||
u8 tmp8, cnt = 0;
|
||||
|
||||
if (NULL == g_test_adapter) {
|
||||
RTW_INFO("%s: padapter==NULL\n", __FUNCTION__);
|
||||
RTW_INFO("%s: padapter==NULL\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1154,7 +1154,7 @@ static int wifi_remove(struct platform_device *pdev)
|
|||
struct wifi_platform_data *wifi_ctrl =
|
||||
(struct wifi_platform_data *)(pdev->dev.platform_data);
|
||||
|
||||
RTW_INFO("## %s\n", __FUNCTION__);
|
||||
RTW_INFO("## %s\n", __func__);
|
||||
wifi_control_data = wifi_ctrl;
|
||||
|
||||
wifi_set_power(0, 0); /* Power Off */
|
||||
|
@ -1171,7 +1171,7 @@ static void wifi_shutdown(struct platform_device *pdev)
|
|||
(struct wifi_platform_data *)(pdev->dev.platform_data);
|
||||
|
||||
|
||||
RTW_INFO("## %s\n", __FUNCTION__);
|
||||
RTW_INFO("## %s\n", __func__);
|
||||
|
||||
wifi_control_data = wifi_ctrl;
|
||||
|
||||
|
@ -1183,7 +1183,7 @@ static void wifi_shutdown(struct platform_device *pdev)
|
|||
|
||||
static int wifi_suspend(struct platform_device *pdev, pm_message_t state)
|
||||
{
|
||||
RTW_INFO("##> %s\n", __FUNCTION__);
|
||||
RTW_INFO("##> %s\n", __func__);
|
||||
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 39)) && defined(OOB_INTR_ONLY)
|
||||
bcmsdh_oob_intr_set(0);
|
||||
#endif
|
||||
|
@ -1192,7 +1192,7 @@ static int wifi_suspend(struct platform_device *pdev, pm_message_t state)
|
|||
|
||||
static int wifi_resume(struct platform_device *pdev)
|
||||
{
|
||||
RTW_INFO("##> %s\n", __FUNCTION__);
|
||||
RTW_INFO("##> %s\n", __func__);
|
||||
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 39)) && defined(OOB_INTR_ONLY)
|
||||
if (dhd_os_check_if_up(bcmsdh_get_drvdata()))
|
||||
bcmsdh_oob_intr_set(1);
|
||||
|
@ -1245,21 +1245,21 @@ static void wifi_del_dev(void)
|
|||
int wifi_configure_gpio(void)
|
||||
{
|
||||
if (gpio_request(oob_gpio, "oob_irq")) {
|
||||
RTW_INFO("## %s Cannot request GPIO\n", __FUNCTION__);
|
||||
RTW_INFO("## %s Cannot request GPIO\n", __func__);
|
||||
return -1;
|
||||
}
|
||||
gpio_export(oob_gpio, 0);
|
||||
if (gpio_direction_input(oob_gpio)) {
|
||||
RTW_INFO("## %s Cannot set GPIO direction input\n", __FUNCTION__);
|
||||
RTW_INFO("## %s Cannot set GPIO direction input\n", __func__);
|
||||
return -1;
|
||||
}
|
||||
oob_irq = gpio_to_irq(oob_gpio);
|
||||
if (oob_irq < 0) {
|
||||
RTW_INFO("## %s Cannot convert GPIO to IRQ\n", __FUNCTION__);
|
||||
RTW_INFO("## %s Cannot convert GPIO to IRQ\n", __func__);
|
||||
return -1;
|
||||
}
|
||||
|
||||
RTW_INFO("## %s OOB_IRQ=%d\n", __FUNCTION__, oob_irq);
|
||||
RTW_INFO("## %s OOB_IRQ=%d\n", __func__, oob_irq);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ struct sk_buff *dbg_rtw_cfg80211_vendor_event_alloc(struct wiphy *wiphy, struct
|
|||
truesize = skb->truesize;
|
||||
|
||||
if (!skb || truesize < len || match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d), skb:%p, truesize=%u\n", func, line, __FUNCTION__, len, skb, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d), skb:%p, truesize=%u\n", func, line, __func__, len, skb, truesize);
|
||||
|
||||
rtw_mstat_update(
|
||||
flags
|
||||
|
@ -77,7 +77,7 @@ void dbg_rtw_cfg80211_vendor_event(struct sk_buff *skb, gfp_t gfp
|
|||
unsigned int truesize = skb->truesize;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __func__, truesize);
|
||||
|
||||
cfg80211_vendor_event(skb, gfp);
|
||||
|
||||
|
@ -100,7 +100,7 @@ struct sk_buff *dbg_rtw_cfg80211_vendor_cmd_alloc_reply_skb(struct wiphy *wiphy,
|
|||
truesize = skb->truesize;
|
||||
|
||||
if (!skb || truesize < len || match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d), skb:%p, truesize=%u\n", func, line, __FUNCTION__, len, skb, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d), skb:%p, truesize=%u\n", func, line, __func__, len, skb, truesize);
|
||||
|
||||
rtw_mstat_update(
|
||||
flags
|
||||
|
@ -118,7 +118,7 @@ int dbg_rtw_cfg80211_vendor_cmd_reply(struct sk_buff *skb
|
|||
int ret;
|
||||
|
||||
if (match_mstat_sniff_rules(flags, truesize))
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __FUNCTION__, truesize);
|
||||
RTW_INFO("DBG_MEM_ALLOC %s:%d %s, truesize=%u\n", func, line, __func__, truesize);
|
||||
|
||||
ret = cfg80211_vendor_cmd_reply(skb);
|
||||
|
||||
|
@ -132,16 +132,16 @@ int dbg_rtw_cfg80211_vendor_cmd_reply(struct sk_buff *skb
|
|||
}
|
||||
|
||||
#define rtw_cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp) \
|
||||
dbg_rtw_cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
|
||||
dbg_rtw_cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __func__, __LINE__)
|
||||
|
||||
#define rtw_cfg80211_vendor_event(skb, gfp) \
|
||||
dbg_rtw_cfg80211_vendor_event(skb, gfp, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
|
||||
dbg_rtw_cfg80211_vendor_event(skb, gfp, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __func__, __LINE__)
|
||||
|
||||
#define rtw_cfg80211_vendor_cmd_alloc_reply_skb(wiphy, len) \
|
||||
dbg_rtw_cfg80211_vendor_cmd_alloc_reply_skb(wiphy, len, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
|
||||
dbg_rtw_cfg80211_vendor_cmd_alloc_reply_skb(wiphy, len, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __func__, __LINE__)
|
||||
|
||||
#define rtw_cfg80211_vendor_cmd_reply(skb) \
|
||||
dbg_rtw_cfg80211_vendor_cmd_reply(skb, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __FUNCTION__, __LINE__)
|
||||
dbg_rtw_cfg80211_vendor_cmd_reply(skb, MSTAT_FUNC_CFG_VENDOR | MSTAT_TYPE_SKB, __func__, __LINE__)
|
||||
#else
|
||||
|
||||
static struct sk_buff *rtw_cfg80211_vendor_event_alloc(
|
||||
|
|
|
@ -1822,11 +1822,11 @@ static int btreg_parse_str(char const *input, u8 *type, u16 *addr, u16 *val)
|
|||
|
||||
num = sscanf(input, "%s %x %x", str, &a, &v);
|
||||
if (num < 2) {
|
||||
RTW_INFO("%s: INVALID input!(%s)\n", __FUNCTION__, input);
|
||||
RTW_INFO("%s: INVALID input!(%s)\n", __func__, input);
|
||||
return -EINVAL;
|
||||
}
|
||||
if ((num < 3) && val) {
|
||||
RTW_INFO("%s: INVALID input!(%s)\n", __FUNCTION__, input);
|
||||
RTW_INFO("%s: INVALID input!(%s)\n", __func__, input);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -1842,7 +1842,7 @@ static int btreg_parse_str(char const *input, u8 *type, u16 *addr, u16 *val)
|
|||
}
|
||||
}
|
||||
if (i == n) {
|
||||
RTW_INFO("%s: unknown type(%s)!\n", __FUNCTION__, str);
|
||||
RTW_INFO("%s: unknown type(%s)!\n", __func__, str);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -1851,7 +1851,7 @@ static int btreg_parse_str(char const *input, u8 *type, u16 *addr, u16 *val)
|
|||
/* RF */
|
||||
if (a & 0xFFFFFF80) {
|
||||
RTW_INFO("%s: INVALID address(0x%X) for type %s(%d)!\n",
|
||||
__FUNCTION__, a, btreg_type[t], t);
|
||||
__func__, a, btreg_type[t], t);
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
|
@ -1859,7 +1859,7 @@ static int btreg_parse_str(char const *input, u8 *type, u16 *addr, u16 *val)
|
|||
/* Modem */
|
||||
if (a & 0xFFFFFE00) {
|
||||
RTW_INFO("%s: INVALID address(0x%X) for type %s(%d)!\n",
|
||||
__FUNCTION__, a, btreg_type[t], t);
|
||||
__func__, a, btreg_type[t], t);
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
|
@ -1867,7 +1867,7 @@ static int btreg_parse_str(char const *input, u8 *type, u16 *addr, u16 *val)
|
|||
/* Others(Bluewize, Vendor, LE) */
|
||||
if (a & 0xFFFFF000) {
|
||||
RTW_INFO("%s: INVALID address(0x%X) for type %s(%d)!\n",
|
||||
__FUNCTION__, a, btreg_type[t], t);
|
||||
__func__, a, btreg_type[t], t);
|
||||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
|
@ -1875,7 +1875,7 @@ static int btreg_parse_str(char const *input, u8 *type, u16 *addr, u16 *val)
|
|||
|
||||
if (val) {
|
||||
if (v & 0xFFFF0000) {
|
||||
RTW_INFO("%s: INVALID value(0x%x)!\n", __FUNCTION__, v);
|
||||
RTW_INFO("%s: INVALID value(0x%x)!\n", __func__, v);
|
||||
return -EINVAL;
|
||||
}
|
||||
*val = (u16)v;
|
||||
|
|
|
@ -62,7 +62,7 @@ static void rtw_dev_shutdown(struct device *dev)
|
|||
struct pwrctrl_priv *pwrctl = adapter_to_pwrctl(adapter);
|
||||
#ifdef CONFIG_WOWLAN
|
||||
if (pwrctl->wowlan_mode == _TRUE)
|
||||
RTW_INFO("%s wowlan_mode ==_TRUE do not run rtw_hal_deinit()\n", __FUNCTION__);
|
||||
RTW_INFO("%s wowlan_mode ==_TRUE do not run rtw_hal_deinit()\n", __func__);
|
||||
else
|
||||
#endif
|
||||
{
|
||||
|
@ -280,55 +280,8 @@ static void rtw_decide_chip_type_by_usb_info(struct dvobj_priv *pdvobjpriv, cons
|
|||
{
|
||||
pdvobjpriv->chip_type = pdid->driver_info;
|
||||
|
||||
#ifdef CONFIG_RTL8188E
|
||||
if (pdvobjpriv->chip_type == RTL8188E)
|
||||
rtl8188eu_set_hw_type(pdvobjpriv);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A)
|
||||
if (pdvobjpriv->chip_type == RTL8812 || pdvobjpriv->chip_type == RTL8821)
|
||||
rtl8812au_set_hw_type(pdvobjpriv);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTL8192E
|
||||
if (pdvobjpriv->chip_type == RTL8192E)
|
||||
rtl8192eu_set_hw_type(pdvobjpriv);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTL8723B
|
||||
if (pdvobjpriv->chip_type == RTL8723B)
|
||||
rtl8723bu_set_hw_type(pdvobjpriv);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTL8814A
|
||||
if (pdvobjpriv->chip_type == RTL8814A)
|
||||
rtl8814au_set_hw_type(pdvobjpriv);
|
||||
#endif /* CONFIG_RTL8814A */
|
||||
|
||||
#ifdef CONFIG_RTL8188F
|
||||
if (pdvobjpriv->chip_type == RTL8188F)
|
||||
rtl8188fu_set_hw_type(pdvobjpriv);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTL8703B
|
||||
if (pdvobjpriv->chip_type == RTL8703B)
|
||||
rtl8703bu_set_hw_type(pdvobjpriv);
|
||||
#endif /* CONFIG_RTL8703B */
|
||||
|
||||
#ifdef CONFIG_RTL8822B
|
||||
if (pdvobjpriv->chip_type == RTL8822B)
|
||||
rtl8822bu_set_hw_type(pdvobjpriv);
|
||||
#endif /* CONFIG_RTL8822B */
|
||||
|
||||
#ifdef CONFIG_RTL8723D
|
||||
if (pdvobjpriv->chip_type == RTL8723D)
|
||||
rtl8723du_set_hw_type(pdvobjpriv);
|
||||
#endif /* CONFIG_RTL8723D */
|
||||
|
||||
#ifdef CONFIG_RTL8821C
|
||||
if (pdvobjpriv->chip_type == RTL8821C)
|
||||
rtl8821cu_set_hw_type(pdvobjpriv);
|
||||
#endif /* CONFIG_RTL8821C */
|
||||
}
|
||||
|
||||
static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf, const struct usb_device_id *pdid)
|
||||
|
@ -515,56 +468,8 @@ u8 rtw_set_hal_ops(_adapter *padapter)
|
|||
if (rtw_hal_data_init(padapter) == _FAIL)
|
||||
return _FAIL;
|
||||
|
||||
#ifdef CONFIG_RTL8188E
|
||||
if (rtw_get_chip_type(padapter) == RTL8188E)
|
||||
rtl8188eu_set_hal_ops(padapter);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A)
|
||||
if (rtw_get_chip_type(padapter) == RTL8812 || rtw_get_chip_type(padapter) == RTL8821)
|
||||
rtl8812au_set_hal_ops(padapter);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTL8192E
|
||||
if (rtw_get_chip_type(padapter) == RTL8192E)
|
||||
rtl8192eu_set_hal_ops(padapter);
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8723B
|
||||
if (rtw_get_chip_type(padapter) == RTL8723B)
|
||||
rtl8723bu_set_hal_ops(padapter);
|
||||
#endif
|
||||
#ifdef CONFIG_RTL8814A
|
||||
if (rtw_get_chip_type(padapter) == RTL8814A)
|
||||
rtl8814au_set_hal_ops(padapter);
|
||||
#endif /* CONFIG_RTL8814A */
|
||||
|
||||
#ifdef CONFIG_RTL8188F
|
||||
if (rtw_get_chip_type(padapter) == RTL8188F)
|
||||
rtl8188fu_set_hal_ops(padapter);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_RTL8703B
|
||||
if (rtw_get_chip_type(padapter) == RTL8703B)
|
||||
rtl8703bu_set_hal_ops(padapter);
|
||||
#endif /* CONFIG_RTL8703B */
|
||||
|
||||
#ifdef CONFIG_RTL8822B
|
||||
if (rtw_get_chip_type(padapter) == RTL8822B)
|
||||
rtl8822bu_set_hal_ops(padapter);
|
||||
#endif /* CONFIG_RTL8822B */
|
||||
|
||||
#ifdef CONFIG_RTL8723D
|
||||
if (rtw_get_chip_type(padapter) == RTL8723D)
|
||||
rtl8723du_set_hal_ops(padapter);
|
||||
#endif /* CONFIG_RTL8723D */
|
||||
|
||||
|
||||
#ifdef CONFIG_RTL8821C
|
||||
if (rtw_get_chip_type(padapter) == RTL8821C) {
|
||||
if (rtl8821cu_set_hal_ops(padapter) == _FAIL)
|
||||
return _FAIL;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_FAIL == rtw_hal_ops_check(padapter))
|
||||
return _FAIL;
|
||||
|
@ -633,7 +538,7 @@ static void process_spec_devid(const struct usb_device_id *pdid)
|
|||
if ((pdid->idVendor == vid) && (pdid->idProduct == pid) && (flags & SPEC_DEV_ID_ASSIGN_IFNAME)) {
|
||||
extern char *ifname;
|
||||
strncpy(ifname, "wlan10", 6);
|
||||
/* RTW_INFO("%s()-%d: ifname=%s, vid=%04X, pid=%04X\n", __FUNCTION__, __LINE__, ifname, vid, pid); */
|
||||
/* RTW_INFO("%s()-%d: ifname=%s, vid=%04X, pid=%04X\n", __func__, __LINE__, ifname, vid, pid); */
|
||||
}
|
||||
#endif /* RTK_DMP_PLATFORM */
|
||||
|
||||
|
@ -708,7 +613,7 @@ int rtw_hw_suspend(_adapter *padapter)
|
|||
return 0;
|
||||
|
||||
error_exit:
|
||||
RTW_INFO("%s, failed\n", __FUNCTION__);
|
||||
RTW_INFO("%s, failed\n", __func__);
|
||||
return -1;
|
||||
|
||||
}
|
||||
|
@ -743,7 +648,7 @@ int rtw_hw_resume(_adapter *padapter)
|
|||
|
||||
return 0;
|
||||
error_exit:
|
||||
RTW_INFO("%s, Open net dev failed\n", __FUNCTION__);
|
||||
RTW_INFO("%s, Open net dev failed\n", __func__);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
@ -763,7 +668,7 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
padapter = dvobj_get_primary_adapter(dvobj);
|
||||
|
||||
if (pwrpriv->bInSuspend == _TRUE) {
|
||||
RTW_INFO("%s bInSuspend = %d\n", __FUNCTION__, pwrpriv->bInSuspend);
|
||||
RTW_INFO("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend);
|
||||
pdbgpriv->dbg_suspend_error_cnt++;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -799,7 +704,7 @@ static int rtw_resume_process(_adapter *padapter)
|
|||
|
||||
if (pwrpriv->bInSuspend == _FALSE) {
|
||||
pdbgpriv->dbg_resume_error_cnt++;
|
||||
RTW_INFO("%s bInSuspend = %d\n", __FUNCTION__, pwrpriv->bInSuspend);
|
||||
RTW_INFO("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -876,7 +781,7 @@ static int rtw_resume(struct usb_interface *pusb_intf)
|
|||
padapter = dvobj_get_primary_adapter(dvobj);
|
||||
pmlmeext = &padapter->mlmeextpriv;
|
||||
|
||||
RTW_INFO("==> %s (%s:%d)\n", __FUNCTION__, current->comm, current->pid);
|
||||
RTW_INFO("==> %s (%s:%d)\n", __func__, current->comm, current->pid);
|
||||
pdbgpriv->dbg_resume_cnt++;
|
||||
|
||||
if (pwrpriv->bInternalAutoSuspend)
|
||||
|
@ -903,7 +808,7 @@ static int rtw_resume(struct usb_interface *pusb_intf)
|
|||
}
|
||||
|
||||
pmlmeext->last_scan_time = rtw_get_current_time();
|
||||
RTW_INFO("<======== %s return %d\n", __FUNCTION__, ret);
|
||||
RTW_INFO("<======== %s return %d\n", __func__, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -1137,9 +1042,9 @@ static _adapter *rtw_usb_primary_adapter_init(struct dvobj_priv *dvobj,
|
|||
/* usb_autopm_get_interface(adapter_to_dvobj(padapter)->pusbintf ); */ /* init pm_usage_cnt ,let it start from 1 */
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32))
|
||||
RTW_INFO("%s...pm_usage_cnt(%d).....\n", __FUNCTION__, atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
RTW_INFO("%s...pm_usage_cnt(%d).....\n", __func__, atomic_read(&(dvobj->pusbintf->pm_usage_cnt)));
|
||||
#else
|
||||
RTW_INFO("%s...pm_usage_cnt(%d).....\n", __FUNCTION__, dvobj->pusbintf->pm_usage_cnt);
|
||||
RTW_INFO("%s...pm_usage_cnt(%d).....\n", __func__, dvobj->pusbintf->pm_usage_cnt);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u16 inde
|
|||
u8 tmp_buf[MAX_USB_IO_CTL_SIZE];
|
||||
#endif
|
||||
|
||||
/* RTW_INFO("%s %s:%d\n",__FUNCTION__, current->comm, current->pid); */
|
||||
/* RTW_INFO("%s %s:%d\n",__func__, current->comm, current->pid); */
|
||||
|
||||
if (RTW_CANNOT_IO(padapter)) {
|
||||
status = -EPERM;
|
||||
|
@ -55,7 +55,7 @@ int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u16 inde
|
|||
}
|
||||
|
||||
if (len > MAX_VENDOR_REQ_CMD_SIZE) {
|
||||
RTW_INFO("[%s] Buffer len error ,vendor request failed\n", __FUNCTION__);
|
||||
RTW_INFO("[%s] Buffer len error ,vendor request failed\n", __func__);
|
||||
status = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u16 inde
|
|||
#endif
|
||||
|
||||
if (pIo_buf == NULL) {
|
||||
RTW_INFO("[%s] pIo_buf == NULL\n", __FUNCTION__);
|
||||
RTW_INFO("[%s] pIo_buf == NULL\n", __func__);
|
||||
status = -ENOMEM;
|
||||
goto release_mutex;
|
||||
}
|
||||
|
@ -729,7 +729,7 @@ void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
|
||||
if ((purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE)) {
|
||||
RTW_INFO("%s()-%d: urb->actual_length:%u, MAX_RECVBUF_SZ:%u, RXDESC_SIZE:%u\n"
|
||||
, __FUNCTION__, __LINE__, purb->actual_length, MAX_RECVBUF_SZ, RXDESC_SIZE);
|
||||
, __func__, __LINE__, purb->actual_length, MAX_RECVBUF_SZ, RXDESC_SIZE);
|
||||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
} else {
|
||||
rtw_reset_continual_io_error(adapter_to_dvobj(padapter));
|
||||
|
@ -884,7 +884,7 @@ void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
|
|||
|
||||
if ((purb->actual_length > MAX_RECVBUF_SZ) || (purb->actual_length < RXDESC_SIZE)) {
|
||||
RTW_INFO("%s()-%d: urb->actual_length:%u, MAX_RECVBUF_SZ:%u, RXDESC_SIZE:%u\n"
|
||||
, __FUNCTION__, __LINE__, purb->actual_length, MAX_RECVBUF_SZ, RXDESC_SIZE);
|
||||
, __func__, __LINE__, purb->actual_length, MAX_RECVBUF_SZ, RXDESC_SIZE);
|
||||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
} else {
|
||||
rtw_reset_continual_io_error(adapter_to_dvobj(padapter));
|
||||
|
|
|
@ -94,11 +94,11 @@ void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
|
|||
udp->check = 0;
|
||||
#endif
|
||||
} else {
|
||||
RTW_INFO("%s-%d TCP CSUM offload Error!!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s-%d TCP CSUM offload Error!!\n", __func__, __LINE__);
|
||||
WARN_ON(1); /* we need a WARN() */
|
||||
}
|
||||
} else { /* IP fragmentation case */
|
||||
RTW_INFO("%s-%d nr_frags != 0, using skb_checksum_help(skb);!!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s-%d nr_frags != 0, using skb_checksum_help(skb);!!\n", __func__, __LINE__);
|
||||
skb_checksum_help(skb);
|
||||
}
|
||||
}
|
||||
|
@ -421,13 +421,13 @@ int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
|
|||
res = rtw_xmit(padapter, &newskb);
|
||||
if (res < 0) {
|
||||
DBG_COUNTER(padapter->tx_logs.os_tx_m2u_entry_err_xmit);
|
||||
RTW_INFO("%s()-%d: rtw_xmit() return error! res=%d\n", __FUNCTION__, __LINE__, res);
|
||||
RTW_INFO("%s()-%d: rtw_xmit() return error! res=%d\n", __func__, __LINE__, res);
|
||||
pxmitpriv->tx_drop++;
|
||||
rtw_skb_free(newskb);
|
||||
}
|
||||
} else {
|
||||
DBG_COUNTER(padapter->tx_logs.os_tx_m2u_entry_err_skb);
|
||||
RTW_INFO("%s-%d: rtw_skb_copy() failed!\n", __FUNCTION__, __LINE__);
|
||||
RTW_INFO("%s-%d: rtw_skb_copy() failed!\n", __func__, __LINE__);
|
||||
pxmitpriv->tx_drop++;
|
||||
/* rtw_skb_free(skb); */
|
||||
return _FALSE; /* Caller shall tx this multicast frame via normal way. */
|
||||
|
@ -462,7 +462,7 @@ int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev)
|
|||
if (rtw_if_up(padapter) == _FALSE) {
|
||||
DBG_COUNTER(padapter->tx_logs.os_tx_err_up);
|
||||
#ifdef DBG_TX_DROP_FRAME
|
||||
RTW_INFO("DBG_TX_DROP_FRAME %s if_up fail\n", __FUNCTION__);
|
||||
RTW_INFO("DBG_TX_DROP_FRAME %s if_up fail\n", __func__);
|
||||
#endif
|
||||
goto drop_packet;
|
||||
}
|
||||
|
@ -495,7 +495,7 @@ int _rtw_xmit_entry(_pkt *pkt, _nic_hdl pnetdev)
|
|||
res = rtw_xmit(padapter, &pkt);
|
||||
if (res < 0) {
|
||||
#ifdef DBG_TX_DROP_FRAME
|
||||
RTW_INFO("DBG_TX_DROP_FRAME %s rtw_xmit fail\n", __FUNCTION__);
|
||||
RTW_INFO("DBG_TX_DROP_FRAME %s rtw_xmit fail\n", __func__);
|
||||
#endif
|
||||
goto drop_packet;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue