mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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:
parent
72548e3680
commit
b13d3af59f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue