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
This commit is contained in:
Rajesh Chauhan 2018-10-17 11:21:38 -07:00 • committed by nshrivas
commit b13d3af59f

View file

@ -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;