qcacld-3.0: Optimize CSA logs for SAP and STA
Optimize CSA logs for SAP and STA. Change-Id: I1bd00821a2b8cbc41d530eda1aba1e7ecdd9cb7b CRs-Fixed: 2623007
This commit is contained in:
parent
57a0dcfc5c
commit
c332b3eba0
@ -2426,10 +2426,8 @@ QDF_STATUS policy_mgr_check_and_set_hw_mode_for_channel_switch(
|
||||
if (!policy_mgr_is_hw_dbs_capable(psoc) ||
|
||||
(!policy_mgr_is_hw_dbs_2x2_capable(psoc) &&
|
||||
!policy_mgr_is_hw_dbs_required_for_band(
|
||||
psoc, HW_MODE_MAC_BAND_2G))) {
|
||||
policy_mgr_debug("2x2 DBS is not enabled");
|
||||
psoc, HW_MODE_MAC_BAND_2G)))
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
/*
|
||||
* Stop opportunistic timer as current connection info will change once
|
||||
@ -2443,10 +2441,8 @@ QDF_STATUS policy_mgr_check_and_set_hw_mode_for_channel_switch(
|
||||
return QDF_STATUS_E_ALREADY;
|
||||
}
|
||||
|
||||
if (wlan_reg_freq_to_band(ch_freq) != REG_BAND_2G) {
|
||||
policy_mgr_debug("DBS is not required for 5Ghz chan");
|
||||
if (wlan_reg_freq_to_band(ch_freq) != REG_BAND_2G)
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock);
|
||||
/*
|
||||
|
@ -4543,9 +4543,6 @@ static void hdd_roam_channel_switch_handler(struct hdd_adapter *adapter,
|
||||
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||
mac_handle_t mac_handle = hdd_adapter_get_mac_handle(adapter);
|
||||
|
||||
hdd_debug("channel switch for session:%d to channel freq:%d",
|
||||
adapter->vdev_id, roam_info->chan_info.mhz);
|
||||
|
||||
/* Enable Roaming on STA interface which was disabled before CSA */
|
||||
if (adapter->device_mode == QDF_STA_MODE)
|
||||
sme_start_roaming(mac_handle, adapter->vdev_id,
|
||||
@ -4578,7 +4575,6 @@ static void hdd_roam_channel_switch_handler(struct hdd_adapter *adapter,
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
hdd_debug("set hw mode change not done");
|
||||
|
||||
hdd_debug("check for SAP restart");
|
||||
policy_mgr_check_concurrent_intf_and_restart_sap(hdd_ctx->psoc);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2018, 2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@ -50,14 +50,14 @@ static int hdd_green_ap_check_enable(struct hdd_context *hdd_ctx,
|
||||
|
||||
status = policy_mgr_mode_specific_num_active_sessions(
|
||||
hdd_ctx->psoc, mode, &num_sessions);
|
||||
hdd_debug("No. of active sessions for mode: %d is %d",
|
||||
mode, num_sessions);
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
hdd_err("Failed to get num sessions for mode: %d",
|
||||
mode);
|
||||
return -EINVAL;
|
||||
} else if (num_sessions) {
|
||||
*enable_green_ap = false;
|
||||
hdd_debug("active sessions for mode: %d is %d disable green AP",
|
||||
mode, num_sessions);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -836,18 +836,13 @@ QDF_STATUS hdd_chan_change_notify(struct hdd_adapter *adapter,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
hdd_debug("chan_freq:%d width:%d sec_ch_offset:%d seg0:%d seg1:%d",
|
||||
chan_change.chan_freq, chan_change.chan_params.ch_width,
|
||||
chan_change.chan_params.sec_ch_offset,
|
||||
chan_change.chan_params.center_freq_seg0,
|
||||
chan_change.chan_params.center_freq_seg1);
|
||||
|
||||
freq = chan_change.chan_freq;
|
||||
|
||||
chan = ieee80211_get_channel(adapter->wdev.wiphy, freq);
|
||||
|
||||
if (!chan) {
|
||||
hdd_err("Invalid input frequency for channel conversion");
|
||||
hdd_err("Invalid input frequency %d for channel conversion",
|
||||
freq);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
@ -2461,7 +2456,6 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
case eSAP_CHANNEL_CHANGE_EVENT:
|
||||
hdd_debug("Received eSAP_CHANNEL_CHANGE_EVENT event");
|
||||
if (hostapd_state->bss_state != BSS_STOP) {
|
||||
/* Allow suspend for old channel */
|
||||
hdd_hostapd_channel_allow_suspend(adapter,
|
||||
@ -2514,7 +2508,6 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
|
||||
|
||||
phy_mode = wlan_sap_get_phymode(
|
||||
WLAN_HDD_GET_SAP_CTX_PTR(adapter));
|
||||
hdd_debug("phy_mode:%d", phy_mode);
|
||||
|
||||
switch (phy_mode) {
|
||||
case eCSR_DOT11_MODE_11n:
|
||||
|
@ -79,9 +79,6 @@ void lim_stop_tx_and_switch_channel(struct mac_context *mac, uint8_t sessionId)
|
||||
return;
|
||||
}
|
||||
|
||||
pe_debug("Channel switch Mode: %d",
|
||||
pe_session->gLimChannelSwitch.switchMode);
|
||||
|
||||
mac->lim.lim_timers.gLimChannelSwitchTimer.sessionId = sessionId;
|
||||
status = policy_mgr_check_and_set_hw_mode_for_channel_switch(mac->psoc,
|
||||
pe_session->smeSessionId,
|
||||
|
@ -178,7 +178,6 @@ void lim_apply_configuration(struct mac_context *mac, struct pe_session *pe_sess
|
||||
as a part of join request for a BT-AMP station */
|
||||
|
||||
if (pe_session->statypeForBss == STA_ENTRY_SELF) {
|
||||
pe_debug("Initializing BT-AMP beacon generation");
|
||||
sch_set_beacon_interval(mac, pe_session);
|
||||
sch_set_fixed_beacon_fields(mac, pe_session);
|
||||
}
|
||||
|
@ -827,7 +827,6 @@ static void lim_fill_sap_bcn_pkt_meta(struct scan_cache_entry *scan_entry,
|
||||
cds_pkt_t *rx_pkt)
|
||||
{
|
||||
rx_pkt->pkt_meta.frequency = scan_entry->channel.chan_freq;
|
||||
pe_debug("rx pkt meta freq %d", rx_pkt->pkt_meta.frequency);
|
||||
rx_pkt->pkt_meta.mpdu_hdr_len = sizeof(struct ieee80211_frame);
|
||||
rx_pkt->pkt_meta.mpdu_len = scan_entry->raw_frame.len;
|
||||
rx_pkt->pkt_meta.mpdu_data_len = rx_pkt->pkt_meta.mpdu_len -
|
||||
|
@ -462,7 +462,6 @@ lim_configure_ap_start_bss_session(struct mac_context *mac_ctx,
|
||||
session->sap_dot11mc = sme_start_bss_req->sap_dot11mc;
|
||||
session->vendor_vht_sap =
|
||||
sme_start_bss_req->vendor_vht_sap;
|
||||
pe_debug("vendor_vht_sap %d", session->vendor_vht_sap);
|
||||
lim_get_short_slot_from_phy_mode(mac_ctx, session, session->gLimPhyMode,
|
||||
&session->shortSlotTimeSupported);
|
||||
session->isCoalesingInIBSSAllowed =
|
||||
@ -562,7 +561,6 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
||||
NULL, 0, 0);
|
||||
#endif /* FEATURE_WLAN_DIAG_SUPPORT */
|
||||
|
||||
pe_debug("Received START_BSS_REQ");
|
||||
size = sizeof(*sme_start_bss_req);
|
||||
sme_start_bss_req = qdf_mem_malloc(size);
|
||||
if (!sme_start_bss_req) {
|
||||
@ -677,9 +675,6 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
||||
session->vhtCapability =
|
||||
IS_DOT11_MODE_VHT(session->dot11mode);
|
||||
|
||||
pe_debug("HT[%d], VHT[%d]",
|
||||
session->htCapability, session->vhtCapability);
|
||||
|
||||
if (IS_DOT11_MODE_HE(session->dot11mode)) {
|
||||
lim_update_session_he_capable(mac_ctx, session);
|
||||
lim_copy_bss_he_cap(session, sme_start_bss_req);
|
||||
@ -695,9 +690,8 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
||||
session->txLdpcIniFeatureEnabled =
|
||||
sme_start_bss_req->txLdpcIniFeatureEnabled;
|
||||
#ifdef WLAN_FEATURE_11W
|
||||
session->limRmfEnabled =
|
||||
sme_start_bss_req->pmfCapable ? 1 : 0;
|
||||
pe_debug("Session RMF enabled: %d", session->limRmfEnabled);
|
||||
session->limRmfEnabled = sme_start_bss_req->pmfCapable ? 1 : 0;
|
||||
pe_debug("RMF enabled: %d", session->limRmfEnabled);
|
||||
#endif
|
||||
|
||||
qdf_mem_copy((void *)&session->rateSet,
|
||||
@ -752,8 +746,6 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
||||
break;
|
||||
}
|
||||
|
||||
pe_debug("persona - %d, nss - %d",
|
||||
session->opmode, session->vdev_nss);
|
||||
session->nss = session->vdev_nss;
|
||||
if (!mac_ctx->mlme_cfg->vht_caps.vht_cap_info.enable2x2)
|
||||
session->nss = 1;
|
||||
@ -789,14 +781,9 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
||||
sme_start_bss_req->sec_ch_offset;
|
||||
session->htRecommendedTxWidthSet =
|
||||
(session->htSecondaryChannelOffset) ? 1 : 0;
|
||||
QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
|
||||
FL("cbMode %u"), sme_start_bss_req->cbMode);
|
||||
if (lim_is_session_he_capable(session) ||
|
||||
session->vhtCapability || session->htCapability) {
|
||||
chanwidth = sme_start_bss_req->vht_channel_width;
|
||||
pe_debug("vht_channel_width %u htSupportedChannelWidthSet %d",
|
||||
sme_start_bss_req->vht_channel_width,
|
||||
session->htSupportedChannelWidthSet);
|
||||
session->ch_width = chanwidth;
|
||||
session->ch_center_freq_seg0 =
|
||||
sme_start_bss_req->center_freq_seg0;
|
||||
@ -805,9 +792,6 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
||||
lim_update_he_bw_cap_mcs(session);
|
||||
}
|
||||
|
||||
pe_debug("vht su tx bformer %d",
|
||||
session->vht_config.su_beam_former);
|
||||
|
||||
/* Delete pre-auth list if any */
|
||||
lim_delete_pre_auth_list(mac_ctx);
|
||||
|
||||
@ -971,6 +955,13 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
||||
|
||||
session->limPrevSmeState = session->limSmeState;
|
||||
session->limSmeState = eLIM_SME_WT_START_BSS_STATE;
|
||||
|
||||
pe_debug("Freq %d width %d freq0 %d freq1 %d, dot11mode %d nss %d vendor vht %d",
|
||||
session->curr_op_freq, session->ch_width,
|
||||
session->ch_center_freq_seg0,
|
||||
session->ch_center_freq_seg1,
|
||||
session->dot11mode, session->vdev_nss,
|
||||
session->vendor_vht_sap);
|
||||
MTRACE(mac_trace
|
||||
(mac_ctx, TRACE_CODE_SME_STATE,
|
||||
session->peSessionId,
|
||||
@ -1620,12 +1611,14 @@ __lim_process_sme_join_req(struct mac_context *mac_ctx, void *msg_buf)
|
||||
session->spectrumMgtEnabled = true;
|
||||
|
||||
session->isOSENConnection = sme_join_req->isOSENConnection;
|
||||
pe_debug("Smps %d: mode %d action %d, nss 1x1 %d vdev_nss %d nss %d cbMode %d width %d dot11mode %d subfer %d subfee %d csn %d is_cisco %d",
|
||||
pe_debug("Freq %d width %d freq0 %d freq1 %d, Smps %d: mode %d action %d, nss 1x1 %d vdev_nss %d nss %d cbMode %d dot11mode %d subfer %d subfee %d csn %d is_cisco %d",
|
||||
session->curr_op_freq, session->ch_width,
|
||||
session->ch_center_freq_seg0,
|
||||
session->ch_center_freq_seg1,
|
||||
session->enableHtSmps, session->htSmpsvalue,
|
||||
session->send_smps_action, session->supported_nss_1x1,
|
||||
session->vdev_nss, session->nss,
|
||||
sme_join_req->cbMode, session->ch_width,
|
||||
session->dot11mode,
|
||||
sme_join_req->cbMode, session->dot11mode,
|
||||
session->vht_config.su_beam_former,
|
||||
session->vht_config.su_beam_formee,
|
||||
session->vht_config.csnof_beamformer_antSup,
|
||||
@ -4907,12 +4900,10 @@ static void lim_process_sme_channel_change_request(struct mac_context *mac_ctx,
|
||||
session_entry->channelChangeReasonCode =
|
||||
LIM_SWITCH_CHANNEL_MONITOR;
|
||||
|
||||
pe_debug("switch old chnl (freq) %d to new chnl %d, ch_bw %d, nw_type %d, dot11mode %d",
|
||||
session_entry->curr_op_freq,
|
||||
target_freq,
|
||||
ch_change_req->ch_width,
|
||||
ch_change_req->nw_type,
|
||||
ch_change_req->dot11mode);
|
||||
pe_nofl_debug("SAP CSA: %d ---> %d, ch_bw %d, nw_type %d, dot11mode %d",
|
||||
session_entry->curr_op_freq, target_freq,
|
||||
ch_change_req->ch_width, ch_change_req->nw_type,
|
||||
ch_change_req->dot11mode);
|
||||
|
||||
if (IS_DOT11_MODE_HE(ch_change_req->dot11mode) &&
|
||||
((QDF_MONITOR_MODE == session_entry->opmode) ||
|
||||
@ -5614,7 +5605,6 @@ skip_vht:
|
||||
* become 0 and bcn template with new switchCount will be sent to
|
||||
* firmware.
|
||||
*/
|
||||
pe_debug("start ap_ecsa_timer for %d ms", MAX_WAIT_FOR_BCN_TX_COMPLETE);
|
||||
status = qdf_mc_timer_start(&session_entry->ap_ecsa_timer,
|
||||
MAX_WAIT_FOR_BCN_TX_COMPLETE);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
|
@ -2647,19 +2647,11 @@ static QDF_STATUS lim_tdls_del_sta(struct mac_context *mac,
|
||||
sta = dph_lookup_hash_entry(mac, peerMac.bytes, &peerIdx,
|
||||
&pe_session->dph.dphHashTable);
|
||||
|
||||
if (sta && sta->staType == STA_ENTRY_TDLS_PEER) {
|
||||
pe_debug("DEL STA peer MAC: "QDF_MAC_ADDR_STR,
|
||||
QDF_MAC_ADDR_ARRAY(sta->staAddr));
|
||||
|
||||
pe_debug("STA type: %x, resp_reqd: %d",
|
||||
sta->staType,
|
||||
resp_reqd);
|
||||
|
||||
if (sta && sta->staType == STA_ENTRY_TDLS_PEER)
|
||||
status = lim_del_sta(mac, sta, resp_reqd, pe_session);
|
||||
} else {
|
||||
else
|
||||
pe_debug("TDLS peer "QDF_MAC_ADDR_STR" not found",
|
||||
QDF_MAC_ADDR_ARRAY(peerMac.bytes));
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
@ -3104,7 +3096,6 @@ static void lim_check_aid_and_delete_peer(struct mac_context *p_mac,
|
||||
* (with that aid) entry from the hash table and add the aid
|
||||
* in free pool
|
||||
*/
|
||||
pe_debug("Delete all the TDLS peer connected");
|
||||
for (i = 0; i < aid_bitmap_size / sizeof(uint32_t); i++) {
|
||||
for (aid = 0; aid < (sizeof(uint32_t) << 3); aid++) {
|
||||
if (!CHECK_BIT(session_entry->peerAIDBitmap[i], aid))
|
||||
@ -3130,9 +3121,6 @@ static void lim_check_aid_and_delete_peer(struct mac_context *p_mac,
|
||||
|
||||
status = lim_tdls_del_sta(p_mac, mac_addr,
|
||||
session_entry, false);
|
||||
if (status != QDF_STATUS_SUCCESS)
|
||||
pe_debug("peer " QDF_MAC_ADDR_STR " not found",
|
||||
QDF_MAC_ADDR_ARRAY(stads->staAddr));
|
||||
|
||||
dph_delete_hash_entry(p_mac,
|
||||
stads->staAddr, stads->assocId,
|
||||
@ -3165,7 +3153,6 @@ void lim_update_tdls_set_state_for_fw(struct pe_session *session_entry,
|
||||
QDF_STATUS lim_delete_tdls_peers(struct mac_context *mac_ctx,
|
||||
struct pe_session *session_entry)
|
||||
{
|
||||
pe_debug("Enter");
|
||||
|
||||
if (!session_entry) {
|
||||
pe_err("NULL session_entry");
|
||||
@ -3192,7 +3179,6 @@ QDF_STATUS lim_delete_tdls_peers(struct mac_context *mac_ctx,
|
||||
|
||||
/* reset the set_state_disable flag */
|
||||
session_entry->tdls_send_set_state_disable = true;
|
||||
pe_debug("Exit");
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -3972,7 +3972,6 @@ lim_send_extended_chan_switch_action_frame(struct mac_context *mac_ctx,
|
||||
ch_spacing = wlan_reg_dmn_get_chanwidth_from_opclass(
|
||||
mac_ctx->scan.countryCodeCurrent, new_channel,
|
||||
new_op_class);
|
||||
pe_debug("wrapper: ch_spacing %hu", ch_spacing);
|
||||
|
||||
if ((ch_spacing == 80) || (ch_spacing == 160)) {
|
||||
wide_bw_ie = &session_entry->gLimWiderBWChannelSwitch;
|
||||
@ -4041,12 +4040,12 @@ lim_send_extended_chan_switch_action_frame(struct mac_context *mac_ctx,
|
||||
session_entry->opmode == QDF_P2P_GO_MODE)
|
||||
txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
|
||||
|
||||
pe_debug("Send Ext channel Switch to :"QDF_MAC_ADDR_STR" with swcount %d, swmode %d , newchannel %d newops %d",
|
||||
QDF_MAC_ADDR_ARRAY(mac_hdr->da),
|
||||
frm.ext_chan_switch_ann_action.switch_count,
|
||||
frm.ext_chan_switch_ann_action.switch_mode,
|
||||
frm.ext_chan_switch_ann_action.new_channel,
|
||||
frm.ext_chan_switch_ann_action.op_class);
|
||||
pe_debug("ECSA frame to :"QDF_MAC_ADDR_STR" count %d mode %d chan %d op class %d",
|
||||
QDF_MAC_ADDR_ARRAY(mac_hdr->da),
|
||||
frm.ext_chan_switch_ann_action.switch_count,
|
||||
frm.ext_chan_switch_ann_action.switch_mode,
|
||||
frm.ext_chan_switch_ann_action.new_channel,
|
||||
frm.ext_chan_switch_ann_action.op_class);
|
||||
|
||||
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
|
||||
session_entry->peSessionId, mac_hdr->fc.subType));
|
||||
|
@ -1459,11 +1459,6 @@ static QDF_STATUS lim_process_csa_wbw_ie(struct mac_context *mac_ctx,
|
||||
|
||||
ap_new_ch_width = csa_params->new_ch_width + 1;
|
||||
|
||||
pe_debug("new channel: %d new_ch_width: %d seg0: %d seg1: %d",
|
||||
csa_params->channel, ap_new_ch_width,
|
||||
csa_params->new_ch_freq_seg1,
|
||||
csa_params->new_ch_freq_seg2);
|
||||
|
||||
if ((ap_new_ch_width != CH_WIDTH_80MHZ) &&
|
||||
(ap_new_ch_width != CH_WIDTH_160MHZ) &&
|
||||
(ap_new_ch_width != CH_WIDTH_80P80MHZ)) {
|
||||
@ -1562,11 +1557,6 @@ static QDF_STATUS lim_process_csa_wbw_ie(struct mac_context *mac_ctx,
|
||||
chnl_switch_info->newChanWidth = ap_new_ch_width;
|
||||
}
|
||||
prnt_log:
|
||||
pe_debug("new channel: %d new_ch_width: %d seg0: %d seg1: %d",
|
||||
csa_params->channel,
|
||||
chnl_switch_info->newChanWidth,
|
||||
chnl_switch_info->newCenterChanFreq0,
|
||||
chnl_switch_info->newCenterChanFreq1);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
@ -1594,8 +1584,6 @@ void lim_handle_csa_offload_msg(struct mac_context *mac_ctx,
|
||||
tLimWiderBWChannelSwitchInfo *chnl_switch_info = NULL;
|
||||
tLimChannelSwitchInfo *lim_ch_switch = NULL;
|
||||
|
||||
pe_debug("handle csa offload msg");
|
||||
|
||||
if (!csa_params) {
|
||||
pe_err("limMsgQ body ptr is NULL");
|
||||
return;
|
||||
@ -1657,21 +1645,12 @@ void lim_handle_csa_offload_msg(struct mac_context *mac_ctx,
|
||||
mac_ctx->roam.configParam.channelBondingMode5GHz;
|
||||
}
|
||||
|
||||
pe_debug("vht: %d ht: %d he %d flag: %x chan: %d, sec_ch_offset %d cbmode %d",
|
||||
pe_debug("Session %d vdev %d: vht: %d ht: %d he %d cbmode %d",
|
||||
session_entry->peSessionId, session_entry->vdev_id,
|
||||
session_entry->vhtCapability,
|
||||
session_entry->htSupportedChannelWidthSet,
|
||||
lim_is_session_he_capable(session_entry),
|
||||
csa_params->ies_present_flag,
|
||||
csa_params->channel,
|
||||
csa_params->sec_chan_offset,
|
||||
channel_bonding_mode);
|
||||
pe_debug("freq %d seg1: %d seg2: %d width: %d country: %s class: %d",
|
||||
csa_params->csa_chan_freq,
|
||||
csa_params->new_ch_freq_seg1,
|
||||
csa_params->new_ch_freq_seg2,
|
||||
csa_params->new_ch_width,
|
||||
mac_ctx->scan.countryCodeCurrent,
|
||||
csa_params->new_op_class);
|
||||
|
||||
session_entry->htSupportedChannelWidthSet = false;
|
||||
|
||||
@ -1682,7 +1661,6 @@ void lim_handle_csa_offload_msg(struct mac_context *mac_ctx,
|
||||
(QDF_STATUS_SUCCESS == lim_process_csa_wbw_ie(mac_ctx,
|
||||
csa_params, chnl_switch_info,
|
||||
session_entry))) {
|
||||
pe_debug("CSA wide BW IE process successful");
|
||||
lim_ch_switch->sec_ch_offset =
|
||||
PHY_SINGLE_CHANNEL_CENTERED;
|
||||
if (chnl_switch_info->newChanWidth) {
|
||||
@ -1827,9 +1805,14 @@ void lim_handle_csa_offload_msg(struct mac_context *mac_ctx,
|
||||
session_entry->htSupportedChannelWidthSet = true;
|
||||
}
|
||||
}
|
||||
pe_debug("new ch width: %d space: %d new ht width %d",
|
||||
session_entry->gLimChannelSwitch.ch_width, chan_space,
|
||||
session_entry->htSupportedChannelWidthSet);
|
||||
pe_debug("new ch %d freq %d width: %d freq0 %d freq1 %d ht width %d",
|
||||
session_entry->gLimChannelSwitch.primaryChannel,
|
||||
session_entry->gLimChannelSwitch.sw_target_freq,
|
||||
session_entry->gLimChannelSwitch.ch_width,
|
||||
session_entry->gLimChannelSwitch.ch_center_freq_seg0,
|
||||
session_entry->gLimChannelSwitch.ch_center_freq_seg1,
|
||||
session_entry->gLimChannelSwitch.sec_ch_offset);
|
||||
|
||||
if (session_entry->curr_op_freq == csa_params->csa_chan_freq &&
|
||||
session_entry->ch_width ==
|
||||
session_entry->gLimChannelSwitch.ch_width) {
|
||||
|
@ -1881,7 +1881,6 @@ static void __lim_process_channel_switch_timeout(struct pe_session *pe_session)
|
||||
}
|
||||
switch (pe_session->gLimChannelSwitch.state) {
|
||||
case eLIM_CHANNEL_SWITCH_PRIMARY_ONLY:
|
||||
pe_warn("CHANNEL_SWITCH_PRIMARY_ONLY");
|
||||
lim_switch_primary_channel(mac,
|
||||
pe_session->gLimChannelSwitch.
|
||||
sw_target_freq, pe_session);
|
||||
@ -1889,7 +1888,6 @@ static void __lim_process_channel_switch_timeout(struct pe_session *pe_session)
|
||||
eLIM_CHANNEL_SWITCH_IDLE;
|
||||
break;
|
||||
case eLIM_CHANNEL_SWITCH_PRIMARY_AND_SECONDARY:
|
||||
pe_warn("CHANNEL_SWITCH_PRIMARY_AND_SECONDARY");
|
||||
lim_switch_primary_secondary_channel(mac, pe_session,
|
||||
pe_session->gLimChannelSwitch.sw_target_freq,
|
||||
pe_session->gLimChannelSwitch.ch_center_freq_seg0,
|
||||
@ -2218,16 +2216,6 @@ void lim_switch_channel_cback(struct mac_context *mac, QDF_STATUS status,
|
||||
pe_session->gLimChannelSwitch.ch_center_freq_seg1;
|
||||
|
||||
pSirSmeSwitchChInd->status = status;
|
||||
pe_debug(
|
||||
"session: %d freq: %d width: %d sec offset: %d seg0: %d seg1: %d status %d",
|
||||
pSirSmeSwitchChInd->sessionId,
|
||||
pSirSmeSwitchChInd->freq,
|
||||
pSirSmeSwitchChInd->chan_params.ch_width,
|
||||
pSirSmeSwitchChInd->chan_params.sec_ch_offset,
|
||||
pSirSmeSwitchChInd->chan_params.center_freq_seg0,
|
||||
pSirSmeSwitchChInd->chan_params.center_freq_seg1,
|
||||
status);
|
||||
|
||||
qdf_mem_copy(pSirSmeSwitchChInd->bssid.bytes, pe_session->bssId,
|
||||
QDF_MAC_ADDR_SIZE);
|
||||
mmhMsg.bodyptr = pSirSmeSwitchChInd;
|
||||
@ -2246,8 +2234,7 @@ void lim_switch_primary_channel(struct mac_context *mac,
|
||||
uint32_t new_channel_freq,
|
||||
struct pe_session *pe_session)
|
||||
{
|
||||
pe_debug("old chnl freq: %d --> new chnl freq: %d",
|
||||
pe_session->curr_op_freq,
|
||||
pe_debug("freq: %d --> freq: %d", pe_session->curr_op_freq,
|
||||
new_channel_freq);
|
||||
|
||||
pe_session->curr_req_chan_freq = new_channel_freq;
|
||||
@ -2283,14 +2270,13 @@ void lim_switch_primary_secondary_channel(struct mac_context *mac,
|
||||
|
||||
/* Store the new primary and secondary channel in session entries if different */
|
||||
if (pe_session->curr_op_freq != new_channel_freq) {
|
||||
pe_warn("switch old chnl freq: %d --> new chnl freq: %d",
|
||||
pe_session->curr_op_freq,
|
||||
pe_warn("freq: %d --> freq: %d", pe_session->curr_op_freq,
|
||||
new_channel_freq);
|
||||
pe_session->curr_op_freq = new_channel_freq;
|
||||
}
|
||||
if (pe_session->htSecondaryChannelOffset !=
|
||||
pe_session->gLimChannelSwitch.sec_ch_offset) {
|
||||
pe_warn("switch old sec chnl: %d --> new sec chnl: %d",
|
||||
pe_warn("HT sec chnl: %d --> HT sec chnl: %d",
|
||||
pe_session->htSecondaryChannelOffset,
|
||||
pe_session->gLimChannelSwitch.sec_ch_offset);
|
||||
pe_session->htSecondaryChannelOffset =
|
||||
@ -7792,12 +7778,9 @@ void lim_process_ap_ecsa_timeout(void *data)
|
||||
/* Stop the timer if already running */
|
||||
qdf_mc_timer_stop(&session->ap_ecsa_timer);
|
||||
|
||||
if (session->gLimChannelSwitch.switchCount) {
|
||||
if (session->gLimChannelSwitch.switchCount)
|
||||
/* Decrement the beacon switch count */
|
||||
session->gLimChannelSwitch.switchCount--;
|
||||
pe_debug("current beacon count %d",
|
||||
session->gLimChannelSwitch.switchCount);
|
||||
}
|
||||
|
||||
/*
|
||||
* Send only g_sap_chanswitch_beacon_cnt beacons with CSA IE Set in
|
||||
@ -8398,7 +8381,7 @@ void lim_flush_bssid(struct mac_context *mac_ctx, uint8_t *bssid)
|
||||
wlan_objmgr_pdev_release_ref(pdev, WLAN_LEGACY_MAC_ID);
|
||||
|
||||
if (QDF_IS_STATUS_SUCCESS(status))
|
||||
pe_debug("Removed BSS entry:%pM", bssid);
|
||||
pe_debug("Removed BSS entry:%pM from scan cache", bssid);
|
||||
|
||||
if (filter)
|
||||
qdf_mem_free(filter);
|
||||
@ -8566,10 +8549,6 @@ QDF_STATUS lim_pre_vdev_start(struct mac_context *mac,
|
||||
des_chan->ch_freq_seg2 = session->ch_center_freq_seg1;
|
||||
des_chan->ch_ieee = wlan_reg_freq_to_chan(mac->pdev, des_chan->ch_freq);
|
||||
|
||||
pe_debug("ch_freq %d chan %d chan_width %d ch_freq_seg1: %d, ch_freq_seg2: %d",
|
||||
des_chan->ch_freq, des_chan->ch_ieee, des_chan->ch_width,
|
||||
des_chan->ch_freq_seg1, des_chan->ch_freq_seg2);
|
||||
|
||||
mlme_obj->mgmt.generic.maxregpower = session->maxTxPower;
|
||||
mlme_obj->proto.generic.beacon_interval =
|
||||
session->beaconParams.beaconInterval;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@ -89,9 +89,6 @@ QDF_STATUS sch_send_beacon_req(struct mac_context *mac, uint8_t *beaconPayload,
|
||||
mac->sch.csa_count_offset;
|
||||
beaconParams->ecsa_count_offset =
|
||||
mac->sch.ecsa_count_offset;
|
||||
pe_debug("csa_count_offset %d ecsa_count_offset %d",
|
||||
beaconParams->csa_count_offset,
|
||||
beaconParams->ecsa_count_offset);
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,8 +141,6 @@ QDF_STATUS sch_send_beacon_req(struct mac_context *mac, uint8_t *beaconPayload,
|
||||
if (QDF_STATUS_SUCCESS != retCode)
|
||||
pe_err("Posting SEND_BEACON_REQ to HAL failed, reason=%X",
|
||||
retCode);
|
||||
else
|
||||
pe_debug("Successfully posted WMA_SEND_BEACON_REQ to HAL");
|
||||
|
||||
return retCode;
|
||||
}
|
||||
|
@ -455,7 +455,6 @@ sch_set_fixed_beacon_fields(struct mac_context *mac_ctx, struct pe_session *sess
|
||||
populate_dot11f_ht_info(mac_ctx, &bcn_2->HTInfo, session);
|
||||
}
|
||||
if (session->vhtCapability) {
|
||||
pe_debug("Populate VHT IEs in Beacon");
|
||||
populate_dot11f_vht_caps(mac_ctx, session, &bcn_2->VHTCaps);
|
||||
populate_dot11f_vht_operation(mac_ctx, session,
|
||||
&bcn_2->VHTOperation);
|
||||
|
@ -1190,9 +1190,6 @@ sch_beacon_edca_process(struct mac_context *mac, tSirMacEdcaParamSetIE *edca,
|
||||
|
||||
follow_ap_edca = mlme_get_follow_ap_edca_flag(session->vdev);
|
||||
|
||||
pe_debug("Updating parameter set count: Old %d ---> new %d",
|
||||
session->gLimEdcaParamSetCount, edca->qosInfo.count);
|
||||
|
||||
session->gLimEdcaParamSetCount = edca->qosInfo.count;
|
||||
session->gLimEdcaParams[QCA_WLAN_AC_BE] = edca->acbe;
|
||||
session->gLimEdcaParams[QCA_WLAN_AC_BK] = edca->acbk;
|
||||
@ -1261,15 +1258,15 @@ sch_beacon_edca_process(struct mac_context *mac, tSirMacEdcaParamSetIE *edca,
|
||||
}
|
||||
WLAN_HOST_DIAG_LOG_REPORT(log_ptr);
|
||||
#endif /* FEATURE_WLAN_DIAG_SUPPORT */
|
||||
pe_debug("Edca param enabled in ini %d. Updating Local EDCA Params(gLimEdcaParams) to: ",
|
||||
pe_debug("Edca param enabled %d. Updating Local Params to: ",
|
||||
mac->mlme_cfg->edca_params.enable_edca_params);
|
||||
for (i = 0; i < QCA_WLAN_AC_ALL; i++) {
|
||||
pe_debug("AC[%d]: AIFSN: %d, ACM %d, CWmin %d, CWmax %d, TxOp %d",
|
||||
i, session->gLimEdcaParams[i].aci.aifsn,
|
||||
session->gLimEdcaParams[i].aci.acm,
|
||||
session->gLimEdcaParams[i].cw.min,
|
||||
session->gLimEdcaParams[i].cw.max,
|
||||
session->gLimEdcaParams[i].txoplimit);
|
||||
pe_nofl_debug("AC[%d]: AIFSN: %d, ACM %d, CWmin %d, CWmax %d, TxOp %d",
|
||||
i, session->gLimEdcaParams[i].aci.aifsn,
|
||||
session->gLimEdcaParams[i].aci.acm,
|
||||
session->gLimEdcaParams[i].cw.min,
|
||||
session->gLimEdcaParams[i].cw.max,
|
||||
session->gLimEdcaParams[i].txoplimit);
|
||||
}
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
@ -764,8 +764,6 @@ populate_dot11f_ht_caps(struct mac_context *mac,
|
||||
if (pe_session) {
|
||||
disable_high_ht_mcs_2x2 =
|
||||
mac->mlme_cfg->rates.disable_high_ht_mcs_2x2;
|
||||
pe_debug("disable HT high MCS INI param[%d]",
|
||||
disable_high_ht_mcs_2x2);
|
||||
if (pe_session->nss == NSS_1x1_MODE) {
|
||||
pDot11f->supportedMCSSet[1] = 0;
|
||||
pDot11f->txSTBC = 0;
|
||||
|
@ -404,9 +404,9 @@ wlansap_roam_process_ch_change_success(struct mac_context *mac_ctx,
|
||||
* Channel change is successful. If the new channel is a DFS channel,
|
||||
* then we will to perform channel availability check for 60 seconds
|
||||
*/
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_MED,
|
||||
FL("sapdfs: changing target channel freq to [%d] state %d"),
|
||||
mac_ctx->sap.SapDfsInfo.target_chan_freq, sap_ctx->fsm_state);
|
||||
sap_nofl_debug("sapdfs: SAP CSA: freq to [%d] state %d",
|
||||
mac_ctx->sap.SapDfsInfo.target_chan_freq,
|
||||
sap_ctx->fsm_state);
|
||||
target_chan_freq = mac_ctx->sap.SapDfsInfo.target_chan_freq;
|
||||
|
||||
/* If SAP is not in starting or started state don't proceed further */
|
||||
@ -437,8 +437,6 @@ wlansap_roam_process_ch_change_success(struct mac_context *mac_ctx,
|
||||
sap_ctx->chan_freq = target_chan_freq;
|
||||
/* check if currently selected channel is a DFS channel */
|
||||
if (is_ch_dfs && sap_ctx->pre_cac_complete) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_MED, FL(
|
||||
"sapdfs: => SAP_STARTING, on pre cac"));
|
||||
/* Start beaconing on the new pre cac channel */
|
||||
wlansap_start_beacon_req(sap_ctx);
|
||||
sap_ctx->fsm_state = SAP_STARTING;
|
||||
@ -455,20 +453,12 @@ wlansap_roam_process_ch_change_success(struct mac_context *mac_ctx,
|
||||
mac_ctx->psoc,
|
||||
sap_ctx->sessionId)) {
|
||||
sap_ctx->fsm_state = SAP_INIT;
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_MED,
|
||||
"%s: %d: sapdfs: => SAP_INIT with ignore cac false on sapctx[%pK]",
|
||||
__func__, __LINE__, sap_ctx);
|
||||
/* DFS Channel */
|
||||
sap_event.event = eSAP_DFS_CHANNEL_CAC_START;
|
||||
sap_event.params = csr_roam_info;
|
||||
sap_event.u1 = 0;
|
||||
sap_event.u2 = 0;
|
||||
} else {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP,
|
||||
QDF_TRACE_LEVEL_INFO_MED,
|
||||
"%s: %d: sapdfs: SAP_STARTING with ignore cac true on sapctx[%pK]",
|
||||
__func__, __LINE__, sap_ctx);
|
||||
|
||||
/* Start beaconing on the new channel */
|
||||
wlansap_start_beacon_req(sap_ctx);
|
||||
sap_ctx->fsm_state = SAP_STARTING;
|
||||
@ -479,9 +469,6 @@ wlansap_roam_process_ch_change_success(struct mac_context *mac_ctx,
|
||||
sap_event.u2 = eCSR_ROAM_RESULT_INFRA_STARTED;
|
||||
}
|
||||
} else {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_MED,
|
||||
"%s: %d: sapdfs: => SAP_STARTING on sapctx[%pK]",
|
||||
__func__, __LINE__, sap_ctx);
|
||||
/* non-DFS channel */
|
||||
sap_ctx->fsm_state = SAP_STARTING;
|
||||
mac_ctx->sap.SapDfsInfo.sap_radar_found_status = false;
|
||||
|
@ -2483,8 +2483,7 @@ static QDF_STATUS sap_fsm_state_starting(struct sap_context *sap_ctx,
|
||||
* Transition from SAP_STARTING to SAP_STARTED
|
||||
* (both without substates)
|
||||
*/
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
|
||||
FL("from state chan_freq = %d %s => %s ch_width %d"),
|
||||
sap_debug("Chan %d %s => %s ch_width %d",
|
||||
sap_ctx->chan_freq, "SAP_STARTING", "SAP_STARTED",
|
||||
sap_ctx->ch_params.ch_width);
|
||||
sap_ctx->fsm_state = SAP_STARTED;
|
||||
@ -2494,11 +2493,6 @@ static QDF_STATUS sap_fsm_state_starting(struct sap_context *sap_ctx,
|
||||
eSAP_START_BSS_EVENT,
|
||||
(void *) eSAP_STATUS_SUCCESS);
|
||||
sap_chan_freq = sap_ctx->chan_freq;
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
|
||||
FL("ap_ctx->ch_params.ch_width %d, channel %d"),
|
||||
sap_ctx->ch_params.ch_width,
|
||||
wlan_reg_get_channel_state_for_freq(
|
||||
mac_ctx->pdev, sap_chan_freq));
|
||||
band = wlan_reg_freq_to_band(sap_ctx->chan_freq);
|
||||
if (sap_ctx->ch_params.center_freq_seg1)
|
||||
ch_cfreq1 = wlan_reg_chan_band_to_freq(
|
||||
@ -2753,9 +2747,7 @@ QDF_STATUS sap_fsm(struct sap_context *sap_ctx, struct sap_sm_event *sap_event)
|
||||
}
|
||||
mac_handle = MAC_HANDLE(mac_ctx);
|
||||
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
|
||||
FL("sap_ctx=%pK, state_var=%d, msg=0x%x"),
|
||||
sap_ctx, state_var, msg);
|
||||
sap_debug("state=%d handle event=%d", state_var, msg);
|
||||
|
||||
switch (state_var) {
|
||||
case SAP_INIT:
|
||||
|
@ -1351,12 +1351,12 @@ QDF_STATUS wlansap_set_channel_change_with_csa(struct sap_context *sap_ctx,
|
||||
sap_err("%u is unsafe channel freq", target_chan_freq);
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
sap_debug("sap chan freq:%d target freq:%d conn on 5GHz:%d, csa_reason:%s(%d) strict %d vdev %d",
|
||||
sap_ctx->chan_freq, target_chan_freq,
|
||||
policy_mgr_is_any_mode_active_on_band_along_with_session(
|
||||
mac->psoc, sap_ctx->sessionId, POLICY_MGR_BAND_5),
|
||||
sap_get_csa_reason_str(sap_ctx->csa_reason),
|
||||
sap_ctx->csa_reason, strict, sap_ctx->sessionId);
|
||||
sap_nofl_debug("SAP CSA: %d ---> %d conn on 5GHz:%d, csa_reason:%s(%d) strict %d vdev %d",
|
||||
sap_ctx->chan_freq, target_chan_freq,
|
||||
policy_mgr_is_any_mode_active_on_band_along_with_session(
|
||||
mac->psoc, sap_ctx->sessionId, POLICY_MGR_BAND_5),
|
||||
sap_get_csa_reason_str(sap_ctx->csa_reason),
|
||||
sap_ctx->csa_reason, strict, sap_ctx->sessionId);
|
||||
|
||||
sta_sap_scc_on_dfs_chan =
|
||||
policy_mgr_is_sta_sap_scc_allowed_on_dfs_chan(mac->psoc);
|
||||
@ -1445,7 +1445,7 @@ QDF_STATUS wlansap_set_channel_change_with_csa(struct sap_context *sap_ctx,
|
||||
* user input is used for the bandwidth
|
||||
*/
|
||||
if (target_bw != CH_WIDTH_MAX) {
|
||||
sap_debug("target bw:%d new width:%d",
|
||||
sap_nofl_debug("SAP CSA: target bw:%d new width:%d",
|
||||
target_bw,
|
||||
mac->sap.SapDfsInfo.
|
||||
new_ch_params.ch_width);
|
||||
@ -1505,10 +1505,6 @@ QDF_STATUS wlansap_set_channel_change_with_csa(struct sap_context *sap_ctx,
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
|
||||
"%s: Posted eSAP_CHANNEL_SWITCH_ANNOUNCEMENT_START successfully to sap_fsm for Channel freq = %d",
|
||||
__func__, target_chan_freq);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@ -1680,8 +1676,6 @@ void wlansap_get_sec_channel(uint8_t sec_ch_offset,
|
||||
default:
|
||||
*sec_chan_freq = 0;
|
||||
}
|
||||
sap_debug("sec channel offset %d, sec channel %d",
|
||||
sec_ch_offset, *sec_chan_freq);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1758,9 +1752,6 @@ QDF_STATUS wlansap_channel_change_request(struct sap_context *sap_ctx,
|
||||
(phy_mode == eCSR_DOT11_MODE_11a))
|
||||
phy_mode = eCSR_DOT11_MODE_11g;
|
||||
|
||||
sap_debug("phy_mode: %d, target_channel freq: %d new phy_mode: %d",
|
||||
sap_ctx->csr_roamProfile.phyMode,
|
||||
target_chan_freq, phy_mode);
|
||||
sap_ctx->csr_roamProfile.phyMode = phy_mode;
|
||||
|
||||
if (sap_ctx->csr_roamProfile.ChannelInfo.numOfChannels == 0 ||
|
||||
|
@ -214,12 +214,14 @@ static QDF_STATUS sme_process_set_hw_mode_resp(struct mac_context *mac, uint8_t
|
||||
csr_saved_scan_cmd_free_fields(mac, session);
|
||||
}
|
||||
if (reason == POLICY_MGR_UPDATE_REASON_CHANNEL_SWITCH_STA) {
|
||||
sme_info("Continue channel switch for STA");
|
||||
sme_info("Continue channel switch for STA on vdev %d",
|
||||
session_id);
|
||||
csr_sta_continue_csa(mac, session_id);
|
||||
}
|
||||
|
||||
if (reason == POLICY_MGR_UPDATE_REASON_CHANNEL_SWITCH) {
|
||||
sme_info("Continue channel switch for SAP");
|
||||
sme_info("Continue channel switch for SAP on vdev %d",
|
||||
session_id);
|
||||
csr_csa_restart(mac, session_id);
|
||||
}
|
||||
if (reason == POLICY_MGR_UPDATE_REASON_LFR2_ROAM)
|
||||
@ -1256,9 +1258,6 @@ static QDF_STATUS dfs_msg_processor(struct mac_context *mac,
|
||||
session_id = csa_ie_tx_complete_rsp->sessionId;
|
||||
roam_status = eCSR_ROAM_DFS_CHAN_SW_NOTIFY;
|
||||
roam_result = eCSR_ROAM_RESULT_DFS_CHANSW_UPDATE_SUCCESS;
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG,
|
||||
"eWNI_SME_DFS_CSAIE_TX_COMPLETE_IND session=%d",
|
||||
session_id);
|
||||
break;
|
||||
}
|
||||
case eWNI_SME_DFS_CAC_COMPLETE:
|
||||
|
@ -19993,8 +19993,6 @@ QDF_STATUS csr_roam_channel_change_req(struct mac_context *mac,
|
||||
qdf_mem_copy(&msg->extended_rateset, ¶m.extendedRateSet,
|
||||
sizeof(msg->extended_rateset));
|
||||
|
||||
sme_debug("target_chan_freq %d ch_width %d dot11mode %d",
|
||||
msg->target_chan_freq, msg->ch_width, msg->dot11mode);
|
||||
status = umac_send_mb_message_to_mac(msg);
|
||||
|
||||
return status;
|
||||
|
@ -1000,8 +1000,6 @@ uint16_t csr_check_concurrent_channel_overlap(struct mac_context *mac_ctx,
|
||||
uint32_t sap_lfreq, sap_hfreq, intf_lfreq, intf_hfreq;
|
||||
QDF_STATUS status;
|
||||
|
||||
sme_debug("sap_ch_freq: %d sap_phymode: %d", sap_ch_freq, sap_phymode);
|
||||
|
||||
if (mac_ctx->roam.configParam.cc_switch_mode ==
|
||||
QDF_MCC_TO_SCC_SWITCH_DISABLE)
|
||||
return 0;
|
||||
@ -1022,7 +1020,7 @@ uint16_t csr_check_concurrent_channel_overlap(struct mac_context *mac_ctx,
|
||||
}
|
||||
|
||||
sme_debug("sap_ch:%d sap_phymode:%d sap_cch:%d sap_hbw:%d chb:%d",
|
||||
sap_ch_freq, sap_phymode, sap_cfreq, sap_hbw, chb);
|
||||
sap_ch_freq, sap_phymode, sap_cfreq, sap_hbw, chb);
|
||||
|
||||
for (i = 0; i < WLAN_MAX_VDEVS; i++) {
|
||||
if (!CSR_IS_SESSION_VALID(mac_ctx, i))
|
||||
@ -1055,11 +1053,6 @@ uint16_t csr_check_concurrent_channel_overlap(struct mac_context *mac_ctx,
|
||||
session, &sap_ch_freq, &sap_hbw,
|
||||
&sap_cfreq, &intf_ch_freq, &intf_hbw,
|
||||
&intf_cfreq);
|
||||
|
||||
sme_debug("%d: sap_ch:%d sap_hbw:%d sap_cfreq:%d"
|
||||
" intf_ch:%d intf_hbw:%d, intf_cfreq:%d",
|
||||
i, sap_ch_freq, sap_hbw, sap_cfreq,
|
||||
intf_ch_freq, intf_hbw, intf_cfreq);
|
||||
}
|
||||
if (intf_ch_freq &&
|
||||
((intf_ch_freq <= wlan_reg_ch_to_freq(CHAN_ENUM_2484) &&
|
||||
@ -1070,8 +1063,8 @@ uint16_t csr_check_concurrent_channel_overlap(struct mac_context *mac_ctx,
|
||||
}
|
||||
|
||||
sme_debug("intf_ch:%d sap_ch:%d cc_switch_mode:%d, dbs:%d",
|
||||
intf_ch_freq, sap_ch_freq, cc_switch_mode,
|
||||
policy_mgr_is_dbs_enable(mac_ctx->psoc));
|
||||
intf_ch_freq, sap_ch_freq, cc_switch_mode,
|
||||
policy_mgr_is_dbs_enable(mac_ctx->psoc));
|
||||
|
||||
if (intf_ch_freq && sap_ch_freq != intf_ch_freq &&
|
||||
!policy_mgr_is_force_scc(mac_ctx->psoc)) {
|
||||
|
@ -1018,9 +1018,6 @@ static void wma_find_mcc_ap(tp_wma_handle wma, uint8_t vdev_id, bool add)
|
||||
static void wma_handle_hidden_ssid_restart(tp_wma_handle wma,
|
||||
struct wma_txrx_node *iface)
|
||||
{
|
||||
WMA_LOGE("%s: vdev restart event recevied for hidden ssid set using IOCTL",
|
||||
__func__);
|
||||
|
||||
wlan_vdev_mlme_sm_deliver_evt(iface->vdev,
|
||||
WLAN_VDEV_SM_EV_RESTART_RESP,
|
||||
0, NULL);
|
||||
@ -1056,14 +1053,13 @@ wma_update_peer_phymode_sta(tp_wma_handle wma, struct wma_txrx_node *iface)
|
||||
/* for CSA case firmware expects phymode before ch_wd */
|
||||
status = wma_set_peer_param(wma, bssid, WMI_PEER_PHYMODE, fw_phymode,
|
||||
vdev_id);
|
||||
WMA_LOGD("%s:vdev_id %d fw_phy_mode %d bss_phymode %d status %d",
|
||||
__func__, vdev_id, fw_phymode, bss_phymode, status);
|
||||
|
||||
|
||||
ch_width = wmi_get_ch_width_from_phy_mode(wma->wmi_handle, fw_phymode);
|
||||
status = wma_set_peer_param(wma, bssid, WMI_PEER_CHWIDTH, ch_width,
|
||||
vdev_id);
|
||||
WMA_LOGD("%s:vdev_id %d chanwidth %d status %d", __func__, vdev_id,
|
||||
ch_width, status);
|
||||
wma_debug("vdev_id %d fw_phy_mode %d bss_phymode %d chanwidth %d",
|
||||
vdev_id, fw_phymode, bss_phymode, ch_width);
|
||||
}
|
||||
|
||||
static void wma_sap_peer_send_phymode(struct wlan_objmgr_vdev *vdev,
|
||||
@ -1122,9 +1118,9 @@ static void wma_sap_peer_send_phymode(struct wlan_objmgr_vdev *vdev,
|
||||
wma_set_peer_param(wma, peer_mac_addr, WMI_PEER_CHWIDTH,
|
||||
max_ch_width_supported, vdev_id);
|
||||
|
||||
wma_debug("nw_type %d old phymode %d new phymode %d bw %d macaddr "QDF_MAC_ADDR_STR,
|
||||
nw_type, old_peer_phymode, new_phymode,
|
||||
max_ch_width_supported, QDF_MAC_ADDR_ARRAY(peer_mac_addr));
|
||||
wma_debug("old phymode %d new phymode %d bw %d macaddr "QDF_MAC_ADDR_STR,
|
||||
old_peer_phymode, new_phymode, max_ch_width_supported,
|
||||
QDF_MAC_ADDR_ARRAY(peer_mac_addr));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1224,8 +1220,6 @@ QDF_STATUS wma_vdev_start_resp_handler(struct vdev_mlme_obj *vdev_mlme,
|
||||
}
|
||||
#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
|
||||
|
||||
WMA_LOGD("%s: Enter", __func__);
|
||||
|
||||
wlan_res_cfg = lmac_get_tgt_res_cfg(psoc);
|
||||
if (!wlan_res_cfg) {
|
||||
WMA_LOGE("%s: Wlan resource config is NULL", __func__);
|
||||
|
@ -1205,10 +1205,9 @@ int wma_csa_offload_handler(void *handle, uint8_t *event, uint32_t len)
|
||||
|
||||
csa_offload_event->ies_present_flag = csa_event->ies_present_flag;
|
||||
|
||||
WMA_LOGD("CSA: New Channel = %d freq %d BSSID:%pM",
|
||||
csa_offload_event->channel, csa_offload_event->csa_chan_freq,
|
||||
csa_offload_event->bssId);
|
||||
WMA_LOGD("CSA: IEs Present Flag = 0x%x new ch width = %d ch center freq1 = %d ch center freq2 = %d new op class = %d",
|
||||
WMA_LOGD("CSA: BSSID %pM chan %d freq %d flag 0x%x width = %d freq1 = %d freq2 = %d op class = %d",
|
||||
csa_offload_event->bssId, csa_offload_event->channel,
|
||||
csa_offload_event->csa_chan_freq,
|
||||
csa_event->ies_present_flag,
|
||||
csa_offload_event->new_ch_width,
|
||||
csa_offload_event->new_ch_freq_seg1,
|
||||
|
@ -2221,7 +2221,6 @@ static QDF_STATUS wma_store_bcn_tmpl(tp_wma_handle wma, uint8_t vdev_id,
|
||||
SIR_MAX_BEACON_SIZE - sizeof(uint32_t)));
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
wma_debug("Storing received beacon template buf to local buffer");
|
||||
qdf_spin_lock_bh(&bcn->lock);
|
||||
|
||||
/*
|
||||
@ -2446,7 +2445,6 @@ void wma_send_beacon(tp_wma_handle wma, tpSendbeaconParams bcn_info)
|
||||
|
||||
if (wmi_service_enabled(wma->wmi_handle,
|
||||
wmi_service_beacon_offload)) {
|
||||
wma_nofl_debug("Beacon Offload Enabled Sending Unified command");
|
||||
status = wma_unified_bcn_tmpl_send(wma, vdev_id, bcn_info, 4);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
WMA_LOGE("%s : wmi_unified_bcn_tmpl_send Failed ",
|
||||
|
Loading…
Reference in New Issue
Block a user