mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2024-11-12 18:21:17 +00:00
MA-20998-1 mxm_wifiex: Fix unannotated fall-through between switch labels build error
Fix build error like below: mxm_wifiex/wlan_src/mlan/mlan_11ac.c:73:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] case 52: ^ Change-Id: I837733df847bbf4898695ed9d2f2e5ff95d4fd37 Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
This commit is contained in:
parent
ecebb751f7
commit
002406b866
1 changed files with 8 additions and 0 deletions
|
@ -70,6 +70,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 52:
|
||||
case 56:
|
||||
case 60:
|
||||
|
@ -82,6 +83,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 100:
|
||||
case 104:
|
||||
case 108:
|
||||
|
@ -91,6 +93,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 116:
|
||||
case 120:
|
||||
case 124:
|
||||
|
@ -103,6 +106,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 132:
|
||||
case 136:
|
||||
case 140:
|
||||
|
@ -112,6 +116,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 149:
|
||||
case 153:
|
||||
case 157:
|
||||
|
@ -121,6 +126,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 165:
|
||||
case 169:
|
||||
case 173:
|
||||
|
@ -130,6 +136,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case 184:
|
||||
case 188:
|
||||
case 192:
|
||||
|
@ -139,6 +146,7 @@ t_u8 wlan_get_center_freq_idx(mlan_private *pmpriv, t_u16 band, t_u32 pri_chan,
|
|||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
default: /* error. go to the default */
|
||||
center_freq_idx = 42;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue