From 3988539fdd553115f85bf21243904f4e6d2fcc4c Mon Sep 17 00:00:00 2001 From: Harout Hedeshian Date: Mon, 3 Feb 2014 11:26:41 -0700 Subject: net: rmnet_data: new structure for rmnet ioctls This patch modifies the rmnet ioctls RMNET_IOCTL_GET_LLP, RMNET_IOCTL_GET_QOS, RMNET_IOCTL_GET_OPMODE, RMNET_IOCTL_FLOW_ENABLE and RMNET_IOCTL_FLOW_DISABLE to avoid putting integral data in pointers and avoid casting between 32 and 64 bits types. CRs-Fixed: 601207 Change-Id: I66edb785f6204f38b6f0ecccb2ceab36d5e38188 Acked-by: Sivan Reinstein Signed-off-by: Harout Hedeshian [subashab@codeaurora.org: remove driver specific changes] Signed-off-by: Subash Abhinov Kasiviswanathan --- include/uapi/linux/msm_rmnet.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/msm_rmnet.h b/include/uapi/linux/msm_rmnet.h index ec251331b1da..5866adb12391 100644 --- a/include/uapi/linux/msm_rmnet.h +++ b/include/uapi/linux/msm_rmnet.h @@ -118,6 +118,13 @@ struct rmnet_ioctl_extended_s { } u; }; +struct rmnet_ioctl_data_s { + union { + uint32_t operation_mode; + uint32_t tcm_handle; + } u; +}; + #define RMNET_IOCTL_QOS_MODE_6 (1<<0) #define RMNET_IOCTL_QOS_MODE_8 (1<<1) -- cgit v1.2.3