aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/hostap/hostap_80211_rx.c4
-rw-r--r--drivers/net/wireless/hostap/hostap_ap.c8
-rw-r--r--drivers/net/wireless/hostap/hostap_ioctl.c6
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-calib.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-led.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-power.h14
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-tx.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
-rw-r--r--drivers/net/wireless/orinoco/hermes_dld.c4
-rw-r--r--drivers/net/wireless/orinoco/orinoco.c2
14 files changed, 32 insertions, 32 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_rx.c b/drivers/net/wireless/hostap/hostap_80211_rx.c
index 19b1bf0478bd..241756318da4 100644
--- a/drivers/net/wireless/hostap/hostap_80211_rx.c
+++ b/drivers/net/wireless/hostap/hostap_80211_rx.c
@@ -193,7 +193,7 @@ hdr->f.status = s; hdr->f.len = l; hdr->f.data = d
193 if (prism_header) 193 if (prism_header)
194 skb_pull(skb, phdrlen); 194 skb_pull(skb, phdrlen);
195 skb->pkt_type = PACKET_OTHERHOST; 195 skb->pkt_type = PACKET_OTHERHOST;
196 skb->protocol = __constant_htons(ETH_P_802_2); 196 skb->protocol = cpu_to_be16(ETH_P_802_2);
197 memset(skb->cb, 0, sizeof(skb->cb)); 197 memset(skb->cb, 0, sizeof(skb->cb));
198 netif_rx(skb); 198 netif_rx(skb);
199 199
@@ -1094,7 +1094,7 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
1094 if (skb2 != NULL) { 1094 if (skb2 != NULL) {
1095 /* send to wireless media */ 1095 /* send to wireless media */
1096 skb2->dev = dev; 1096 skb2->dev = dev;
1097 skb2->protocol = __constant_htons(ETH_P_802_3); 1097 skb2->protocol = cpu_to_be16(ETH_P_802_3);
1098 skb_reset_mac_header(skb2); 1098 skb_reset_mac_header(skb2);
1099 skb_reset_network_header(skb2); 1099 skb_reset_network_header(skb2);
1100 /* skb2->network_header += ETH_HLEN; */ 1100 /* skb2->network_header += ETH_HLEN; */
diff --git a/drivers/net/wireless/hostap/hostap_ap.c b/drivers/net/wireless/hostap/hostap_ap.c
index 0903db786d5f..0a4bf94dddfb 100644
--- a/drivers/net/wireless/hostap/hostap_ap.c
+++ b/drivers/net/wireless/hostap/hostap_ap.c
@@ -609,7 +609,7 @@ static void hostap_ap_tx_cb(struct sk_buff *skb, int ok, void *data)
609 skb->dev = ap->local->apdev; 609 skb->dev = ap->local->apdev;
610 skb_pull(skb, hostap_80211_get_hdrlen(fc)); 610 skb_pull(skb, hostap_80211_get_hdrlen(fc));
611 skb->pkt_type = PACKET_OTHERHOST; 611 skb->pkt_type = PACKET_OTHERHOST;
612 skb->protocol = __constant_htons(ETH_P_802_2); 612 skb->protocol = cpu_to_be16(ETH_P_802_2);
613 memset(skb->cb, 0, sizeof(skb->cb)); 613 memset(skb->cb, 0, sizeof(skb->cb));
614 netif_rx(skb); 614 netif_rx(skb);
615} 615}
@@ -2281,7 +2281,7 @@ void hostap_rx(struct net_device *dev, struct sk_buff *skb,
2281 WLAN_FC_GET_STYPE(fc) == IEEE80211_STYPE_BEACON) 2281 WLAN_FC_GET_STYPE(fc) == IEEE80211_STYPE_BEACON)
2282 goto drop; 2282 goto drop;
2283 2283
2284 skb->protocol = __constant_htons(ETH_P_HOSTAP); 2284 skb->protocol = cpu_to_be16(ETH_P_HOSTAP);
2285 handle_ap_item(local, skb, rx_stats); 2285 handle_ap_item(local, skb, rx_stats);
2286 return; 2286 return;
2287 2287
@@ -2310,7 +2310,7 @@ static void schedule_packet_send(local_info_t *local, struct sta_info *sta)
2310 hdr = (struct ieee80211_hdr_4addr *) skb_put(skb, 16); 2310 hdr = (struct ieee80211_hdr_4addr *) skb_put(skb, 16);
2311 2311
2312 /* Generate a fake pspoll frame to start packet delivery */ 2312 /* Generate a fake pspoll frame to start packet delivery */
2313 hdr->frame_ctl = __constant_cpu_to_le16( 2313 hdr->frame_ctl = cpu_to_le16(
2314 IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL); 2314 IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL);
2315 memcpy(hdr->addr1, local->dev->dev_addr, ETH_ALEN); 2315 memcpy(hdr->addr1, local->dev->dev_addr, ETH_ALEN);
2316 memcpy(hdr->addr2, sta->addr, ETH_ALEN); 2316 memcpy(hdr->addr2, sta->addr, ETH_ALEN);
@@ -2754,7 +2754,7 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx)
2754 if (meta->flags & HOSTAP_TX_FLAGS_ADD_MOREDATA) { 2754 if (meta->flags & HOSTAP_TX_FLAGS_ADD_MOREDATA) {
2755 /* indicate to STA that more frames follow */ 2755 /* indicate to STA that more frames follow */
2756 hdr->frame_ctl |= 2756 hdr->frame_ctl |=
2757 __constant_cpu_to_le16(IEEE80211_FCTL_MOREDATA); 2757 cpu_to_le16(IEEE80211_FCTL_MOREDATA);
2758 } 2758 }
2759 2759
2760 if (meta->flags & HOSTAP_TX_FLAGS_BUFFERED_FRAME) { 2760 if (meta->flags & HOSTAP_TX_FLAGS_BUFFERED_FRAME) {
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c
index c40fdf4c79de..8618b3355eb4 100644
--- a/drivers/net/wireless/hostap/hostap_ioctl.c
+++ b/drivers/net/wireless/hostap/hostap_ioctl.c
@@ -1638,7 +1638,7 @@ static int prism2_request_hostscan(struct net_device *dev,
1638 memset(&scan_req, 0, sizeof(scan_req)); 1638 memset(&scan_req, 0, sizeof(scan_req));
1639 scan_req.channel_list = cpu_to_le16(local->channel_mask & 1639 scan_req.channel_list = cpu_to_le16(local->channel_mask &
1640 local->scan_channel_mask); 1640 local->scan_channel_mask);
1641 scan_req.txrate = __constant_cpu_to_le16(HFA384X_RATES_1MBPS); 1641 scan_req.txrate = cpu_to_le16(HFA384X_RATES_1MBPS);
1642 if (ssid) { 1642 if (ssid) {
1643 if (ssid_len > 32) 1643 if (ssid_len > 32)
1644 return -EINVAL; 1644 return -EINVAL;
@@ -1668,7 +1668,7 @@ static int prism2_request_scan(struct net_device *dev)
1668 memset(&scan_req, 0, sizeof(scan_req)); 1668 memset(&scan_req, 0, sizeof(scan_req));
1669 scan_req.channel_list = cpu_to_le16(local->channel_mask & 1669 scan_req.channel_list = cpu_to_le16(local->channel_mask &
1670 local->scan_channel_mask); 1670 local->scan_channel_mask);
1671 scan_req.txrate = __constant_cpu_to_le16(HFA384X_RATES_1MBPS); 1671 scan_req.txrate = cpu_to_le16(HFA384X_RATES_1MBPS);
1672 1672
1673 /* FIX: 1673 /* FIX:
1674 * It seems to be enough to set roaming mode for a short moment to 1674 * It seems to be enough to set roaming mode for a short moment to
@@ -2514,7 +2514,7 @@ static int prism2_ioctl_priv_prism2_param(struct net_device *dev,
2514 u16 rate; 2514 u16 rate;
2515 2515
2516 memset(&scan_req, 0, sizeof(scan_req)); 2516 memset(&scan_req, 0, sizeof(scan_req));
2517 scan_req.channel_list = __constant_cpu_to_le16(0x3fff); 2517 scan_req.channel_list = cpu_to_le16(0x3fff);
2518 switch (value) { 2518 switch (value) {
2519 case 1: rate = HFA384X_RATES_1MBPS; break; 2519 case 1: rate = HFA384X_RATES_1MBPS; break;
2520 case 2: rate = HFA384X_RATES_2MBPS; break; 2520 case 2: rate = HFA384X_RATES_2MBPS; break;
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index 625f2cf99fa9..0420d3d35dd4 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -8272,7 +8272,7 @@ static void ipw_handle_mgmt_packet(struct ipw_priv *priv,
8272 skb_reset_mac_header(skb); 8272 skb_reset_mac_header(skb);
8273 8273
8274 skb->pkt_type = PACKET_OTHERHOST; 8274 skb->pkt_type = PACKET_OTHERHOST;
8275 skb->protocol = __constant_htons(ETH_P_80211_STATS); 8275 skb->protocol = cpu_to_be16(ETH_P_80211_STATS);
8276 memset(skb->cb, 0, sizeof(rxb->skb->cb)); 8276 memset(skb->cb, 0, sizeof(rxb->skb->cb));
8277 netif_rx(skb); 8277 netif_rx(skb);
8278 rxb->skb = NULL; 8278 rxb->skb = NULL;
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 7e9c8cfaa61a..0638f3e37602 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -1995,8 +1995,8 @@ static u16 iwl4965_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data)
1995 addsta->add_immediate_ba_tid = cmd->add_immediate_ba_tid; 1995 addsta->add_immediate_ba_tid = cmd->add_immediate_ba_tid;
1996 addsta->remove_immediate_ba_tid = cmd->remove_immediate_ba_tid; 1996 addsta->remove_immediate_ba_tid = cmd->remove_immediate_ba_tid;
1997 addsta->add_immediate_ba_ssn = cmd->add_immediate_ba_ssn; 1997 addsta->add_immediate_ba_ssn = cmd->add_immediate_ba_ssn;
1998 addsta->reserved1 = __constant_cpu_to_le16(0); 1998 addsta->reserved1 = cpu_to_le16(0);
1999 addsta->reserved2 = __constant_cpu_to_le32(0); 1999 addsta->reserved2 = cpu_to_le32(0);
2000 2000
2001 return (u16)sizeof(struct iwl4965_addsta_cmd); 2001 return (u16)sizeof(struct iwl4965_addsta_cmd);
2002} 2002}
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-calib.c
index d95797ac02cd..735f3f19928c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-calib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-calib.c
@@ -452,11 +452,11 @@ static int iwl_sensitivity_write(struct iwl_priv *priv)
452 cpu_to_le16((u16)data->nrg_th_ofdm); 452 cpu_to_le16((u16)data->nrg_th_ofdm);
453 453
454 cmd.table[HD_BARKER_CORR_TH_ADD_MIN_INDEX] = 454 cmd.table[HD_BARKER_CORR_TH_ADD_MIN_INDEX] =
455 __constant_cpu_to_le16(190); 455 cpu_to_le16(190);
456 cmd.table[HD_BARKER_CORR_TH_ADD_MIN_MRC_INDEX] = 456 cmd.table[HD_BARKER_CORR_TH_ADD_MIN_MRC_INDEX] =
457 __constant_cpu_to_le16(390); 457 cpu_to_le16(390);
458 cmd.table[HD_OFDM_ENERGY_TH_IN_INDEX] = 458 cmd.table[HD_OFDM_ENERGY_TH_IN_INDEX] =
459 __constant_cpu_to_le16(62); 459 cpu_to_le16(62);
460 460
461 IWL_DEBUG_CALIB(priv, "ofdm: ac %u mrc %u x1 %u mrc_x1 %u thresh %u\n", 461 IWL_DEBUG_CALIB(priv, "ofdm: ac %u mrc %u x1 %u mrc_x1 %u thresh %u\n",
462 data->auto_corr_ofdm, data->auto_corr_ofdm_mrc, 462 data->auto_corr_ofdm, data->auto_corr_ofdm_mrc,
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 77f32ad3de0b..29d40746da6a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -2848,7 +2848,7 @@ struct statistics_rx_ht_phy {
2848 __le32 reserved2; 2848 __le32 reserved2;
2849} __attribute__ ((packed)); 2849} __attribute__ ((packed));
2850 2850
2851#define INTERFERENCE_DATA_AVAILABLE __constant_cpu_to_le32(1) 2851#define INTERFERENCE_DATA_AVAILABLE cpu_to_le32(1)
2852 2852
2853struct statistics_rx_non_phy { 2853struct statistics_rx_non_phy {
2854 __le32 bogus_cts; /* CTS received when not expecting CTS */ 2854 __le32 bogus_cts; /* CTS received when not expecting CTS */
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index 789fe6ee27a2..d79912ba6a2f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -365,8 +365,8 @@ int iwl_send_scan_abort(struct iwl_priv *priv);
365 * time if it's a quiet channel (nothing responded to our probe, and there's 365 * time if it's a quiet channel (nothing responded to our probe, and there's
366 * no other traffic). 366 * no other traffic).
367 * Disable "quiet" feature by setting PLCP_QUIET_THRESH to 0. */ 367 * Disable "quiet" feature by setting PLCP_QUIET_THRESH to 0. */
368#define IWL_ACTIVE_QUIET_TIME __constant_cpu_to_le16(10) /* msec */ 368#define IWL_ACTIVE_QUIET_TIME cpu_to_le16(10) /* msec */
369#define IWL_PLCP_QUIET_THRESH __constant_cpu_to_le16(1) /* packets */ 369#define IWL_PLCP_QUIET_THRESH cpu_to_le16(1) /* packets */
370 370
371 371
372/******************************************************************************* 372/*******************************************************************************
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.h b/drivers/net/wireless/iwlwifi/iwl-led.h
index 1d798d086695..140fd8fa4855 100644
--- a/drivers/net/wireless/iwlwifi/iwl-led.h
+++ b/drivers/net/wireless/iwlwifi/iwl-led.h
@@ -35,7 +35,7 @@ struct iwl_priv;
35 35
36#define IWL_LED_SOLID 11 36#define IWL_LED_SOLID 11
37#define IWL_LED_NAME_LEN 31 37#define IWL_LED_NAME_LEN 31
38#define IWL_DEF_LED_INTRVL __constant_cpu_to_le32(1000) 38#define IWL_DEF_LED_INTRVL cpu_to_le32(1000)
39 39
40#define IWL_LED_ACTIVITY (0<<1) 40#define IWL_LED_ACTIVITY (0<<1)
41#define IWL_LED_LINK (1<<1) 41#define IWL_LED_LINK (1<<1)
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.h b/drivers/net/wireless/iwlwifi/iwl-power.h
index 879eafdd7369..18963392121e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-power.h
+++ b/drivers/net/wireless/iwlwifi/iwl-power.h
@@ -54,14 +54,14 @@ enum {
54 54
55/* Power management (not Tx power) structures */ 55/* Power management (not Tx power) structures */
56 56
57#define NOSLP __constant_cpu_to_le16(0), 0, 0 57#define NOSLP cpu_to_le16(0), 0, 0
58#define SLP IWL_POWER_DRIVER_ALLOW_SLEEP_MSK, 0, 0 58#define SLP IWL_POWER_DRIVER_ALLOW_SLEEP_MSK, 0, 0
59#define SLP_TOUT(T) __constant_cpu_to_le32((T) * MSEC_TO_USEC) 59#define SLP_TOUT(T) cpu_to_le32((T) * MSEC_TO_USEC)
60#define SLP_VEC(X0, X1, X2, X3, X4) {__constant_cpu_to_le32(X0), \ 60#define SLP_VEC(X0, X1, X2, X3, X4) {cpu_to_le32(X0), \
61 __constant_cpu_to_le32(X1), \ 61 cpu_to_le32(X1), \
62 __constant_cpu_to_le32(X2), \ 62 cpu_to_le32(X2), \
63 __constant_cpu_to_le32(X3), \ 63 cpu_to_le32(X3), \
64 __constant_cpu_to_le32(X4)} 64 cpu_to_le32(X4)}
65struct iwl_power_vec_entry { 65struct iwl_power_vec_entry {
66 struct iwl_powertable_cmd cmd; 66 struct iwl_powertable_cmd cmd;
67 u8 no_dtim; 67 u8 no_dtim;
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c
index 7c74b259873f..ae04c2086f70 100644
--- a/drivers/net/wireless/iwlwifi/iwl-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-tx.c
@@ -757,7 +757,7 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
757 seq_number = priv->stations[sta_id].tid[tid].seq_number; 757 seq_number = priv->stations[sta_id].tid[tid].seq_number;
758 seq_number &= IEEE80211_SCTL_SEQ; 758 seq_number &= IEEE80211_SCTL_SEQ;
759 hdr->seq_ctrl = hdr->seq_ctrl & 759 hdr->seq_ctrl = hdr->seq_ctrl &
760 __constant_cpu_to_le16(IEEE80211_SCTL_FRAG); 760 cpu_to_le16(IEEE80211_SCTL_FRAG);
761 hdr->seq_ctrl |= cpu_to_le16(seq_number); 761 hdr->seq_ctrl |= cpu_to_le16(seq_number);
762 seq_number += 0x10; 762 seq_number += 0x10;
763 /* aggregation is on for this <sta,tid> */ 763 /* aggregation is on for this <sta,tid> */
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 800e46c9a68b..42cc2884971c 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -658,7 +658,7 @@ static void iwl3945_activate_qos(struct iwl_priv *priv, u8 force)
658 658
659 659
660#define MAX_UCODE_BEACON_INTERVAL 1024 660#define MAX_UCODE_BEACON_INTERVAL 1024
661#define INTEL_CONN_LISTEN_INTERVAL __constant_cpu_to_le16(0xA) 661#define INTEL_CONN_LISTEN_INTERVAL cpu_to_le16(0xA)
662 662
663static __le16 iwl3945_adjust_beacon_interval(u16 beacon_val) 663static __le16 iwl3945_adjust_beacon_interval(u16 beacon_val)
664{ 664{
@@ -1048,7 +1048,7 @@ static int iwl3945_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
1048 IEEE80211_SCTL_SEQ; 1048 IEEE80211_SCTL_SEQ;
1049 hdr->seq_ctrl = cpu_to_le16(seq_number) | 1049 hdr->seq_ctrl = cpu_to_le16(seq_number) |
1050 (hdr->seq_ctrl & 1050 (hdr->seq_ctrl &
1051 __constant_cpu_to_le16(IEEE80211_SCTL_FRAG)); 1051 cpu_to_le16(IEEE80211_SCTL_FRAG));
1052 seq_number += 0x10; 1052 seq_number += 0x10;
1053 } 1053 }
1054 1054
diff --git a/drivers/net/wireless/orinoco/hermes_dld.c b/drivers/net/wireless/orinoco/hermes_dld.c
index d8c626e61a3a..45aed14bf110 100644
--- a/drivers/net/wireless/orinoco/hermes_dld.c
+++ b/drivers/net/wireless/orinoco/hermes_dld.c
@@ -573,9 +573,9 @@ static const struct { \
573 __le16 id; \ 573 __le16 id; \
574 u8 val[length]; \ 574 u8 val[length]; \
575} __attribute__ ((packed)) default_pdr_data_##pid = { \ 575} __attribute__ ((packed)) default_pdr_data_##pid = { \
576 __constant_cpu_to_le16((sizeof(default_pdr_data_##pid)/ \ 576 cpu_to_le16((sizeof(default_pdr_data_##pid)/ \
577 sizeof(__le16)) - 1), \ 577 sizeof(__le16)) - 1), \
578 __constant_cpu_to_le16(pid), \ 578 cpu_to_le16(pid), \
579 data \ 579 data \
580} 580}
581 581
diff --git a/drivers/net/wireless/orinoco/orinoco.c b/drivers/net/wireless/orinoco/orinoco.c
index 6514e4611b96..e082ef085116 100644
--- a/drivers/net/wireless/orinoco/orinoco.c
+++ b/drivers/net/wireless/orinoco/orinoco.c
@@ -1333,7 +1333,7 @@ static void orinoco_rx_monitor(struct net_device *dev, u16 rxfid,
1333 skb->dev = dev; 1333 skb->dev = dev;
1334 skb->ip_summed = CHECKSUM_NONE; 1334 skb->ip_summed = CHECKSUM_NONE;
1335 skb->pkt_type = PACKET_OTHERHOST; 1335 skb->pkt_type = PACKET_OTHERHOST;
1336 skb->protocol = __constant_htons(ETH_P_802_2); 1336 skb->protocol = cpu_to_be16(ETH_P_802_2);
1337 1337
1338 stats->rx_packets++; 1338 stats->rx_packets++;
1339 stats->rx_bytes += skb->len; 1339 stats->rx_bytes += skb->len;