From 93eb1b60eed1a7e004eb92dff3d777302c3ef0f9 Mon Sep 17 00:00:00 2001 From: Bala Venkatesh Date: Fri, 8 Nov 2019 10:48:15 +0530 Subject: [PATCH] qcacmn: Fix off_channel_bw in tdls_get_wmi_offchannel_bw() The function tdls_get_wmi_offchannel_bw, returns the off channel bandwidth value. For BW80 and BWALL types, there is no break. This could result in the off_chan_bw value overwritten to WMI_TDLS_OFFCHAN_20MHZ for BW80 and BWALL. Fix the missing break statement in function tdls_get_wmi_offchannel_bw to return proper values for off_chan_bw. Change-Id: Ic940c70fd0e555d27e338518301c6ed607310fa4 CRs-Fixed: 2555951 --- wmi/src/wmi_unified_sta_tlv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wmi/src/wmi_unified_sta_tlv.c b/wmi/src/wmi_unified_sta_tlv.c index e5732847c8ac..eacfedf523e1 100644 --- a/wmi/src/wmi_unified_sta_tlv.c +++ b/wmi/src/wmi_unified_sta_tlv.c @@ -548,8 +548,10 @@ static uint8_t tdls_get_wmi_offchannel_bw(uint16_t tdls_off_ch_bw_offset) break; case BW80: off_chan_bw = WMI_TDLS_OFFCHAN_80MHZ; + break; case BWALL: off_chan_bw = WMI_TDLS_OFFCHAN_160MHZ; + break; default: WMI_LOGD(FL("unknown tdls offchannel bw offset %d"), tdls_off_ch_bw_offset);