aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/ioctl.c')
-rw-r--r--drivers/net/wireless/libertas/ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/ioctl.c b/drivers/net/wireless/libertas/ioctl.c
index a59d26ba6c70..4b145e3e7db1 100644
--- a/drivers/net/wireless/libertas/ioctl.c
+++ b/drivers/net/wireless/libertas/ioctl.c
@@ -297,6 +297,7 @@ static int wlan_bt_set_invert_ioctl(wlan_private * priv, struct ifreq *req)
297 */ 297 */
298static int wlan_bt_get_invert_ioctl(wlan_private * priv, struct ifreq *req) 298static int wlan_bt_get_invert_ioctl(wlan_private * priv, struct ifreq *req)
299{ 299{
300 struct iwreq *wrq = (struct iwreq *)req;
300 int ret; 301 int ret;
301 union { 302 union {
302 int id; 303 int id;
@@ -311,7 +312,7 @@ static int wlan_bt_get_invert_ioctl(wlan_private * priv, struct ifreq *req)
311 (char *)&param); 312 (char *)&param);
312 313
313 if (ret == 0) 314 if (ret == 0)
314 req->ifr_data = (char *)(le32_to_cpu(param.id)); 315 wrq->u.param.value = le32_to_cpu(param.id);
315 else 316 else
316 return -EFAULT; 317 return -EFAULT;
317 318