Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236084
b: refs/heads/master
c: 253804a
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Feb 23, 2011
1 parent 2884337 commit e76a22f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 108160db3fb0479edf89d1b74b267360d8a5fa65
refs/heads/master: 253804a25b45aad7bf4f63483f7c7b1d14ab49e2
26 changes: 14 additions & 12 deletions trunk/drivers/staging/ath6kl/os/linux/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3162,29 +3162,31 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)

case AR6000_XIOCTL_OPT_SEND_FRAME:
{
WMI_OPT_TX_FRAME_CMD optTxFrmCmd;
WMI_OPT_TX_FRAME_CMD optTxFrmCmd;
u8 data[MAX_OPT_DATA_LEN];

if (ar->arWmiReady == false) {
ret = -EIO;
} else if (copy_from_user(&optTxFrmCmd, userdata,
sizeof(optTxFrmCmd)))
{
break;
}

if (copy_from_user(&optTxFrmCmd, userdata, sizeof(optTxFrmCmd))) {
ret = -EFAULT;
} else if (copy_from_user(data,
userdata+sizeof(WMI_OPT_TX_FRAME_CMD)-1,
optTxFrmCmd.optIEDataLen))
{
break;
}

if (copy_from_user(data, userdata+sizeof(WMI_OPT_TX_FRAME_CMD) - 1,
optTxFrmCmd.optIEDataLen)) {
ret = -EFAULT;
} else {
ret = wmi_opt_tx_frame_cmd(ar->arWmi,
break;
}

ret = wmi_opt_tx_frame_cmd(ar->arWmi,
optTxFrmCmd.frmType,
optTxFrmCmd.dstAddr,
optTxFrmCmd.bssid,
optTxFrmCmd.optIEDataLen,
data);
}

break;
}
case AR6000_XIOCTL_WMI_SETRETRYLIMITS:
Expand Down

0 comments on commit e76a22f

Please sign in to comment.