|
@@ -8602,7 +8602,7 @@ QDF_STATUS lim_set_ch_phy_mode(struct wlan_objmgr_vdev *vdev, uint8_t dot11mode)
|
|
chan_mode = wma_chan_phy_mode(des_chan->ch_freq, ch_width,
|
|
chan_mode = wma_chan_phy_mode(des_chan->ch_freq, ch_width,
|
|
dot11mode);
|
|
dot11mode);
|
|
|
|
|
|
- if (chan_mode == MODE_UNKNOWN) {
|
|
|
|
|
|
+ if (chan_mode == WLAN_PHYMODE_AUTO || chan_mode == WLAN_PHYMODE_MAX) {
|
|
pe_err("Invalid phy mode!");
|
|
pe_err("Invalid phy mode!");
|
|
return QDF_STATUS_E_FAILURE;
|
|
return QDF_STATUS_E_FAILURE;
|
|
}
|
|
}
|