소스 검색

Merge "msm: ipa: allow both tcp and udp for the debugfs wlan filters"

QCTECMDR Service 6 달 전
부모
커밋
cf4b11fbae
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c

+ 2 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c

@@ -3669,7 +3669,8 @@ static ssize_t ipa_xr_add_flt_to_wlan(struct file *file,
 		token = strsep(&sptr, " ");
 		if (!token)
 			return -EINVAL;
-		if (kstrtou8(token, 0, &prot[i]) || prot[i] != IPPROTO_UDP)
+		if (kstrtou8(token, 0, &prot[i]) ||
+				!(prot[i] == IPPROTO_UDP || prot[i] == IPPROTO_TCP))
 			return -EINVAL;
 	}