Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161995
b: refs/heads/master
c: 4a5629b
h: refs/heads/master
i:
  161993: 2952f2b
  161991: 80250c8
v: v3
  • Loading branch information
Pranith Kumar authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 3ddabbf commit 9c701d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 4c47b34cd6c62cb4cf9fb8f873aeb99b6cc60b4d
refs/heads/master: 4a5629b92ee530e7c3077689d5efb90be613a9a5
7 changes: 3 additions & 4 deletions trunk/drivers/staging/otus/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,7 @@ int usbdrv_wpa_ioctl(struct net_device *dev, struct athr_wlan_param *zdparm)
struct zsKeyInfo keyInfo;
struct usbdrv_private *macp = dev->ml_priv;
u16_t vapId = 0;
int ii;

/* zmw_get_wlan_dev(dev); */

Expand Down Expand Up @@ -2168,7 +2169,6 @@ int usbdrv_wpa_ioctl(struct net_device *dev, struct athr_wlan_param *zdparm)
/* DUMP key context */
/* #ifdef WPA_DEBUG */
if (keyInfo.keyLength > 0) {
int ii;
printk(KERN_WARNING
"Otus: Key Context:\n");
for (ii = 0; ii < keyInfo.keyLength; ) {
Expand Down Expand Up @@ -2266,7 +2266,6 @@ int usbdrv_wpa_ioctl(struct net_device *dev, struct athr_wlan_param *zdparm)
/* zfiWlanSetWpaIe(dev, zdparm->u.generic_elem.data,
* zdparm->u.generic_elem.len);
*/
int ii;
u8_t len = zdparm->u.generic_elem.len;
u8_t *wpaie = (u8_t *)zdparm->u.generic_elem.data;

Expand Down Expand Up @@ -2401,7 +2400,7 @@ int usbdrv_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
struct athr_wlan_param zdparm;
struct usbdrv_private *macp = dev->ml_priv;

int err = 0;
int err = 0, val = 0;
int changed = 0;

/* regp = macp->regp; */
Expand Down Expand Up @@ -2445,7 +2444,7 @@ int usbdrv_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
err = -EPERM;
break;
}
int val = *((int *) wrq->u.name);
val = *((int *) wrq->u.name);
if ((val < 0) || (val > 2)) {
err = -EINVAL;
break;
Expand Down

0 comments on commit 9c701d8

Please sign in to comment.