diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-01-29 16:26:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:43 -0500 |
commit | c1b4aa3fb619782213af2af6652663c8f9cef373 (patch) | |
tree | a5c37c26ebf311dbf9428167efdb24915c1b824c /drivers/net/wireless/hostap | |
parent | e5d24efe529b26d782b41a61a5e958c72f36f295 (diff) |
wireless: replace uses of __constant_{endian}
The base versions handle constant folding now.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_rx.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_ap.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_ioctl.c | 6 |
3 files changed, 9 insertions, 9 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; |