Merge "qcacld-3.0: Convert wlan_hdd_hostapd.c to unified logging [6/7]" into wlan-cld3.driver.lnx.1.1-dev

This commit is contained in:
Service qcabuildsw
2016-07-20 13:21:37 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -7911,7 +7911,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
ENTER(); ENTER();
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
hddLog(LOGE, FL("Command not allowed in FTM mode")); hdd_err("Command not allowed in FTM mode");
return -EINVAL; return -EINVAL;
} }
@@ -7929,7 +7929,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
hddLog(LOG1, FL("Device_mode %s(%d)"), hdd_notice("Device_mode %s(%d)",
hdd_device_mode_to_string(pAdapter->device_mode), hdd_device_mode_to_string(pAdapter->device_mode),
pAdapter->device_mode); pAdapter->device_mode);
@@ -7943,7 +7943,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
pScanInfo = &staAdapter->scan_info; pScanInfo = &staAdapter->scan_info;
if (pScanInfo && pScanInfo->mScanPending) { if (pScanInfo && pScanInfo->mScanPending) {
hddLog(LOG1, FL("Aborting pending scan for device mode:%d"), hdd_notice("Aborting pending scan for device mode:%d",
staAdapter->device_mode); staAdapter->device_mode);
INIT_COMPLETION(pScanInfo->abortscan_event_var); INIT_COMPLETION(pScanInfo->abortscan_event_var);
hdd_abort_mac_scan(staAdapter->pHddCtx, hdd_abort_mac_scan(staAdapter->pHddCtx,
@@ -7954,8 +7954,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
msecs_to_jiffies( msecs_to_jiffies(
WLAN_WAIT_TIME_ABORTSCAN)); WLAN_WAIT_TIME_ABORTSCAN));
if (!rc) { if (!rc) {
hddLog(LOGE, hdd_err("Timeout occurred while waiting for abortscan");
FL("Timeout occurred while waiting for abortscan"));
QDF_ASSERT(pScanInfo->mScanPending); QDF_ASSERT(pScanInfo->mScanPending);
} }
} }
@@ -7972,7 +7971,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
if (pHddCtx->config->conc_custom_rule1 && if (pHddCtx->config->conc_custom_rule1 &&
(QDF_SAP_MODE == pAdapter->device_mode)) { (QDF_SAP_MODE == pAdapter->device_mode)) {
cds_flush_work(&pHddCtx->sap_start_work); cds_flush_work(&pHddCtx->sap_start_work);
hddLog(LOGW, FL("Canceled the pending restart work")); hdd_warn("Canceled the pending restart work");
qdf_spin_lock(&pHddCtx->sap_update_info_lock); qdf_spin_lock(&pHddCtx->sap_update_info_lock);
pHddCtx->is_sap_restart_required = false; pHddCtx->is_sap_restart_required = false;
qdf_spin_unlock(&pHddCtx->sap_update_info_lock); qdf_spin_unlock(&pHddCtx->sap_update_info_lock);
@@ -7986,8 +7985,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
old = pAdapter->sessionCtx.ap.beacon; old = pAdapter->sessionCtx.ap.beacon;
if (!old) { if (!old) {
hddLog(LOGE, hdd_err("Session(%d) beacon data points to NULL",
FL("Session(%d) beacon data points to NULL"),
pAdapter->sessionId); pAdapter->sessionId);
return -EINVAL; return -EINVAL;
} }
@@ -8012,8 +8010,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
10000); 10000);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
hddLog(LOGE, hdd_err("HDD qdf wait for single_event failed!!");
FL("HDD qdf wait for single_event failed!!"));
QDF_ASSERT(0); QDF_ASSERT(0);
} }
} }
@@ -8027,7 +8024,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
mutex_unlock(&pHddCtx->sap_lock); mutex_unlock(&pHddCtx->sap_lock);
if (status != QDF_STATUS_SUCCESS) { if (status != QDF_STATUS_SUCCESS) {
hddLog(LOGE, FL("Stopping the BSS")); hdd_err("Stopping the BSS");
return -EINVAL; return -EINVAL;
} }
@@ -8040,13 +8037,13 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
if (sme_update_add_ie(WLAN_HDD_GET_HAL_CTX(pAdapter), if (sme_update_add_ie(WLAN_HDD_GET_HAL_CTX(pAdapter),
&updateIE, &updateIE,
eUPDATE_IE_PROBE_BCN) == QDF_STATUS_E_FAILURE) { eUPDATE_IE_PROBE_BCN) == QDF_STATUS_E_FAILURE) {
hddLog(LOGE, FL("Could not pass on PROBE_RSP_BCN data to PE")); hdd_err("Could not pass on PROBE_RSP_BCN data to PE");
} }
if (sme_update_add_ie(WLAN_HDD_GET_HAL_CTX(pAdapter), if (sme_update_add_ie(WLAN_HDD_GET_HAL_CTX(pAdapter),
&updateIE, &updateIE,
eUPDATE_IE_ASSOC_RESP) == QDF_STATUS_E_FAILURE) { eUPDATE_IE_ASSOC_RESP) == QDF_STATUS_E_FAILURE) {
hddLog(LOGE, FL("Could not pass on ASSOC_RSP data to PE")); hdd_err("Could not pass on ASSOC_RSP data to PE");
} }
/* Reset WNI_CFG_PROBE_RSP Flags */ /* Reset WNI_CFG_PROBE_RSP Flags */
wlan_hdd_reset_prob_rspies(pAdapter); wlan_hdd_reset_prob_rspies(pAdapter);
@@ -8054,8 +8051,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy,
#ifdef WLAN_FEATURE_P2P_DEBUG #ifdef WLAN_FEATURE_P2P_DEBUG
if ((pAdapter->device_mode == QDF_P2P_GO_MODE) && if ((pAdapter->device_mode == QDF_P2P_GO_MODE) &&
(global_p2p_connection_status == P2P_GO_COMPLETED_STATE)) { (global_p2p_connection_status == P2P_GO_COMPLETED_STATE)) {
hddLog(LOGE, hdd_err("[P2P State] From GO completed to Inactive state GO got removed");
"[P2P State] From GO completed to Inactive state GO got removed");
global_p2p_connection_status = P2P_NOT_ACTIVE; global_p2p_connection_status = P2P_NOT_ACTIVE;
} }
#endif #endif
@@ -8139,7 +8135,7 @@ static int __wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy,
ENTER(); ENTER();
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
hddLog(LOGE, FL("Command not allowed in FTM mode")); hdd_err("Command not allowed in FTM mode");
return -EINVAL; return -EINVAL;
} }
@@ -8147,7 +8143,7 @@ static int __wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy,
TRACE_CODE_HDD_CFG80211_START_AP, pAdapter->sessionId, TRACE_CODE_HDD_CFG80211_START_AP, pAdapter->sessionId,
params->beacon_interval)); params->beacon_interval));
if (WLAN_HDD_ADAPTER_MAGIC != pAdapter->magic) { if (WLAN_HDD_ADAPTER_MAGIC != pAdapter->magic) {
hddLog(LOGE, FL("HDD adapter magic is invalid")); hdd_err("HDD adapter magic is invalid");
return -ENODEV; return -ENODEV;
} }
@@ -8157,7 +8153,7 @@ static int __wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy,
if (0 != status) if (0 != status)
return status; return status;
hddLog(LOG2, FL("pAdapter = %p, Device mode %s(%d)"), pAdapter, hdd_info("pAdapter = %p, Device mode %s(%d)", pAdapter,
hdd_device_mode_to_string(pAdapter->device_mode), hdd_device_mode_to_string(pAdapter->device_mode),
pAdapter->device_mode); pAdapter->device_mode);
@@ -8212,7 +8208,7 @@ static int __wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy,
params->dtim_period); params->dtim_period);
if (status != 0) { if (status != 0) {
hddLog(LOGE, FL("Error!!! Allocating the new beacon")); hdd_err("Error!!! Allocating the new beacon");
return -EINVAL; return -EINVAL;
} }
pAdapter->sessionCtx.ap.beacon = new; pAdapter->sessionCtx.ap.beacon = new;
@@ -8296,14 +8292,14 @@ static int __wlan_hdd_cfg80211_change_beacon(struct wiphy *wiphy,
ENTER(); ENTER();
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
hddLog(LOGE, FL("Command not allowed in FTM mode")); hdd_err("Command not allowed in FTM mode");
return -EINVAL; return -EINVAL;
} }
MTRACE(qdf_trace(QDF_MODULE_ID_HDD, MTRACE(qdf_trace(QDF_MODULE_ID_HDD,
TRACE_CODE_HDD_CFG80211_CHANGE_BEACON, TRACE_CODE_HDD_CFG80211_CHANGE_BEACON,
pAdapter->sessionId, pAdapter->device_mode)); pAdapter->sessionId, pAdapter->device_mode));
hddLog(LOG1, FL("Device_mode %s(%d)"), hdd_notice("Device_mode %s(%d)",
hdd_device_mode_to_string(pAdapter->device_mode), hdd_device_mode_to_string(pAdapter->device_mode),
pAdapter->device_mode); pAdapter->device_mode);
@@ -8321,7 +8317,7 @@ static int __wlan_hdd_cfg80211_change_beacon(struct wiphy *wiphy,
old = pAdapter->sessionCtx.ap.beacon; old = pAdapter->sessionCtx.ap.beacon;
if (!old) { if (!old) {
hddLog(LOGE, FL("session(%d) beacon data points to NULL"), hdd_err("session(%d) beacon data points to NULL",
pAdapter->sessionId); pAdapter->sessionId);
return -EINVAL; return -EINVAL;
} }
@@ -8329,7 +8325,7 @@ static int __wlan_hdd_cfg80211_change_beacon(struct wiphy *wiphy,
status = wlan_hdd_cfg80211_alloc_new_beacon(pAdapter, &new, params, 0); status = wlan_hdd_cfg80211_alloc_new_beacon(pAdapter, &new, params, 0);
if (status != QDF_STATUS_SUCCESS) { if (status != QDF_STATUS_SUCCESS) {
hddLog(LOGE, FL("new beacon alloc failed")); hdd_err("new beacon alloc failed");
return -EINVAL; return -EINVAL;
} }