Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wireless: fix '!x & y' typo's

Fix priority mistakes similar to '!x & y'

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Roel Kluin and committed by
David S. Miller
f59d9782 9f9dac28

+8 -8
+1 -1
drivers/net/wireless/airo.c
··· 6407 6407 set_wep_key(local, index, NULL, 0, perm, 1); 6408 6408 } else 6409 6409 /* Don't complain if only change the mode */ 6410 - if(!dwrq->flags & IW_ENCODE_MODE) { 6410 + if(!(dwrq->flags & IW_ENCODE_MODE)) { 6411 6411 return -EINVAL; 6412 6412 } 6413 6413 }
+1 -1
drivers/net/wireless/atmel.c
··· 1759 1759 priv->default_key = index; 1760 1760 } else 1761 1761 /* Don't complain if only change the mode */ 1762 - if (!dwrq->flags & IW_ENCODE_MODE) { 1762 + if (!(dwrq->flags & IW_ENCODE_MODE)) { 1763 1763 return -EINVAL; 1764 1764 } 1765 1765 }
+1 -1
drivers/net/wireless/libertas/wext.c
··· 1398 1398 index = adapter->wep_tx_keyidx; 1399 1399 } 1400 1400 1401 - if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY && 1401 + if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) && 1402 1402 ext->alg != IW_ENCODE_ALG_WEP) { 1403 1403 if (index != 0 || adapter->mode != IW_MODE_INFRA) 1404 1404 goto out;
+1 -1
drivers/net/wireless/p54common.c
··· 375 375 if ((entry_hdr->magic1 & cpu_to_le16(0x4000)) != 0) 376 376 pad = entry_data->align[0]; 377 377 378 - if (!status.control.flags & IEEE80211_TXCTL_NO_ACK) { 378 + if (!(status.control.flags & IEEE80211_TXCTL_NO_ACK)) { 379 379 if (!(payload->status & 0x01)) 380 380 status.flags |= IEEE80211_TX_STATUS_ACK; 381 381 else
+2 -2
drivers/net/wireless/prism54/isl_ioctl.c
··· 1118 1118 mgt_set_request(priv, DOT11_OID_DEFKEYID, 0, 1119 1119 &index); 1120 1120 } else { 1121 - if (!dwrq->flags & IW_ENCODE_MODE) { 1121 + if (!(dwrq->flags & IW_ENCODE_MODE)) { 1122 1122 /* we cannot do anything. Complain. */ 1123 1123 return -EINVAL; 1124 1124 } ··· 2610 2610 mgt_set_request(priv, DOT11_OID_DEFKEYID, 0, 2611 2611 &index); 2612 2612 } else { 2613 - if (!param->u.crypt.flags & IW_ENCODE_MODE) { 2613 + if (!(param->u.crypt.flags & IW_ENCODE_MODE)) { 2614 2614 /* we cannot do anything. Complain. */ 2615 2615 return -EINVAL; 2616 2616 }
+1 -1
drivers/net/wireless/zd1211rw/zd_rf_uw2453.c
··· 403 403 if (r) 404 404 return r; 405 405 406 - if (!intr_status & 0xf) { 406 + if (!(intr_status & 0xf)) { 407 407 dev_dbg_f(zd_chip_dev(chip), 408 408 "PLL locked on configuration %d\n", i); 409 409 found_config = i;
+1 -1
net/ieee80211/ieee80211_wx.c
··· 709 709 } else 710 710 idx = ieee->tx_keyidx; 711 711 712 - if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY && 712 + if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) && 713 713 ext->alg != IW_ENCODE_ALG_WEP) 714 714 if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA) 715 715 return -EINVAL;