Adjust ioctl function of cellular

Add SIOCGCELLNETDEV
Give a uint8_t[136] for cellular to save data

Signed-off-by: tangyusong1 <tangyusong1@xiaomi.com>
This commit is contained in:
tangyusong1
2022-12-07 17:38:11 +08:00
committed by Xiang Xiao
parent 1ced1e9f35
commit f454dfccb2
5 changed files with 146 additions and 32 deletions
-11
View File
@@ -176,15 +176,6 @@ struct can_ioctl_filter_s
uint8_t fprio; /* See CAN_MSGPRIO_* definitions */
};
/* Structure passed to get or set the cellular network device features */
struct cell_ioctl_data_s
{
uint8_t mdp_chnidx; /* MDP(Multi Data Path) channel idx bound to this network device */
uint8_t sim_id; /* Sim ID in dual sim system */
uint8_t cell_id; /* Cell Identification in mobile phone networks */
};
/* There are two forms of the I/F request structure.
* One for IPv6 and one for IPv4.
* Notice that they are (and must be) cast compatible and really different
@@ -211,7 +202,6 @@ struct lifreq
struct mii_ioctl_data_s lifru_mii_data; /* MII request data */
struct can_ioctl_data_s lifru_can_data; /* CAN bitrate request data */
struct can_ioctl_filter_s lifru_can_filter; /* CAN filter request data */
struct cell_ioctl_data_s lifru_cell_data; /* Cellular network data */
} lifr_ifru;
};
@@ -265,7 +255,6 @@ struct ifreq
struct mii_ioctl_data_s ifru_mii_data; /* MII request data */
struct can_ioctl_data_s ifru_can_data; /* CAN bitrate request data */
struct can_ioctl_filter_s ifru_can_filter; /* CAN filter request data */
struct cell_ioctl_data_s ifru_cell_data; /* Cellular network data */
} ifr_ifru;
};