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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user