From b13d3af59f59f80049beaab1d20c8d300c6ba3a2 Mon Sep 17 00:00:00 2001 From: Rajesh Chauhan Date: Wed, 17 Oct 2018 11:21:38 -0700 Subject: [PATCH] qcacmn: Print input bw in tdls_get_wmi_offchannel_bw for error case In tdls_get_wmi_offchannel_bw in default case uninitialized output bw is printed instead input bw. This will result in printing uninitialized variable. Change-Id: I7819dad3426fbe1b4c4626bc69744e3ee59ba18f CRs-Fixed: 2329333 --- wmi/src/wmi_unified_sta_tlv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wmi/src/wmi_unified_sta_tlv.c b/wmi/src/wmi_unified_sta_tlv.c index f1d30d8cead6..ee68e1fd32cb 100644 --- a/wmi/src/wmi_unified_sta_tlv.c +++ b/wmi/src/wmi_unified_sta_tlv.c @@ -628,8 +628,8 @@ static uint8_t tdls_get_wmi_offchannel_bw(uint16_t tdls_off_ch_bw_offset) case BWALL: off_chan_bw = WMI_TDLS_OFFCHAN_160MHZ; default: - WMI_LOGD(FL("unknown tdls_offchannel bw offset %d"), - off_chan_bw); + WMI_LOGD(FL("unknown tdls offchannel bw offset %d"), + tdls_off_ch_bw_offset); off_chan_bw = WMI_TDLS_OFFCHAN_20MHZ; } return off_chan_bw;