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
This commit is contained in:
Bala Venkatesh
2019-11-08 10:48:15 +05:30
committed by nshrivas
parent 68c2881b76
commit 93eb1b60ee

View File

@@ -548,8 +548,10 @@ static uint8_t tdls_get_wmi_offchannel_bw(uint16_t tdls_off_ch_bw_offset)
break; break;
case BW80: case BW80:
off_chan_bw = WMI_TDLS_OFFCHAN_80MHZ; off_chan_bw = WMI_TDLS_OFFCHAN_80MHZ;
break;
case BWALL: case BWALL:
off_chan_bw = WMI_TDLS_OFFCHAN_160MHZ; off_chan_bw = WMI_TDLS_OFFCHAN_160MHZ;
break;
default: default:
WMI_LOGD(FL("unknown tdls offchannel bw offset %d"), WMI_LOGD(FL("unknown tdls offchannel bw offset %d"),
tdls_off_ch_bw_offset); tdls_off_ch_bw_offset);