]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MAC80211]: Use htons() where appropriate.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 11 Dec 2007 18:54:23 +0000 (03:54 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:04 +0000 (14:58 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/rx.c
net/mac80211/wme.c

index 0020e409e57ddedbc2e58abce7e7b9ecfab723b3..c542fc1c983d25564ef27fad45a1c0a39fed8435 100644 (file)
@@ -1193,7 +1193,7 @@ ieee80211_deliver_skb(struct ieee80211_txrx_data *rx)
 
        if (xmit_skb) {
                /* send to wireless media */
-               xmit_skb->protocol = __constant_htons(ETH_P_802_3);
+               xmit_skb->protocol = htons(ETH_P_802_3);
                skb_set_network_header(xmit_skb, 0);
                skb_set_mac_header(xmit_skb, 0);
                dev_queue_xmit(xmit_skb);
index 8dbdededdec21f44f4aa150c500f5a42661ebf52..455fadc3d84e558d25c48536a20a1a0b1aea42b0 100644 (file)
@@ -55,7 +55,7 @@ static inline unsigned classify_1d(struct sk_buff *skb, struct Qdisc *qd)
 
        /* check there is a valid IP header present */
        offset = ieee80211_get_hdrlen_from_skb(skb) + 8 /* LLC + proto */;
-       if (skb->protocol != __constant_htons(ETH_P_IP) ||
+       if (skb->protocol != htons(ETH_P_IP) ||
            skb->len < offset + sizeof(*ip))
                return 0;