mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacld-3.0: Set peer phymode not higher than sap's
Associating peer's phymode is not allowed to be highter then sap's. If it is, set the peer phymode equal to sap phymode. Change-Id: Ia8152ce27fb8ddf2bbff5139d3b8d89c811d7ed0 CRs-Fixed: 2500383
This commit is contained in:
parent
21d7effc7f
commit
7db7a5d167
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue