瀏覽代碼

qcacmn: set INTER_BSS_PEER flag for NAWDS peer in peer assoc

Set WMI_PEER_INTER_BSS_PEER peer flag in the fixed param in
WMI_PEER_ASSOC to differentiate between inter-bss and intra-bss peer.

Change-Id: Ic3f54646bfcf988ce53c3d581bacea65070a5036
Basamma Yakkanahalli 5 年之前
父節點
當前提交
f2c446e2ca
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 2 1
      wmi/inc/wmi_unified_param.h
  2. 3 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 1
wmi/inc/wmi_unified_param.h

@@ -1071,7 +1071,8 @@ struct peer_assoc_params {
 		 auth_flag:1,
 		 safe_mode_enabled:1,
 		 amsdu_disable:1,
-		 p2p_capable_sta:1;
+		 p2p_capable_sta:1,
+		 inter_bss_peer:1;
 	/* Use common structure */
 	uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
 	bool he_flag;

+ 3 - 0
wmi/src/wmi_unified_tlv.c

@@ -2436,6 +2436,9 @@ static inline void copy_peer_flags_tlv(
 	if (param->safe_mode_enabled)
 		cmd->peer_flags &=
 		    ~(WMI_PEER_NEED_PTK_4_WAY | WMI_PEER_NEED_GTK_2_WAY);
+	/* inter BSS peer */
+	if (param->inter_bss_peer)
+		cmd->peer_flags |= WMI_PEER_INTER_BSS_PEER;
 	/* Disable AMSDU for station transmit, if user configures it */
 	/* Disable AMSDU for AP transmit to 11n Stations, if user configures
 	 * it