RTW_BAND_5G
if (!(chip->band & RTW_BAND_5G))
if (rtwdev->hal.current_band_type == RTW_BAND_5G)
if (hal->current_band_type == RTW_BAND_5G)
band = scan_info->op_chan > 14 ? RTW_BAND_5G : RTW_BAND_2G;
band = chan > 14 ? RTW_BAND_5G : RTW_BAND_2G;
sifs = rtwdev->hal.current_band_type == RTW_BAND_5G ? 16 : 10;
} else if (band == RTW_BAND_5G) {
if (hal->current_band_type == RTW_BAND_5G) {
if (chip->band & RTW_BAND_5G) {
band = ch_param.center_chan > 14 ? RTW_BAND_5G : RTW_BAND_2G;
if (hal->current_band_type == RTW_BAND_5G) {
case RTW_BAND_5G:
.band = RTW_BAND_2G | RTW_BAND_5G,
if (rtwdev->hal.current_band_type == RTW_BAND_5G) {
old_band = RTW_BAND_5G;
new_band = RTW_BAND_5G;
if (band == RTW_BAND_5G)
.band = RTW_BAND_2G | RTW_BAND_5G,
if (new_band == RTW_BAND_5G)
.band = RTW_BAND_2G | RTW_BAND_5G,
if (hal->current_band_type == RTW_BAND_5G)
if (hal->current_band_type == RTW_BAND_5G)
.band = RTW_BAND_2G | RTW_BAND_5G,
.band = RTW_BAND_2G | RTW_BAND_5G,
.band = RTW_BAND_2G | RTW_BAND_5G,
old_band = RTW_BAND_5G;
new_band = RTW_BAND_5G;
if (hal->current_band_type == RTW_BAND_5G &&