diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2008-03-16 18:26:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:58 -0400 |
commit | 83f7d57c37e83ab11009d58565e1010597b88db6 (patch) | |
tree | ad1645613c57403e75c473299158b09aa69af5f3 /drivers/net/wireless/ipw2200.c | |
parent | 19d30e02998ef1eb9f82a7d3ce9b4a97dba5aa13 (diff) |
ipw2200 annotations and fixes
a) a bunch of printks in error-handling assums that ->status is
big-endian.
b) bitfields trouble
c) missing annotations
NB: a bunch of structs is declared packed for no good reason, AFAICS.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 3d4b590046a8..e79de53bd4f3 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -4495,9 +4495,9 @@ static void ipw_rx_notification(struct ipw_priv *priv, | |||
4495 | priv-> | 4495 | priv-> |
4496 | essid_len), | 4496 | essid_len), |
4497 | print_mac(mac, priv->bssid), | 4497 | print_mac(mac, priv->bssid), |
4498 | ntohs(auth->status), | 4498 | le16_to_cpu(auth->status), |
4499 | ipw_get_status_code | 4499 | ipw_get_status_code |
4500 | (ntohs | 4500 | (le16_to_cpu |
4501 | (auth->status))); | 4501 | (auth->status))); |
4502 | 4502 | ||
4503 | priv->status &= | 4503 | priv->status &= |
@@ -4532,9 +4532,9 @@ static void ipw_rx_notification(struct ipw_priv *priv, | |||
4532 | IPW_DL_STATE | | 4532 | IPW_DL_STATE | |
4533 | IPW_DL_ASSOC, | 4533 | IPW_DL_ASSOC, |
4534 | "association failed (0x%04X): %s\n", | 4534 | "association failed (0x%04X): %s\n", |
4535 | ntohs(resp->status), | 4535 | le16_to_cpu(resp->status), |
4536 | ipw_get_status_code | 4536 | ipw_get_status_code |
4537 | (ntohs | 4537 | (le16_to_cpu |
4538 | (resp->status))); | 4538 | (resp->status))); |
4539 | } | 4539 | } |
4540 | 4540 | ||
@@ -4591,8 +4591,8 @@ static void ipw_rx_notification(struct ipw_priv *priv, | |||
4591 | IPW_DEBUG(IPW_DL_NOTIF | IPW_DL_STATE | | 4591 | IPW_DEBUG(IPW_DL_NOTIF | IPW_DL_STATE | |
4592 | IPW_DL_ASSOC, | 4592 | IPW_DL_ASSOC, |
4593 | "authentication failed (0x%04X): %s\n", | 4593 | "authentication failed (0x%04X): %s\n", |
4594 | ntohs(auth->status), | 4594 | le16_to_cpu(auth->status), |
4595 | ipw_get_status_code(ntohs | 4595 | ipw_get_status_code(le16_to_cpu |
4596 | (auth-> | 4596 | (auth-> |
4597 | status))); | 4597 | status))); |
4598 | } | 4598 | } |