mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 07:29:40 +00:00
rtl8188eu: Convert "typedef struct android_wifi_priv_cmd" to "struct android_wifi_priv_cmd"
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
548e42fb94
commit
5ae9f5f712
1 changed files with 4 additions and 4 deletions
|
@ -70,11 +70,11 @@ static const char *android_wifi_cmd_str[ANDROID_WIFI_CMD_MAX] = {
|
|||
"WFD-SET-DEVTYPE",
|
||||
};
|
||||
|
||||
typedef struct android_wifi_priv_cmd {
|
||||
struct android_wifi_priv_cmd {
|
||||
const char __user *buf;
|
||||
int used_len;
|
||||
int total_len;
|
||||
} android_wifi_priv_cmd;
|
||||
};
|
||||
|
||||
/**
|
||||
* Local (static) functions and variables
|
||||
|
@ -188,7 +188,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
char *command = NULL;
|
||||
int cmd_num;
|
||||
int bytes_written = 0;
|
||||
android_wifi_priv_cmd priv_cmd;
|
||||
struct android_wifi_priv_cmd priv_cmd;
|
||||
|
||||
rtw_lock_suspend();
|
||||
|
||||
|
@ -196,7 +196,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
ret = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
if (copy_from_user(&priv_cmd, ifr->ifr_data, sizeof(android_wifi_priv_cmd))) {
|
||||
if (copy_from_user(&priv_cmd, ifr->ifr_data, sizeof(struct android_wifi_priv_cmd))) {
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue