Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f831e90971dc942a9f2fcc918a5739eb6d4ef4c5
Commit:     f831e90971dc942a9f2fcc918a5739eb6d4ef4c5
Parent:     6d82de9e576ea84b549b927e6a7775d918a427b5
Author:     YOSHIFUJI Hideaki <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 12 03:54:23 2007 +0900
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 14:58:04 2008 -0800

    [MAC80211]: Use htons() where appropriate.
    
    Signed-off-by: YOSHIFUJI Hideaki <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/mac80211/rx.c  |    2 +-
 net/mac80211/wme.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 0020e40..c542fc1 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -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);
diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c
index 8dbdede..455fadc 100644
--- a/net/mac80211/wme.c
+++ b/net/mac80211/wme.c
@@ -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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to