|
@@ -1118,7 +1118,7 @@ prism54_set_encode(struct net_device *ndev, struct iw_request_info *info,
|
|
|
mgt_set_request(priv, DOT11_OID_DEFKEYID, 0,
|
|
|
&index);
|
|
|
} else {
|
|
|
- if (!dwrq->flags & IW_ENCODE_MODE) {
|
|
|
+ if (!(dwrq->flags & IW_ENCODE_MODE)) {
|
|
|
/* we cannot do anything. Complain. */
|
|
|
return -EINVAL;
|
|
|
}
|
|
@@ -2610,7 +2610,7 @@ prism2_ioctl_set_encryption(struct net_device *dev,
|
|
|
mgt_set_request(priv, DOT11_OID_DEFKEYID, 0,
|
|
|
&index);
|
|
|
} else {
|
|
|
- if (!param->u.crypt.flags & IW_ENCODE_MODE) {
|
|
|
+ if (!(param->u.crypt.flags & IW_ENCODE_MODE)) {
|
|
|
/* we cannot do anything. Complain. */
|
|
|
return -EINVAL;
|
|
|
}
|