From abc98d148330267f4f7efffcd01ed7659aac4c42 Mon Sep 17 00:00:00 2001 From: "Chandrasekaran, Manishekar" Date: Thu, 4 Feb 2016 10:25:27 +0530 Subject: [PATCH] qcacld-3.0: Log the channel switch IEs to debug any related issue Log the channel switch and extended channel switch information element along with the wide channel bandwidth sub element to debug any channel switch related issues. Since the IEs are populated only during channel switch, this logging of the IEs from the beacon should not have any impact in performance. Change-Id: I7a7e0dcf45f39fb6e4d049dde0b02289bde1d4f7 CRs-Fixed: 972007 --- core/mac/src/pe/sch/sch_beacon_gen.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/core/mac/src/pe/sch/sch_beacon_gen.c b/core/mac/src/pe/sch/sch_beacon_gen.c index efb73f488d8c..bd57105238dc 100644 --- a/core/mac/src/pe/sch/sch_beacon_gen.c +++ b/core/mac/src/pe/sch/sch_beacon_gen.c @@ -288,10 +288,17 @@ sch_set_fixed_beacon_fields(tpAniSirGlobal mac_ctx, tpPESession session) /* Initialize the 'new' fields at the end of the beacon */ if ((session->limSystemRole == eLIM_AP_ROLE) && - session->dfsIncludeChanSwIe == true) + session->dfsIncludeChanSwIe == true) { populate_dot_11_f_ext_chann_switch_ann(mac_ctx, &bcn_2->ext_chan_switch_ann, session); + sch_log(mac_ctx, LOG1, + FL("ecsa: mode:%d reg:%d chan:%d count:%d"), + bcn_2->ext_chan_switch_ann.switch_mode, + bcn_2->ext_chan_switch_ann.new_reg_class, + bcn_2->ext_chan_switch_ann.new_channel, + bcn_2->ext_chan_switch_ann.switch_count); + } populate_dot11_supp_operating_classes(mac_ctx, &bcn_2->SuppOperatingClasses, session); @@ -315,6 +322,11 @@ sch_set_fixed_beacon_fields(tpAniSirGlobal mac_ctx, tpPESession session) */ populate_dot11f_chan_switch_ann(mac_ctx, &bcn_2->ChanSwitchAnn, session); + sch_log(mac_ctx, LOG1, + FL("csa: mode:%d chan:%d count:%d"), + bcn_2->ChanSwitchAnn.switchMode, + bcn_2->ChanSwitchAnn.newChannel, + bcn_2->ChanSwitchAnn.switchCount); /* * TODO: depending the CB mode, extended channel switch @@ -338,9 +350,19 @@ sch_set_fixed_beacon_fields(tpAniSirGlobal mac_ctx, tpPESession session) * Populate the Channel Switch Wrapper Element if * SAP operates in 40/80 Mhz Channel Width. */ - if (true == session->dfsIncludeChanWrapperIe) + if (true == session->dfsIncludeChanWrapperIe) { populate_dot11f_chan_switch_wrapper(mac_ctx, &bcn_2->ChannelSwitchWrapper, session); + sch_log(mac_ctx, LOG1, + FL("wrapper: width:%d f0:%d f1:%d"), + bcn_2->ChannelSwitchWrapper. + WiderBWChanSwitchAnn.newChanWidth, + bcn_2->ChannelSwitchWrapper. + WiderBWChanSwitchAnn.newCenterChanFreq0, + bcn_2->ChannelSwitchWrapper. + WiderBWChanSwitchAnn.newCenterChanFreq1 + ); + } } }