diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 0ecb24f1d99a..65a0b1d02fa8 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -1290,6 +1290,11 @@ QDF_STATUS wma_send_peer_assoc(tp_wma_handle wma, phymode = wma_peer_phymode(nw_type, params->staType, params->htCapable, params->ch_width, params->vhtCapable, is_he); + if (phymode > intr->chanmode) { + WMA_LOGD("Peer phymode %d is not allowed. Set it equal to sap phymode %d", + phymode, intr->chanmode); + phymode = intr->chanmode; + } wma_objmgr_set_peer_mlme_phymode(wma, params->staMac, phymode);