aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_ap.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-01-29 16:26:44 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-09 15:03:43 -0500
commitc1b4aa3fb619782213af2af6652663c8f9cef373 (patch)
treea5c37c26ebf311dbf9428167efdb24915c1b824c /drivers/net/wireless/hostap/hostap_ap.c
parente5d24efe529b26d782b41a61a5e958c72f36f295 (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/hostap_ap.c')
-rw-r--r--drivers/net/wireless/hostap/hostap_ap.c8
1 files changed, 4 insertions, 4 deletions
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) {