浏览代码

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

allow both tcp and udp protocols when we install wlan filters
through ipa debugfs nodes.

Change-Id: I543b7b914fe3f15f53ba3e6baca9bc93147f398c
Signed-off-by: Jagadeesh Ponduru <[email protected]>
Jagadeesh Ponduru 7 月之前
父节点
当前提交
d8e985cde2
共有 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;
 	}