qcacld-3.0: Remove redundant __func__ from the logs
The logging macros implicitly takes care of embedding function name in the log, hence there is no need to include __func__ again. Getting rid of redundant __func__ reduces driver memory footprint. Change-Id: Idf4685539991f65205f19b27551cef699230c82e CRs-Fixed: 2768575
这个提交包含在:
@@ -2753,8 +2753,7 @@ uint32_t policy_mgr_search_and_check_for_session_conc(
|
|||||||
status = policy_mgr_get_channel_from_scan_result(
|
status = policy_mgr_get_channel_from_scan_result(
|
||||||
psoc, roam_profile, &ch_freq, session_id);
|
psoc, roam_profile, &ch_freq, session_id);
|
||||||
if (QDF_STATUS_SUCCESS != status || ch_freq == 0) {
|
if (QDF_STATUS_SUCCESS != status || ch_freq == 0) {
|
||||||
policy_mgr_err("%s error %d %d",
|
policy_mgr_err("status: %d ch_freq: %d", status, ch_freq);
|
||||||
__func__, status, ch_freq);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3794,8 +3793,8 @@ QDF_STATUS policy_mgr_get_updated_scan_and_fw_mode_config(
|
|||||||
WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_SET(*scan_config, 0);
|
WMI_DBS_CONC_SCAN_CFG_ASYNC_DBS_SCAN_SET(*scan_config, 0);
|
||||||
break;
|
break;
|
||||||
case ENABLE_DBS_CXN_AND_DISABLE_DBS_SCAN:
|
case ENABLE_DBS_CXN_AND_DISABLE_DBS_SCAN:
|
||||||
policy_mgr_debug("%s: dual_mac_disable_ini:%d ", __func__,
|
policy_mgr_debug("dual_mac_disable_ini:%d ",
|
||||||
dual_mac_disable_ini);
|
dual_mac_disable_ini);
|
||||||
WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_SET(*scan_config, 0);
|
WMI_DBS_CONC_SCAN_CFG_DBS_SCAN_SET(*scan_config, 0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -211,7 +211,7 @@ static QDF_STATUS ocb_tsf_timer(struct ocb_rx_event *evt)
|
|||||||
ocb_debug("TSF timer low=%d, high=%d",
|
ocb_debug("TSF timer low=%d, high=%d",
|
||||||
tsf_timer->timer_low, tsf_timer->timer_high);
|
tsf_timer->timer_low, tsf_timer->timer_high);
|
||||||
if (cbs && cbs->ocb_get_tsf_timer_callback) {
|
if (cbs && cbs->ocb_get_tsf_timer_callback) {
|
||||||
ocb_debug("%s: send TSF timer.", __func__);
|
ocb_debug("send TSF timer");
|
||||||
cbs->ocb_get_tsf_timer_callback(cbs->ocb_get_tsf_timer_context,
|
cbs->ocb_get_tsf_timer_callback(cbs->ocb_get_tsf_timer_context,
|
||||||
tsf_timer);
|
tsf_timer);
|
||||||
status = QDF_STATUS_SUCCESS;
|
status = QDF_STATUS_SUCCESS;
|
||||||
@@ -249,7 +249,7 @@ static QDF_STATUS ocb_dcc_stats_response(struct ocb_rx_event *evt)
|
|||||||
cbs = wlan_ocb_get_callbacks(pdev);
|
cbs = wlan_ocb_get_callbacks(pdev);
|
||||||
dcc_stats = &event->rsp.dcc_stats;
|
dcc_stats = &event->rsp.dcc_stats;
|
||||||
if (cbs && cbs->ocb_dcc_get_stats_callback) {
|
if (cbs && cbs->ocb_dcc_get_stats_callback) {
|
||||||
ocb_debug("%s: send DCC stats", __func__);
|
ocb_debug("send DCC stats");
|
||||||
cbs->ocb_dcc_get_stats_callback(cbs->ocb_dcc_get_stats_context,
|
cbs->ocb_dcc_get_stats_callback(cbs->ocb_dcc_get_stats_context,
|
||||||
dcc_stats);
|
dcc_stats);
|
||||||
status = QDF_STATUS_SUCCESS;
|
status = QDF_STATUS_SUCCESS;
|
||||||
@@ -286,7 +286,7 @@ static QDF_STATUS ocb_ndl_response(struct ocb_rx_event *evt)
|
|||||||
cbs = wlan_ocb_get_callbacks(pdev);
|
cbs = wlan_ocb_get_callbacks(pdev);
|
||||||
ndl = &event->rsp.ndl;
|
ndl = &event->rsp.ndl;
|
||||||
if (cbs && cbs->ocb_dcc_update_ndl_callback) {
|
if (cbs && cbs->ocb_dcc_update_ndl_callback) {
|
||||||
ocb_debug("%s: NDL update response", __func__);
|
ocb_debug("NDL update response");
|
||||||
cbs->ocb_dcc_update_ndl_callback(
|
cbs->ocb_dcc_update_ndl_callback(
|
||||||
cbs->ocb_dcc_update_ndl_context, ndl);
|
cbs->ocb_dcc_update_ndl_context, ndl);
|
||||||
status = QDF_STATUS_SUCCESS;
|
status = QDF_STATUS_SUCCESS;
|
||||||
@@ -324,7 +324,7 @@ static QDF_STATUS ocb_dcc_indication(struct ocb_rx_event *evt)
|
|||||||
cbs = wlan_ocb_get_callbacks(pdev);
|
cbs = wlan_ocb_get_callbacks(pdev);
|
||||||
dcc_stats = &event->rsp.dcc_stats;
|
dcc_stats = &event->rsp.dcc_stats;
|
||||||
if (cbs && cbs->ocb_dcc_stats_event_callback) {
|
if (cbs && cbs->ocb_dcc_stats_event_callback) {
|
||||||
ocb_debug("%s: DCC stats indication", __func__);
|
ocb_debug("DCC stats indication");
|
||||||
cbs->ocb_dcc_stats_event_callback(
|
cbs->ocb_dcc_stats_event_callback(
|
||||||
cbs->ocb_dcc_stats_event_context, dcc_stats);
|
cbs->ocb_dcc_stats_event_context, dcc_stats);
|
||||||
status = QDF_STATUS_SUCCESS;
|
status = QDF_STATUS_SUCCESS;
|
||||||
|
@@ -416,8 +416,8 @@ pmo_register_action_frame_patterns(struct wlan_objmgr_vdev *vdev,
|
|||||||
|
|
||||||
for (i = 0; i < PMO_SUPPORTED_ACTION_CATE_ELE_LIST; i++) {
|
for (i = 0; i < PMO_SUPPORTED_ACTION_CATE_ELE_LIST; i++) {
|
||||||
if (i < ALLOWED_ACTION_FRAME_MAP_WORDS)
|
if (i < ALLOWED_ACTION_FRAME_MAP_WORDS)
|
||||||
pmo_debug("%s: %d action Wakeup pattern 0x%x in fw",
|
pmo_debug("%d action Wakeup pattern 0x%x in fw",
|
||||||
__func__, i, cmd.action_category_map[i]);
|
i, cmd.action_category_map[i]);
|
||||||
else
|
else
|
||||||
cmd.action_category_map[i] = 0;
|
cmd.action_category_map[i] = 0;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -36,7 +36,7 @@ target_if_encrypt_decrypt_event_handler(ol_scn_t scn_handle, uint8_t *data,
|
|||||||
wmi_unified_t wmi_handle;
|
wmi_unified_t wmi_handle;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
target_if_err("%s: invalid pointer", __func__);
|
target_if_err("Invalid pointer");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ target_if_time_sync_ftm_start_stop_event_handler(ol_scn_t scn_handle,
|
|||||||
wmi_unified_t wmi_handle;
|
wmi_unified_t wmi_handle;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
target_if_err("%s: invalid pointer", __func__);
|
target_if_err("Invalid pointer");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ target_if_time_sync_master_slave_offset_event_handler(ol_scn_t scn_handle,
|
|||||||
wmi_unified_t wmi_handle;
|
wmi_unified_t wmi_handle;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
target_if_err("%s: invalid pointer", __func__);
|
target_if_err("Invalid pointer");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1062,12 +1062,12 @@ stop_wmi:
|
|||||||
|
|
||||||
hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||||
if (!hif_ctx)
|
if (!hif_ctx)
|
||||||
cds_err("%s: Failed to get hif_handle!", __func__);
|
cds_err("Failed to get hif_handle!");
|
||||||
|
|
||||||
wma_wmi_stop();
|
wma_wmi_stop();
|
||||||
|
|
||||||
if (hif_ctx) {
|
if (hif_ctx) {
|
||||||
cds_err("%s: Disable the isr & reset the soc!", __func__);
|
cds_err("Disable the isr & reset the soc!");
|
||||||
hif_disable_isr(hif_ctx);
|
hif_disable_isr(hif_ctx);
|
||||||
hif_reset_soc(hif_ctx);
|
hif_reset_soc(hif_ctx);
|
||||||
}
|
}
|
||||||
@@ -2634,7 +2634,7 @@ bool cds_is_5_mhz_enabled(void)
|
|||||||
|
|
||||||
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
||||||
if (!p_cds_context) {
|
if (!p_cds_context) {
|
||||||
cds_err("%s: cds context is invalid", __func__);
|
cds_err("cds context is invalid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2656,7 +2656,7 @@ bool cds_is_10_mhz_enabled(void)
|
|||||||
|
|
||||||
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
||||||
if (!p_cds_context) {
|
if (!p_cds_context) {
|
||||||
cds_err("%s: cds context is invalid", __func__);
|
cds_err("cds context is invalid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2678,7 +2678,7 @@ bool cds_is_sub_20_mhz_enabled(void)
|
|||||||
|
|
||||||
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
||||||
if (!p_cds_context) {
|
if (!p_cds_context) {
|
||||||
cds_err("%s: cds context is invalid", __func__);
|
cds_err("cds context is invalid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2699,7 +2699,7 @@ bool cds_is_self_recovery_enabled(void)
|
|||||||
|
|
||||||
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
p_cds_context = cds_get_context(QDF_MODULE_ID_QDF);
|
||||||
if (!p_cds_context) {
|
if (!p_cds_context) {
|
||||||
cds_err("%s: cds context is invalid", __func__);
|
cds_err("cds context is invalid");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2252,7 +2252,7 @@ QDF_STATUS hdd_roam_register_sta(struct hdd_adapter *adapter,
|
|||||||
cdp_vdev_register(soc, adapter->vdev_id, (ol_osif_vdev_handle)adapter,
|
cdp_vdev_register(soc, adapter->vdev_id, (ol_osif_vdev_handle)adapter,
|
||||||
&txrx_ops);
|
&txrx_ops);
|
||||||
if (!txrx_ops.tx.tx) {
|
if (!txrx_ops.tx.tx) {
|
||||||
hdd_err("%s vdev register fail", __func__);
|
hdd_err("vdev register fail");
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -14376,8 +14376,7 @@ static int __wlan_hdd_cfg80211_get_nud_stats(struct wiphy *wiphy,
|
|||||||
skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy,
|
skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy,
|
||||||
WLAN_NUD_STATS_LEN);
|
WLAN_NUD_STATS_LEN);
|
||||||
if (!skb) {
|
if (!skb) {
|
||||||
hdd_err("%s: cfg80211_vendor_cmd_alloc_reply_skb failed",
|
hdd_err("cfg80211_vendor_cmd_alloc_reply_skb failed");
|
||||||
__func__);
|
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
@@ -19653,8 +19652,8 @@ static int wlan_hdd_cfg80211_set_ie(struct hdd_adapter *adapter,
|
|||||||
|
|
||||||
/* Sanity check on eLen */
|
/* Sanity check on eLen */
|
||||||
if (eLen > remLen) {
|
if (eLen > remLen) {
|
||||||
hdd_err("%s: Invalid IE length[%d] for IE[0x%X]",
|
hdd_err("Invalid IE length[%d] for IE[0x%X]",
|
||||||
__func__, eLen, elementId);
|
eLen, elementId);
|
||||||
QDF_ASSERT(0);
|
QDF_ASSERT(0);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
@@ -19688,8 +19687,8 @@ static int wlan_hdd_cfg80211_set_ie(struct hdd_adapter *adapter,
|
|||||||
assoc_add_ie->length;
|
assoc_add_ie->length;
|
||||||
} else if (0 == memcmp(&genie[0], "\x00\x50\xf2", 3)) {
|
} else if (0 == memcmp(&genie[0], "\x00\x50\xf2", 3)) {
|
||||||
if (eLen > (WLAN_MAX_IE_LEN - 2)) {
|
if (eLen > (WLAN_MAX_IE_LEN - 2)) {
|
||||||
hdd_err("%s: Invalid WPA IE length[%d]",
|
hdd_err("Invalid WPA IE length[%d]",
|
||||||
__func__, eLen);
|
eLen);
|
||||||
QDF_ASSERT(0);
|
QDF_ASSERT(0);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
@@ -19826,8 +19825,7 @@ static int wlan_hdd_cfg80211_set_ie(struct hdd_adapter *adapter,
|
|||||||
break;
|
break;
|
||||||
case DOT11F_EID_RSN:
|
case DOT11F_EID_RSN:
|
||||||
if (eLen > DOT11F_IE_RSN_MAX_LEN) {
|
if (eLen > DOT11F_IE_RSN_MAX_LEN) {
|
||||||
hdd_err("%s: Invalid WPA RSN IE length[%d]",
|
hdd_err("Invalid WPA RSN IE length[%d]", eLen);
|
||||||
__func__, eLen);
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
memset(security_ie, 0, WLAN_MAX_IE_LEN);
|
memset(security_ie, 0, WLAN_MAX_IE_LEN);
|
||||||
@@ -22260,8 +22258,7 @@ __wlan_hdd_cfg80211_update_ft_ies(struct wiphy *wiphy,
|
|||||||
ftie->ie_len);
|
ftie->ie_len);
|
||||||
hdd_err("Should be Re-assoc Req IEs");
|
hdd_err("Should be Re-assoc Req IEs");
|
||||||
}
|
}
|
||||||
hdd_debug("%s called with Ie of length = %zu", __func__,
|
hdd_debug("called with Ie of length = %zu", ftie->ie_len);
|
||||||
ftie->ie_len);
|
|
||||||
|
|
||||||
/* Pass the received FT IEs to SME */
|
/* Pass the received FT IEs to SME */
|
||||||
mac_handle = hdd_ctx->mac_handle;
|
mac_handle = hdd_ctx->mac_handle;
|
||||||
|
@@ -958,7 +958,7 @@ static int __hdd_netdev_notifier_call(struct net_device *net_dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
|
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
|
||||||
hdd_debug("%s: Driver module is closed", __func__);
|
hdd_debug("Driver module is closed");
|
||||||
return NOTIFY_DONE;
|
return NOTIFY_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3094,7 +3094,7 @@ hdd_update_cds_ac_specs_params(struct hdd_context *hdd_ctx)
|
|||||||
|
|
||||||
if (!hdd_ctx->config) {
|
if (!hdd_ctx->config) {
|
||||||
/* Do nothing if hdd_ctx is invalid */
|
/* Do nothing if hdd_ctx is invalid */
|
||||||
hdd_err("%s: Warning: hdd_ctx->cfg_ini is NULL", __func__);
|
hdd_err("Warning: hdd_ctx->cfg_ini is NULL");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4744,7 +4744,7 @@ static void __hdd_set_multicast_list(struct net_device *dev)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
|
if (hdd_ctx->driver_status == DRIVER_MODULES_CLOSED) {
|
||||||
hdd_debug("%s: Driver module is closed", __func__);
|
hdd_debug("Driver module is closed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2019 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2015-2020 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -359,13 +359,13 @@ int hdd_napi_apply_throughput_policy(struct hdd_context *hddctx,
|
|||||||
struct qca_napi_data *napid = hdd_napi_get_all();
|
struct qca_napi_data *napid = hdd_napi_get_all();
|
||||||
int enabled;
|
int enabled;
|
||||||
|
|
||||||
NAPI_DEBUG("-->%s(tx=%lld, rx=%lld)", __func__, tx_packets, rx_packets);
|
NAPI_DEBUG("-->(tx=%lld, rx=%lld)", tx_packets, rx_packets);
|
||||||
|
|
||||||
if (unlikely(napi_tput_policy_delay < 0))
|
if (unlikely(napi_tput_policy_delay < 0))
|
||||||
napi_tput_policy_delay = 0;
|
napi_tput_policy_delay = 0;
|
||||||
if (napi_tput_policy_delay > 0) {
|
if (napi_tput_policy_delay > 0) {
|
||||||
NAPI_DEBUG("%s: delaying policy; delay-count=%d",
|
NAPI_DEBUG("delaying policy; delay-count=%d",
|
||||||
__func__, napi_tput_policy_delay);
|
napi_tput_policy_delay);
|
||||||
napi_tput_policy_delay--;
|
napi_tput_policy_delay--;
|
||||||
|
|
||||||
/* make sure the next timer call calls us */
|
/* make sure the next timer call calls us */
|
||||||
@@ -481,7 +481,7 @@ int hdd_display_napi_stats(void)
|
|||||||
|
|
||||||
napid = hdd_napi_get_all();
|
napid = hdd_napi_get_all();
|
||||||
if (!napid) {
|
if (!napid) {
|
||||||
hdd_err("%s unable to retrieve napi structure", __func__);
|
hdd_err("unable to retrieve napi structure");
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
hdd_nofl_info("[NAPI %u][BL %d]: scheds polls comps done t-lim p-lim corr max_time napi-buckets(%d)",
|
hdd_nofl_info("[NAPI %u][BL %d]: scheds polls comps done t-lim p-lim corr max_time napi-buckets(%d)",
|
||||||
@@ -540,7 +540,7 @@ int hdd_clear_napi_stats(void)
|
|||||||
|
|
||||||
napid = hdd_napi_get_all();
|
napid = hdd_napi_get_all();
|
||||||
if (!napid) {
|
if (!napid) {
|
||||||
hdd_err("%s unable to retrieve napi structure", __func__);
|
hdd_err("unable to retrieve napi structure");
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -947,8 +947,7 @@ void hdd_reg_notifier(struct wiphy *wiphy,
|
|||||||
|
|
||||||
if (cds_is_driver_unloading() || cds_is_driver_recovering() ||
|
if (cds_is_driver_unloading() || cds_is_driver_recovering() ||
|
||||||
cds_is_driver_in_bad_state()) {
|
cds_is_driver_in_bad_state()) {
|
||||||
hdd_err("%s: unloading or ssr in progress, ignore",
|
hdd_err("unloading or ssr in progress, ignore");
|
||||||
__func__);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -958,7 +957,7 @@ void hdd_reg_notifier(struct wiphy *wiphy,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hdd_ctx->is_wiphy_suspended == true) {
|
if (hdd_ctx->is_wiphy_suspended == true) {
|
||||||
hdd_err("%s: system/cfg80211 is already suspend", __func__);
|
hdd_err("system/cfg80211 is already suspend");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5309,7 +5309,7 @@ static int __wlan_hdd_cfg80211_dump_station(struct wiphy *wiphy,
|
|||||||
int idx, u8 *mac,
|
int idx, u8 *mac,
|
||||||
struct station_info *sinfo)
|
struct station_info *sinfo)
|
||||||
{
|
{
|
||||||
hdd_debug("%s: idx %d", __func__, idx);
|
hdd_debug("idx: %d", idx);
|
||||||
if (idx != 0)
|
if (idx != 0)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
qdf_mem_copy(mac, dev->dev_addr, QDF_MAC_ADDR_SIZE);
|
qdf_mem_copy(mac, dev->dev_addr, QDF_MAC_ADDR_SIZE);
|
||||||
|
@@ -862,7 +862,7 @@ QDF_STATUS pe_open(struct mac_context *mac, struct cds_config_info *cds_cfg)
|
|||||||
|
|
||||||
if (!QDF_IS_STATUS_SUCCESS(
|
if (!QDF_IS_STATUS_SUCCESS(
|
||||||
cds_shutdown_notifier_register(pe_shutdown_notifier_cb, mac))) {
|
cds_shutdown_notifier_register(pe_shutdown_notifier_cb, mac))) {
|
||||||
pe_err("%s: Shutdown notifier register failed", __func__);
|
pe_err("Shutdown notifier register failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
pe_hang_event_notifier.priv_data = mac;
|
pe_hang_event_notifier.priv_data = mac;
|
||||||
|
@@ -817,7 +817,7 @@ void lim_process_ft_aggr_qos_rsp(struct mac_context *mac,
|
|||||||
pe_session =
|
pe_session =
|
||||||
pe_find_session_by_session_id(mac, pAggrQosRspMsg->sessionId);
|
pe_find_session_by_session_id(mac, pAggrQosRspMsg->sessionId);
|
||||||
if (!pe_session) {
|
if (!pe_session) {
|
||||||
pe_err("Cant find session entry for %s", __func__);
|
pe_err("Cant find session entry");
|
||||||
if (pAggrQosRspMsg) {
|
if (pAggrQosRspMsg) {
|
||||||
qdf_mem_free(pAggrQosRspMsg);
|
qdf_mem_free(pAggrQosRspMsg);
|
||||||
}
|
}
|
||||||
|
@@ -5999,7 +5999,7 @@ static void csr_get_peer_rssi_cb(struct stats_event *ev, void *cookie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ev->peer_stats) {
|
if (!ev->peer_stats) {
|
||||||
sme_debug("%s no peer stats\n", __func__);
|
sme_debug("no peer stats");
|
||||||
goto disconnect_stats_complete;
|
goto disconnect_stats_complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6007,7 +6007,7 @@ static void csr_get_peer_rssi_cb(struct stats_event *ev, void *cookie)
|
|||||||
mac->peer_txrate = ev->peer_stats->tx_rate;
|
mac->peer_txrate = ev->peer_stats->tx_rate;
|
||||||
mac->peer_rxrate = ev->peer_stats->rx_rate;
|
mac->peer_rxrate = ev->peer_stats->rx_rate;
|
||||||
if (!ev->peer_extended_stats) {
|
if (!ev->peer_extended_stats) {
|
||||||
sme_debug("%s no peer extended stats\n", __func__);
|
sme_debug("no peer extended stats");
|
||||||
goto disconnect_stats_complete;
|
goto disconnect_stats_complete;
|
||||||
}
|
}
|
||||||
mac->rx_mc_bc_cnt = ev->peer_extended_stats->rx_mc_bc_cnt;
|
mac->rx_mc_bc_cnt = ev->peer_extended_stats->rx_mc_bc_cnt;
|
||||||
@@ -17041,7 +17041,7 @@ csr_process_roam_pmkid_req_callback(struct mac_context *mac_ctx,
|
|||||||
0, eCSR_ROAM_FIPS_PMK_REQUEST,
|
0, eCSR_ROAM_FIPS_PMK_REQUEST,
|
||||||
eCSR_ROAM_RESULT_NONE);
|
eCSR_ROAM_RESULT_NONE);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
sme_err("%s: Trigger pmkid fallback failed", __func__);
|
sme_err("Trigger pmkid fallback failed");
|
||||||
qdf_mem_free(roam_info);
|
qdf_mem_free(roam_info);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@@ -17060,14 +17060,14 @@ csr_roam_pmkid_req_callback(uint8_t vdev_id,
|
|||||||
|
|
||||||
mac_ctx = cds_get_context(QDF_MODULE_ID_PE);
|
mac_ctx = cds_get_context(QDF_MODULE_ID_PE);
|
||||||
if (!mac_ctx) {
|
if (!mac_ctx) {
|
||||||
sme_err("%s: NULL mac ptr", __func__);
|
sme_err("NULL mac ptr");
|
||||||
QDF_ASSERT(0);
|
QDF_ASSERT(0);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = sme_acquire_global_lock(&mac_ctx->sme);
|
status = sme_acquire_global_lock(&mac_ctx->sme);
|
||||||
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
if (!QDF_IS_STATUS_SUCCESS(status)) {
|
||||||
sme_err("%s: Locking failed, bailing out", __func__);
|
sme_err("Locking failed, bailing out");
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -567,7 +567,7 @@ enum wlan_phymode wma_chan_phy_mode(uint32_t freq, enum phy_ch_width chan_width,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (chan_width >= CH_WIDTH_INVALID) {
|
if (chan_width >= CH_WIDTH_INVALID) {
|
||||||
wma_err_rl("%s : Invalid channel width", __func__);
|
wma_err_rl("Invalid channel width");
|
||||||
return WLAN_PHYMODE_AUTO;
|
return WLAN_PHYMODE_AUTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4119,7 +4119,7 @@ QDF_STATUS wma_set_sw_retry_threshold_per_ac(WMA_HANDLE handle,
|
|||||||
tp_wma_handle wma_handle = (tp_wma_handle)handle;
|
tp_wma_handle wma_handle = (tp_wma_handle)handle;
|
||||||
|
|
||||||
if (!wma_handle) {
|
if (!wma_handle) {
|
||||||
wma_err("%s: WMA context is invalid!", __func__);
|
wma_err("WMA context is invalid!");
|
||||||
return QDF_STATUS_E_INVAL;
|
return QDF_STATUS_E_INVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -418,7 +418,7 @@ int wma_roam_vdev_disconnect_event_handler(void *handle, uint8_t *event,
|
|||||||
tp_wma_handle wma = (tp_wma_handle)handle;
|
tp_wma_handle wma = (tp_wma_handle)handle;
|
||||||
|
|
||||||
if (!event) {
|
if (!event) {
|
||||||
wma_err("%s: received null event from target", __func__);
|
wma_err("received null event from target");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -426,7 +426,7 @@ int wma_roam_vdev_disconnect_event_handler(void *handle, uint8_t *event,
|
|||||||
|
|
||||||
roam_vdev_disc_ev = param_buf->fixed_param;
|
roam_vdev_disc_ev = param_buf->fixed_param;
|
||||||
if (!roam_vdev_disc_ev) {
|
if (!roam_vdev_disc_ev) {
|
||||||
wma_err("%s: roam cap event is NULL", __func__);
|
wma_err("roam cap event is NULL");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (roam_vdev_disc_ev->vdev_id >= wma->max_bssid) {
|
if (roam_vdev_disc_ev->vdev_id >= wma->max_bssid) {
|
||||||
@@ -4042,8 +4042,8 @@ int wma_roam_stats_event_handler(WMA_HANDLE handle, uint8_t *event,
|
|||||||
&roam_info->btm_rsp,
|
&roam_info->btm_rsp,
|
||||||
i);
|
i);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
wma_err("%s:Roam btm rsp stats extract fail vdev %d",
|
wma_err("Roam btm rsp stats extract fail vdev %d",
|
||||||
__func__, vdev_id);
|
vdev_id);
|
||||||
qdf_mem_free(roam_info);
|
qdf_mem_free(roam_info);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
@@ -4053,8 +4053,8 @@ int wma_roam_stats_event_handler(WMA_HANDLE handle, uint8_t *event,
|
|||||||
wma->wmi_handle, event,
|
wma->wmi_handle, event,
|
||||||
&roam_info->roam_init_info, i);
|
&roam_info->roam_init_info, i);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
wma_err("%s:Initial roam stats extract fail vdev %d",
|
wma_err("Initial roam stats extract fail vdev %d",
|
||||||
__func__, vdev_id);
|
vdev_id);
|
||||||
qdf_mem_free(roam_info);
|
qdf_mem_free(roam_info);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
@@ -6616,7 +6616,7 @@ QDF_STATUS wma_set_roam_triggers(tp_wma_handle wma,
|
|||||||
void wma_register_pmkid_req_event_handler(tp_wma_handle wma_handle)
|
void wma_register_pmkid_req_event_handler(tp_wma_handle wma_handle)
|
||||||
{
|
{
|
||||||
if (!wma_handle) {
|
if (!wma_handle) {
|
||||||
wma_err("%s: pmkid req wma_handle is NULL", __func__);
|
wma_err("pmkid req wma_handle is NULL");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6639,39 +6639,38 @@ int wma_roam_pmkid_request_event_handler(void *handle, uint8_t *event,
|
|||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
|
|
||||||
if (!event) {
|
if (!event) {
|
||||||
wma_err("%s: received null event from target", __func__);
|
wma_err("received null event from target");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
param_buf = (WMI_ROAM_PMKID_REQUEST_EVENTID_param_tlvs *)event;
|
param_buf = (WMI_ROAM_PMKID_REQUEST_EVENTID_param_tlvs *)event;
|
||||||
if (!param_buf) {
|
if (!param_buf) {
|
||||||
wma_err("%s: received null buf from target", __func__);
|
wma_err("received null buf from target");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
roam_pmkid_req_ev = param_buf->fixed_param;
|
roam_pmkid_req_ev = param_buf->fixed_param;
|
||||||
if (!roam_pmkid_req_ev) {
|
if (!roam_pmkid_req_ev) {
|
||||||
wma_err("%s: received null event data from target", __func__);
|
wma_err("received null event data from target");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (roam_pmkid_req_ev->vdev_id >= wma->max_bssid) {
|
if (roam_pmkid_req_ev->vdev_id >= wma->max_bssid) {
|
||||||
wma_err("%s: received invalid vdev_id %d",
|
wma_err("received invalid vdev_id %d", roam_pmkid_req_ev->vdev_id);
|
||||||
__func__, roam_pmkid_req_ev->vdev_id);
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
num_entries = param_buf->num_pmkid_request;
|
num_entries = param_buf->num_pmkid_request;
|
||||||
if (num_entries > MAX_RSSI_AVOID_BSSID_LIST) {
|
if (num_entries > MAX_RSSI_AVOID_BSSID_LIST) {
|
||||||
wma_err("%s: num bssid entries:%d exceeds maximum value",
|
wma_err("num bssid entries:%d exceeds maximum value",
|
||||||
__func__, num_entries);
|
num_entries);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
src_list = param_buf->pmkid_request;
|
src_list = param_buf->pmkid_request;
|
||||||
if (len < (sizeof(*roam_pmkid_req_ev) +
|
if (len < (sizeof(*roam_pmkid_req_ev) +
|
||||||
(num_entries * sizeof(*src_list)))) {
|
(num_entries * sizeof(*src_list)))) {
|
||||||
wma_err("%s: Invalid length:%d", __func__, len);
|
wma_err("Invalid length: %d", len);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6687,7 +6686,7 @@ int wma_roam_pmkid_request_event_handler(void *handle, uint8_t *event,
|
|||||||
if (qdf_is_macaddr_zero(roam_bsslist) ||
|
if (qdf_is_macaddr_zero(roam_bsslist) ||
|
||||||
qdf_is_macaddr_broadcast(roam_bsslist) ||
|
qdf_is_macaddr_broadcast(roam_bsslist) ||
|
||||||
qdf_is_macaddr_group(roam_bsslist)) {
|
qdf_is_macaddr_group(roam_bsslist)) {
|
||||||
wma_err("%s: Invalid bssid", __func__);
|
wma_err("Invalid bssid");
|
||||||
qdf_mem_free(dst_list);
|
qdf_mem_free(dst_list);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
@@ -6701,7 +6700,7 @@ int wma_roam_pmkid_request_event_handler(void *handle, uint8_t *event,
|
|||||||
status = wma->csr_roam_pmkid_req_cb(roam_pmkid_req_ev->vdev_id,
|
status = wma->csr_roam_pmkid_req_cb(roam_pmkid_req_ev->vdev_id,
|
||||||
dst_list);
|
dst_list);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
wma_err("%s: Pmkid request failed", __func__);
|
wma_err("Pmkid request failed");
|
||||||
qdf_mem_free(dst_list);
|
qdf_mem_free(dst_list);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@@ -669,11 +669,11 @@ int wma_stats_ext_event_handler(void *handle, uint8_t *event_buf,
|
|||||||
struct cdp_txrx_ext_stats ext_stats = {0};
|
struct cdp_txrx_ext_stats ext_stats = {0};
|
||||||
struct cdp_soc_t *soc_hdl = cds_get_context(QDF_MODULE_ID_SOC);
|
struct cdp_soc_t *soc_hdl = cds_get_context(QDF_MODULE_ID_SOC);
|
||||||
|
|
||||||
wma_debug("%s: Posting stats ext event to SME", __func__);
|
wma_debug("Posting stats ext event to SME");
|
||||||
|
|
||||||
param_buf = (WMI_STATS_EXT_EVENTID_param_tlvs *)event_buf;
|
param_buf = (WMI_STATS_EXT_EVENTID_param_tlvs *)event_buf;
|
||||||
if (!param_buf) {
|
if (!param_buf) {
|
||||||
wma_err("%s: Invalid stats ext event buf", __func__);
|
wma_err("Invalid stats ext event buf");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -721,7 +721,7 @@ int wma_stats_ext_event_handler(void *handle, uint8_t *event_buf,
|
|||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
wma_debug("%s: stats ext event Posted to SME", __func__);
|
wma_debug("stats ext event Posted to SME");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
在新工单中引用
屏蔽一个用户