소스 검색

qcacld-3.0: Check peer phymode only if DUT is SAP/GO

Force set peer's phymode to the phymode of current interface if first
one big then second one, then TDLS link can't select more better
phymode when DUT support VHT mode and connect to 11A mode AP.

Change-Id: Idc72e04dcdf7ead3b52effc2c06862bc9dddd732
CRs-Fixed: 2512622
Wu Gao 5 년 전
부모
커밋
efd73546c8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core/wma/src/wma_mgmt.c

+ 2 - 2
core/wma/src/wma_mgmt.c

@@ -1290,8 +1290,8 @@ 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",
+	if ((intr->type == WMI_VDEV_TYPE_AP) && (phymode > intr->chanmode)) {
+		WMA_LOGD("Peer phymode %d is not allowed. Set it equal to sap/go phymode %d",
 			 phymode, intr->chanmode);
 		phymode = intr->chanmode;
 	}