Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78914
b: refs/heads/master
c: f59d978
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and David S. Miller committed Jan 28, 2008
1 parent c0b4ca7 commit d840d6a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 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: 9f9dac281ba2acd3d6d3574076f86b8f99aaebc0
refs/heads/master: f59d9782751bf1a2c51e7e1e9f614ffec35fb52e
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -6407,7 +6407,7 @@ static int airo_set_encode(struct net_device *dev,
set_wep_key(local, index, NULL, 0, perm, 1);
} else
/* Don't complain if only change the mode */
if(!dwrq->flags & IW_ENCODE_MODE) {
if(!(dwrq->flags & IW_ENCODE_MODE)) {
return -EINVAL;
}
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,7 @@ static int atmel_set_encode(struct net_device *dev,
priv->default_key = index;
} else
/* Don't complain if only change the mode */
if (!dwrq->flags & IW_ENCODE_MODE) {
if (!(dwrq->flags & IW_ENCODE_MODE)) {
return -EINVAL;
}
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ static int wlan_get_encodeext(struct net_device *dev,
index = adapter->wep_tx_keyidx;
}

if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY &&
if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) &&
ext->alg != IW_ENCODE_ALG_WEP) {
if (index != 0 || adapter->mode != IW_MODE_INFRA)
goto out;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/p54common.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static void p54_rx_frame_sent(struct ieee80211_hw *dev, struct sk_buff *skb)
if ((entry_hdr->magic1 & cpu_to_le16(0x4000)) != 0)
pad = entry_data->align[0];

if (!status.control.flags & IEEE80211_TXCTL_NO_ACK) {
if (!(status.control.flags & IEEE80211_TXCTL_NO_ACK)) {
if (!(payload->status & 0x01))
status.flags |= IEEE80211_TX_STATUS_ACK;
else
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/prism54/isl_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/zd1211rw/zd_rf_uw2453.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ static int uw2453_init_hw(struct zd_rf *rf)
if (r)
return r;

if (!intr_status & 0xf) {
if (!(intr_status & 0xf)) {
dev_dbg_f(zd_chip_dev(chip),
"PLL locked on configuration %d\n", i);
found_config = i;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ieee80211/ieee80211_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ int ieee80211_wx_get_encodeext(struct ieee80211_device *ieee,
} else
idx = ieee->tx_keyidx;

if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY &&
if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) &&
ext->alg != IW_ENCODE_ALG_WEP)
if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA)
return -EINVAL;
Expand Down

0 comments on commit d840d6a

Please sign in to comment.