[NET] IEEE80211: Use htons() where appropriate.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 7 Mar 2007 05:19:05 +0000 (14:19 +0900)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:23:57 +0000 (22:23 -0700)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee80211/ieee80211_tx.c

index 0292d6348e1268671ad71cba02931271122a531e..3fca4345ebe523ccb1a2b0ec57a5c7a987f0824d 100644 (file)
@@ -225,7 +225,7 @@ static int ieee80211_classify(struct sk_buff *skb)
        struct iphdr *ip;
 
        eth = (struct ethhdr *)skb->data;
-       if (eth->h_proto != __constant_htons(ETH_P_IP))
+       if (eth->h_proto != htons(ETH_P_IP))
                return 0;
 
        ip = skb->nh.iph;