|
@@ -853,9 +853,12 @@ static int ieee80211_ioctl_siwpower(struct net_device *dev,
|
|
ps = true;
|
|
ps = true;
|
|
break;
|
|
break;
|
|
default: /* Otherwise we ignore */
|
|
default: /* Otherwise we ignore */
|
|
- break;
|
|
|
|
|
|
+ return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (wrq->flags & ~(IW_POWER_MODE | IW_POWER_TIMEOUT))
|
|
|
|
+ return -EINVAL;
|
|
|
|
+
|
|
if (wrq->flags & IW_POWER_TIMEOUT)
|
|
if (wrq->flags & IW_POWER_TIMEOUT)
|
|
timeout = wrq->value / 1000;
|
|
timeout = wrq->value / 1000;
|
|
|
|
|