aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-22 13:45:50 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:11 -0500
commit0e5ce1f33049a823f508f4a3f53ba186b12396b8 (patch)
tree1bd83ce139e0531d38947d1aa95670f5eca3b826
parent5b5e807fb8b56e31319fe8b27e1b072bb80862a8 (diff)
misc wireless annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/adm8211.c8
-rw-r--r--drivers/net/wireless/atmel.c30
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c4
-rw-r--r--drivers/net/wireless/ray_cs.c2
-rw-r--r--drivers/net/wireless/wavelan_cs.p.h2
6 files changed, 25 insertions, 25 deletions
diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c
index 5bf7913aadda..14d90a9409aa 100644
--- a/drivers/net/wireless/adm8211.c
+++ b/drivers/net/wireless/adm8211.c
@@ -104,7 +104,7 @@ static int adm8211_read_eeprom(struct ieee80211_hw *dev)
104 if (!priv->eeprom) 104 if (!priv->eeprom)
105 return -ENOMEM; 105 return -ENOMEM;
106 106
107 eeprom_93cx6_multiread(&eeprom, 0, (__le16 __force *)priv->eeprom, words); 107 eeprom_93cx6_multiread(&eeprom, 0, (__le16 *)priv->eeprom, words);
108 108
109 cr49 = le16_to_cpu(priv->eeprom->cr49); 109 cr49 = le16_to_cpu(priv->eeprom->cr49);
110 priv->rf_type = (cr49 >> 3) & 0x7; 110 priv->rf_type = (cr49 >> 3) & 0x7;
@@ -1867,9 +1867,9 @@ static int __devinit adm8211_probe(struct pci_dev *pdev,
1867 goto err_iounmap; 1867 goto err_iounmap;
1868 } 1868 }
1869 1869
1870 *(u32 *)perm_addr = le32_to_cpu((__force __le32)ADM8211_CSR_READ(PAR0)); 1870 *(__le32 *)perm_addr = cpu_to_le32(ADM8211_CSR_READ(PAR0));
1871 *(u16 *)&perm_addr[4] = 1871 *(__le16 *)&perm_addr[4] =
1872 le16_to_cpu((__force __le16)ADM8211_CSR_READ(PAR1) & 0xFFFF); 1872 cpu_to_le16(ADM8211_CSR_READ(PAR1) & 0xFFFF);
1873 1873
1874 if (!is_valid_ether_addr(perm_addr)) { 1874 if (!is_valid_ether_addr(perm_addr)) {
1875 printk(KERN_WARNING "%s (adm8211): Invalid hwaddr in EEPROM!\n", 1875 printk(KERN_WARNING "%s (adm8211): Invalid hwaddr in EEPROM!\n",
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c
index 32fbaf20d272..63ec7a70ee76 100644
--- a/drivers/net/wireless/atmel.c
+++ b/drivers/net/wireless/atmel.c
@@ -2675,9 +2675,9 @@ static int atmel_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
2675} 2675}
2676 2676
2677struct auth_body { 2677struct auth_body {
2678 u16 alg; 2678 __le16 alg;
2679 u16 trans_seq; 2679 __le16 trans_seq;
2680 u16 status; 2680 __le16 status;
2681 u8 el_id; 2681 u8 el_id;
2682 u8 chall_text_len; 2682 u8 chall_text_len;
2683 u8 chall_text[253]; 2683 u8 chall_text[253];
@@ -2712,9 +2712,9 @@ static void atmel_scan(struct atmel_private *priv, int specific_ssid)
2712 u8 SSID[MAX_SSID_LENGTH]; 2712 u8 SSID[MAX_SSID_LENGTH];
2713 u8 scan_type; 2713 u8 scan_type;
2714 u8 channel; 2714 u8 channel;
2715 u16 BSS_type; 2715 __le16 BSS_type;
2716 u16 min_channel_time; 2716 __le16 min_channel_time;
2717 u16 max_channel_time; 2717 __le16 max_channel_time;
2718 u8 options; 2718 u8 options;
2719 u8 SSID_size; 2719 u8 SSID_size;
2720 } cmd; 2720 } cmd;
@@ -2757,7 +2757,7 @@ static void join(struct atmel_private *priv, int type)
2757 u8 SSID[MAX_SSID_LENGTH]; 2757 u8 SSID[MAX_SSID_LENGTH];
2758 u8 BSS_type; /* this is a short in a scan command - weird */ 2758 u8 BSS_type; /* this is a short in a scan command - weird */
2759 u8 channel; 2759 u8 channel;
2760 u16 timeout; 2760 __le16 timeout;
2761 u8 SSID_size; 2761 u8 SSID_size;
2762 u8 reserved; 2762 u8 reserved;
2763 } cmd; 2763 } cmd;
@@ -2862,8 +2862,8 @@ static void send_association_request(struct atmel_private *priv, int is_reassoc)
2862 int bodysize; 2862 int bodysize;
2863 struct ieee80211_hdr_4addr header; 2863 struct ieee80211_hdr_4addr header;
2864 struct ass_req_format { 2864 struct ass_req_format {
2865 u16 capability; 2865 __le16 capability;
2866 u16 listen_interval; 2866 __le16 listen_interval;
2867 u8 ap[6]; /* nothing after here directly accessible */ 2867 u8 ap[6]; /* nothing after here directly accessible */
2868 u8 ssid_el_id; 2868 u8 ssid_el_id;
2869 u8 ssid_len; 2869 u8 ssid_len;
@@ -3084,9 +3084,9 @@ static void authenticate(struct atmel_private *priv, u16 frame_len)
3084static void associate(struct atmel_private *priv, u16 frame_len, u16 subtype) 3084static void associate(struct atmel_private *priv, u16 frame_len, u16 subtype)
3085{ 3085{
3086 struct ass_resp_format { 3086 struct ass_resp_format {
3087 u16 capability; 3087 __le16 capability;
3088 u16 status; 3088 __le16 status;
3089 u16 ass_id; 3089 __le16 ass_id;
3090 u8 el_id; 3090 u8 el_id;
3091 u8 length; 3091 u8 length;
3092 u8 rates[4]; 3092 u8 rates[4];
@@ -3293,9 +3293,9 @@ static void atmel_management_frame(struct atmel_private *priv,
3293 never let an engineer loose with a data structure design. */ 3293 never let an engineer loose with a data structure design. */
3294 { 3294 {
3295 struct beacon_format { 3295 struct beacon_format {
3296 u64 timestamp; 3296 __le64 timestamp;
3297 u16 interval; 3297 __le16 interval;
3298 u16 capability; 3298 __le16 capability;
3299 u8 ssid_el_id; 3299 u8 ssid_el_id;
3300 u8 ssid_length; 3300 u8 ssid_length;
3301 /* ssid here */ 3301 /* ssid here */
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 8d603257b926..b662ff3b9141 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -1566,7 +1566,7 @@ static void get_eeprom_mac(struct iwl3945_priv *priv, u8 *mac)
1566 */ 1566 */
1567int iwl3945_eeprom_init(struct iwl3945_priv *priv) 1567int iwl3945_eeprom_init(struct iwl3945_priv *priv)
1568{ 1568{
1569 u16 *e = (u16 *)&priv->eeprom; 1569 __le16 *e = (__le16 *)&priv->eeprom;
1570 u32 gp = iwl3945_read32(priv, CSR_EEPROM_GP); 1570 u32 gp = iwl3945_read32(priv, CSR_EEPROM_GP);
1571 u32 r; 1571 u32 r;
1572 int sz = sizeof(priv->eeprom); 1572 int sz = sizeof(priv->eeprom);
@@ -1609,7 +1609,7 @@ int iwl3945_eeprom_init(struct iwl3945_priv *priv)
1609 IWL_ERROR("Time out reading EEPROM[%d]", addr); 1609 IWL_ERROR("Time out reading EEPROM[%d]", addr);
1610 return -ETIMEDOUT; 1610 return -ETIMEDOUT;
1611 } 1611 }
1612 e[addr / 2] = le16_to_cpu(r >> 16); 1612 e[addr / 2] = cpu_to_le16(r >> 16);
1613 } 1613 }
1614 1614
1615 return 0; 1615 return 0;
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 5a9fa42f999b..ce0574b087fb 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -1648,7 +1648,7 @@ static void get_eeprom_mac(struct iwl4965_priv *priv, u8 *mac)
1648 */ 1648 */
1649int iwl4965_eeprom_init(struct iwl4965_priv *priv) 1649int iwl4965_eeprom_init(struct iwl4965_priv *priv)
1650{ 1650{
1651 u16 *e = (u16 *)&priv->eeprom; 1651 __le16 *e = (__le16 *)&priv->eeprom;
1652 u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); 1652 u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP);
1653 u32 r; 1653 u32 r;
1654 int sz = sizeof(priv->eeprom); 1654 int sz = sizeof(priv->eeprom);
@@ -1692,7 +1692,7 @@ int iwl4965_eeprom_init(struct iwl4965_priv *priv)
1692 rc = -ETIMEDOUT; 1692 rc = -ETIMEDOUT;
1693 goto done; 1693 goto done;
1694 } 1694 }
1695 e[addr / 2] = le16_to_cpu(r >> 16); 1695 e[addr / 2] = cpu_to_le16(r >> 16);
1696 } 1696 }
1697 rc = 0; 1697 rc = 0;
1698 1698
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 8ba28a515d4a..f3858ee36f32 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -998,7 +998,7 @@ static int ray_hw_xmit(unsigned char* data, int len, struct net_device* dev,
998static int translate_frame(ray_dev_t *local, struct tx_msg __iomem *ptx, unsigned char *data, 998static int translate_frame(ray_dev_t *local, struct tx_msg __iomem *ptx, unsigned char *data,
999 int len) 999 int len)
1000{ 1000{
1001 unsigned short int proto = ((struct ethhdr *)data)->h_proto; 1001 __be16 proto = ((struct ethhdr *)data)->h_proto;
1002 if (ntohs(proto) >= 1536) { /* DIX II ethernet frame */ 1002 if (ntohs(proto) >= 1536) { /* DIX II ethernet frame */
1003 DEBUG(3,"ray_cs translate_frame DIX II\n"); 1003 DEBUG(3,"ray_cs translate_frame DIX II\n");
1004 /* Copy LLC header to card buffer */ 1004 /* Copy LLC header to card buffer */
diff --git a/drivers/net/wireless/wavelan_cs.p.h b/drivers/net/wireless/wavelan_cs.p.h
index 4b9de0093a7b..ca551a5d1390 100644
--- a/drivers/net/wireless/wavelan_cs.p.h
+++ b/drivers/net/wireless/wavelan_cs.p.h
@@ -548,7 +548,7 @@ typedef struct wavepoint_beacon
548 spec_id2, /* Unused */ 548 spec_id2, /* Unused */
549 pdu_type, /* Unused */ 549 pdu_type, /* Unused */
550 seq; /* WavePoint beacon sequence number */ 550 seq; /* WavePoint beacon sequence number */
551 unsigned short domain_id, /* WavePoint Domain ID */ 551 __be16 domain_id, /* WavePoint Domain ID */
552 nwid; /* WavePoint NWID */ 552 nwid; /* WavePoint NWID */
553} wavepoint_beacon; 553} wavepoint_beacon;
554 554